Class: Google::Apis::AdexchangebuyerV1_4::Price

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Price

Returns a new instance of Price.


2779
2780
2781
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2779

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#amount_microsFloat

The price value in micros. Corresponds to the JSON property amountMicros

Returns:

  • (Float)

2762
2763
2764
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2762

def amount_micros
  @amount_micros
end

#currency_codeString

The currency code for the price. Corresponds to the JSON property currencyCode

Returns:

  • (String)

2767
2768
2769
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2767

def currency_code
  @currency_code
end

#expected_cpm_microsFloat

In case of CPD deals, the expected CPM in micros. Corresponds to the JSON property expectedCpmMicros

Returns:

  • (Float)

2772
2773
2774
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2772

def expected_cpm_micros
  @expected_cpm_micros
end

#pricing_typeString

The pricing type for the deal/product. Corresponds to the JSON property pricingType

Returns:

  • (String)

2777
2778
2779
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2777

def pricing_type
  @pricing_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2784
2785
2786
2787
2788
2789
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2784

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