class Google::Apis::AdexchangebuyerV1_4::PricePerBuyer

Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,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

buyer[RW]

The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). Corresponds to the JSON property `buyer` @return [Google::Apis::AdexchangebuyerV1_4::Buyer]

price[RW]

The specified price Corresponds to the JSON property `price` @return [Google::Apis::AdexchangebuyerV1_4::Price]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adexchangebuyer_v1_4/classes.rb, line 2408
def update!(**args)
  @buyer = args[:buyer] if args.key?(:buyer)
  @price = args[:price] if args.key?(:price)
end