Class: Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer
- 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
Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in a product can become 0 or 1 deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
Instance Attribute Summary collapse
-
#advertiser_ids ⇒ Array<String>
The list of advertisers for this price when associated with this buyer.
-
#buyer ⇒ Google::Apis::Adexchangebuyer2V2beta1::Buyer
Represents a buyer of inventory.
-
#price ⇒ Google::Apis::Adexchangebuyer2V2beta1::Price
Represents a price and a pricing type for a product / deal.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PricePerBuyer
constructor
A new instance of PricePerBuyer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PricePerBuyer
Returns a new instance of PricePerBuyer.
3154 3155 3156 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3154 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_ids ⇒ Array<String>
The list of advertisers for this price when associated with this buyer.
If empty, all advertisers with this buyer pay this price.
Corresponds to the JSON property advertiserIds
3141 3142 3143 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3141 def advertiser_ids @advertiser_ids end |
#buyer ⇒ Google::Apis::Adexchangebuyer2V2beta1::Buyer
Represents a buyer of inventory. Each buyer is identified by a unique
Authorized Buyers account ID.
Corresponds to the JSON property buyer
3147 3148 3149 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3147 def buyer @buyer end |
#price ⇒ Google::Apis::Adexchangebuyer2V2beta1::Price
Represents a price and a pricing type for a product / deal.
Corresponds to the JSON property price
3152 3153 3154 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3152 def price @price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3159 3160 3161 3162 3163 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3159 def update!(**args) @advertiser_ids = args[:advertiser_ids] if args.key?(:advertiser_ids) @buyer = args[:buyer] if args.key?(:buyer) @price = args[:price] if args.key?(:price) end |