Class: Google::Apis::DisplayvideoV3::PartnerRevenueModel
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::PartnerRevenueModel
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb
Overview
Settings that control how partner revenue is calculated.
Instance Attribute Summary collapse
-
#markup_amount ⇒ Fixnum
Required.
-
#markup_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PartnerRevenueModel
constructor
A new instance of PartnerRevenueModel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PartnerRevenueModel
Returns a new instance of PartnerRevenueModel.
10594 10595 10596 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10594 def initialize(**args) update!(**args) end |
Instance Attribute Details
#markup_amount ⇒ Fixnum
Required. The markup amount of the partner revenue model. Must be greater than
or equal to 0. * When the markup_type is set to be
PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM
, this field represents the CPM markup
in micros of advertiser's currency. For example, 1500000 represents 1.5
standard units of the currency. * When the markup_type is set to be
PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP
, this field represents
the media cost percent markup in millis. For example, 100 represents 0.1% (
decimal 0.001). * When the markup_type is set to be
PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP
, this field
represents the total media cost percent markup in millis. For example, 100
represents 0.1% (decimal 0.001).
Corresponds to the JSON property markupAmount
10587 10588 10589 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10587 def markup_amount @markup_amount end |
#markup_type ⇒ String
Required. The markup type of the partner revenue model.
Corresponds to the JSON property markupType
10592 10593 10594 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10592 def markup_type @markup_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10599 10600 10601 10602 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 10599 def update!(**args) @markup_amount = args[:markup_amount] if args.key?(:markup_amount) @markup_type = args[:markup_type] if args.key?(:markup_type) end |