Class: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms

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

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

Returns a new instance of DealTermsGuaranteedFixedPriceTerms.



1285
1286
1287
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1285

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

Instance Attribute Details

#billing_infoGoogle::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTermsBillingInfo

External billing info for this Deal. This field is relevant when external billing info such as price has a different currency code than DFP/AdX. Corresponds to the JSON property billingInfo



1260
1261
1262
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1260

def billing_info
  @billing_info
end

#fixed_pricesArray<Google::Apis::AdexchangebuyerV1_4::PricePerBuyer>

Fixed price for the specified buyer. Corresponds to the JSON property fixedPrices



1265
1266
1267
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1265

def fixed_prices
  @fixed_prices
end

#guaranteed_impressionsString

Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy. Corresponds to the JSON property guaranteedImpressions

Returns:

  • (String)


1271
1272
1273
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1271

def guaranteed_impressions
  @guaranteed_impressions
end

#guaranteed_looksString

Count of guaranteed looks. Required for deal, optional for product. For CPD deals, buyer changes to guaranteed_looks will be ignored. Corresponds to the JSON property guaranteedLooks

Returns:

  • (String)


1277
1278
1279
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1277

def guaranteed_looks
  @guaranteed_looks
end

#minimum_daily_looksString

Count of minimum daily looks for a CPD deal. For CPD deals, buyer should negotiate on this field instead of guaranteed_looks. Corresponds to the JSON property minimumDailyLooks

Returns:

  • (String)


1283
1284
1285
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1283

def minimum_daily_looks
  @minimum_daily_looks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1290
1291
1292
1293
1294
1295
1296
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1290

def update!(**args)
  @billing_info = args[:billing_info] if args.key?(:billing_info)
  @fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices)
  @guaranteed_impressions = args[:guaranteed_impressions] if args.key?(:guaranteed_impressions)
  @guaranteed_looks = args[:guaranteed_looks] if args.key?(:guaranteed_looks)
  @minimum_daily_looks = args[:minimum_daily_looks] if args.key?(:minimum_daily_looks)
end