Class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::PricePerBuyer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/classes.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb,
generated/google/apis/adexchangebuyer_v1_4/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#auction_tier ⇒ String
Optional access type for this buyer.
-
#buyer ⇒ Google::Apis::AdexchangebuyerV1_4::Buyer
The buyer who will pay this price.
-
#price ⇒ Google::Apis::AdexchangebuyerV1_4::Price
The specified price Corresponds to the JSON property
price
.
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.
2683 2684 2685 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2683 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auction_tier ⇒ String
Optional access type for this buyer.
Corresponds to the JSON property auctionTier
2670 2671 2672 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2670 def auction_tier @auction_tier end |
#buyer ⇒ Google::Apis::AdexchangebuyerV1_4::Buyer
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
2676 2677 2678 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2676 def buyer @buyer end |
#price ⇒ Google::Apis::AdexchangebuyerV1_4::Price
The specified price
Corresponds to the JSON property price
2681 2682 2683 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2681 def price @price end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2688 2689 2690 2691 2692 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2688 def update!(**args) @auction_tier = args[:auction_tier] if args.key?(:auction_tier) @buyer = args[:buyer] if args.key?(:buyer) @price = args[:price] if args.key?(:price) end |