class Google::Apis::Adexchangebuyer2V2beta1::Price

Represents a price and a pricing type for a product / deal.

Attributes

amount[RW]

Represents an amount of money with its currency type. Corresponds to the JSON property `amount` @return [Google::Apis::Adexchangebuyer2V2beta1::Money]

pricing_type[RW]

The pricing type for the deal/product. (default: CPM) Corresponds to the JSON property `pricingType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 3081
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 3086
def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @pricing_type = args[:pricing_type] if args.key?(:pricing_type)
end