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.



1350
1351
1352
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1350

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



1325
1326
1327
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1325

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



1330
1331
1332
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1330

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)


1336
1337
1338
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1336

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)


1342
1343
1344
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1342

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)


1348
1349
1350
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1348

def minimum_daily_looks
  @minimum_daily_looks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1355
1356
1357
1358
1359
1360
1361
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1355

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