Class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer

Inherits:
Object
  • Object
show all
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. Each PricePerBuyer in a product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer we look for the most specific matching rule - we first look for a rule matching the buyer and otherwise look for a matching rule where no buyer is set.

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) ⇒ PricePerBuyer

Returns a new instance of PricePerBuyer.



2821
2822
2823
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2821

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

Instance Attribute Details

#auction_tierString

Optional access type for this buyer. Corresponds to the JSON property auctionTier

Returns:

  • (String)


2803
2804
2805
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2803

def auction_tier
  @auction_tier
end

#billed_buyerGoogle::Apis::AdexchangebuyerV1_4::Buyer

Reference to the buyer that will get billed. Corresponds to the JSON property billedBuyer



2808
2809
2810
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2808

def billed_buyer
  @billed_buyer
end

#buyerGoogle::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



2814
2815
2816
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2814

def buyer
  @buyer
end

#priceGoogle::Apis::AdexchangebuyerV1_4::Price

The specified price Corresponds to the JSON property price



2819
2820
2821
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2819

def price
  @price
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2826
2827
2828
2829
2830
2831
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2826

def update!(**args)
  @auction_tier = args[:auction_tier] if args.key?(:auction_tier)
  @billed_buyer = args[:billed_buyer] if args.key?(:billed_buyer)
  @buyer = args[:buyer] if args.key?(:buyer)
  @price = args[:price] if args.key?(:price)
end