class Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer
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.
Attributes
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` @return [Array<String>]
Represents a buyer of inventory. Each buyer is identified by a unique Authorized Buyers account ID. Corresponds to the JSON property `buyer` @return [Google::Apis::Adexchangebuyer2V2beta1::Buyer]
Represents a price and a pricing type for a product / deal. Corresponds to the JSON property `price` @return [Google::Apis::Adexchangebuyer2V2beta1::Price]
Public Class Methods
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 3118 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 3123 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