Class: Google::Apis::Adexchangebuyer2V2beta1::GuaranteedFixedPriceTerms

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb

Overview

Terms for Programmatic Guaranteed Deals.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GuaranteedFixedPriceTerms

Returns a new instance of GuaranteedFixedPriceTerms.



1872
1873
1874
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1872

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

Instance Attribute Details

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

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



1833
1834
1835
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1833

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)


1839
1840
1841
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1839

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)


1845
1846
1847
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1845

def guaranteed_looks
  @guaranteed_looks
end

#impression_capFixnum

The lifetime impression cap for CPM sponsorship deals. The deal will stop serving when the cap is reached. Corresponds to the JSON property impressionCap

Returns:

  • (Fixnum)


1851
1852
1853
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1851

def impression_cap
  @impression_cap
end

#minimum_daily_looksFixnum

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

Returns:

  • (Fixnum)


1857
1858
1859
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1857

def minimum_daily_looks
  @minimum_daily_looks
end

#percent_share_of_voiceFixnum

For sponsorship deals, this is the percentage of the seller's eligible impressions that the deal will serve until the cap is reached. Corresponds to the JSON property percentShareOfVoice

Returns:

  • (Fixnum)


1863
1864
1865
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1863

def percent_share_of_voice
  @percent_share_of_voice
end

#reservation_typeString

The reservation type for a Programmatic Guaranteed deal. This indicates whether the number of impressions is fixed, or a percent of available impressions. If not specified, the default reservation type is STANDARD. Corresponds to the JSON property reservationType

Returns:

  • (String)


1870
1871
1872
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1870

def reservation_type
  @reservation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1877
1878
1879
1880
1881
1882
1883
1884
1885
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1877

def update!(**args)
  @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)
  @impression_cap = args[:impression_cap] if args.key?(:impression_cap)
  @minimum_daily_looks = args[:minimum_daily_looks] if args.key?(:minimum_daily_looks)
  @percent_share_of_voice = args[:percent_share_of_voice] if args.key?(:percent_share_of_voice)
  @reservation_type = args[:reservation_type] if args.key?(:reservation_type)
end