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

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

Overview

Terms for Programmatic Guaranteed Deals.

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

Returns a new instance of GuaranteedFixedPriceTerms



1877
1878
1879
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1877

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



1859
1860
1861
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1859

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)


1865
1866
1867
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1865

def guaranteed_impressions
  @guaranteed_impressions
end

#guaranteed_looksFixnum

Count of guaranteed looks. Required for deal, optional for product. Corresponds to the JSON property guaranteedLooks

Returns:

  • (Fixnum)


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

def guaranteed_looks
  @guaranteed_looks
end

#minimum_daily_looksFixnum

Daily minimum looks for CPD deal types. Corresponds to the JSON property minimumDailyLooks

Returns:

  • (Fixnum)


1875
1876
1877
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1875

def minimum_daily_looks
  @minimum_daily_looks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1882
1883
1884
1885
1886
1887
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1882

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)
  @minimum_daily_looks = args[:minimum_daily_looks] if args.key?(:minimum_daily_looks)
end