Class: Google::Apis::DisplayvideoV1::RateDetails
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::RateDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v1/classes.rb,
lib/google/apis/displayvideo_v1/representations.rb,
lib/google/apis/displayvideo_v1/representations.rb
Overview
The rate related settings of the inventory source.
Instance Attribute Summary collapse
-
#inventory_source_rate_type ⇒ String
The rate type.
-
#minimum_spend ⇒ Google::Apis::DisplayvideoV1::Money
Represents an amount of money with its currency type.
-
#rate ⇒ Google::Apis::DisplayvideoV1::Money
Represents an amount of money with its currency type.
-
#units_purchased ⇒ Fixnum
Required for guaranteed inventory sources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RateDetails
constructor
A new instance of RateDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RateDetails
Returns a new instance of RateDetails.
8763 8764 8765 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8763 def initialize(**args) update!(**args) end |
Instance Attribute Details
#inventory_source_rate_type ⇒ String
The rate type. Acceptable values are INVENTORY_SOURCE_RATE_TYPE_CPM_FIXED,
INVENTORY_SOURCE_RATE_TYPE_CPM_FLOOR, and INVENTORY_SOURCE_RATE_TYPE_CPD.
Corresponds to the JSON property inventorySourceRateType
8745 8746 8747 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8745 def inventory_source_rate_type @inventory_source_rate_type end |
#minimum_spend ⇒ Google::Apis::DisplayvideoV1::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property minimumSpend
8750 8751 8752 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8750 def minimum_spend @minimum_spend end |
#rate ⇒ Google::Apis::DisplayvideoV1::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property rate
8755 8756 8757 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8755 def rate @rate end |
#units_purchased ⇒ Fixnum
Required for guaranteed inventory sources. The number of impressions
guaranteed by the seller.
Corresponds to the JSON property unitsPurchased
8761 8762 8763 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8761 def units_purchased @units_purchased end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8768 8769 8770 8771 8772 8773 |
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 8768 def update!(**args) @inventory_source_rate_type = args[:inventory_source_rate_type] if args.key?(:inventory_source_rate_type) @minimum_spend = args[:minimum_spend] if args.key?(:minimum_spend) @rate = args[:rate] if args.key?(:rate) @units_purchased = args[:units_purchased] if args.key?(:units_purchased) end |