Class: Google::Apis::Adexchangebuyer2V2beta1::Price

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
generated/google/apis/adexchangebuyer2_v2beta1/representations.rb

Overview

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

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.



3117
3118
3119
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3117

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

Instance Attribute Details

#amountGoogle::Apis::Adexchangebuyer2V2beta1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property amount



3110
3111
3112
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3110

def amount
  @amount
end

#pricing_typeString

The pricing type for the deal/product. (default: CPM) Corresponds to the JSON property pricingType

Returns:

  • (String)


3115
3116
3117
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3115

def pricing_type
  @pricing_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3122
3123
3124
3125
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3122

def update!(**args)
  @amount = args[:amount] if args.key?(:amount)
  @pricing_type = args[:pricing_type] if args.key?(:pricing_type)
end