Class: Google::Apis::AdexchangebuyerV1_4::Price
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::Price
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb
Instance Attribute Summary collapse
-
#amount_micros ⇒ Float
The price value in micros.
-
#currency_code ⇒ String
The currency code for the price.
-
#expected_cpm_micros ⇒ Float
In case of CPD deals, the expected CPM in micros.
-
#pricing_type ⇒ String
The pricing type for the deal/product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Price
constructor
A new instance of Price.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Price
Returns a new instance of Price
2718 2719 2720 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2718 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount_micros ⇒ Float
The price value in micros.
Corresponds to the JSON property amountMicros
2701 2702 2703 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2701 def amount_micros @amount_micros end |
#currency_code ⇒ String
The currency code for the price.
Corresponds to the JSON property currencyCode
2706 2707 2708 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2706 def currency_code @currency_code end |
#expected_cpm_micros ⇒ Float
In case of CPD deals, the expected CPM in micros.
Corresponds to the JSON property expectedCpmMicros
2711 2712 2713 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2711 def expected_cpm_micros @expected_cpm_micros end |
#pricing_type ⇒ String
The pricing type for the deal/product.
Corresponds to the JSON property pricingType
2716 2717 2718 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2716 def pricing_type @pricing_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2723 2724 2725 2726 2727 2728 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2723 def update!(**args) @amount_micros = args[:amount_micros] if args.key?(:amount_micros) @currency_code = args[:currency_code] if args.key?(:currency_code) @expected_cpm_micros = args[:expected_cpm_micros] if args.key?(:expected_cpm_micros) @pricing_type = args[:pricing_type] if args.key?(:pricing_type) end |