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



1410
1411
1412
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1410

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



1385
1386
1387
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1385

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



1390
1391
1392
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1390

def fixed_prices
  @fixed_prices
end

#guaranteed_impressionsFixnum

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:

  • (Fixnum)


1396
1397
1398
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1396

def guaranteed_impressions
  @guaranteed_impressions
end

#guaranteed_looksFixnum

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:

  • (Fixnum)


1402
1403
1404
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1402

def guaranteed_looks
  @guaranteed_looks
end

#minimum_daily_looksFixnum

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:

  • (Fixnum)


1408
1409
1410
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1408

def minimum_daily_looks
  @minimum_daily_looks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1415
1416
1417
1418
1419
1420
1421
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1415

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