View Source GoogleApi.AdExchangeBuyer.V2beta1.Model.PricePerBuyer (google_api_ad_exchange_buyer v0.41.0)

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

  • advertiserIds (type: list(String.t), default: nil) - The list of advertisers for this price when associated with this buyer. If empty, all advertisers with this buyer pay this price.
  • buyer (type: GoogleApi.AdExchangeBuyer.V2beta1.Model.Buyer.t, default: nil) - 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).
  • price (type: GoogleApi.AdExchangeBuyer.V2beta1.Model.Price.t, default: nil) - The specified price.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AdExchangeBuyer.V2beta1.Model.PricePerBuyer{
  advertiserIds: [String.t()] | nil,
  buyer: GoogleApi.AdExchangeBuyer.V2beta1.Model.Buyer.t() | nil,
  price: GoogleApi.AdExchangeBuyer.V2beta1.Model.Price.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.