Class: Google::Apis::Adexchangebuyer2V2beta1::DealTerms
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::DealTerms
- 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
The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (e.g., fixed price, auction) and expected impressions from the publisher.
Instance Attribute Summary collapse
-
#branding_type ⇒ String
Visibility of the URL in bid requests.
-
#description ⇒ String
Publisher provided description for the terms.
-
#estimated_gross_spend ⇒ Google::Apis::Adexchangebuyer2V2beta1::Price
Represents a price and a pricing type for a product / deal.
-
#estimated_impressions_per_day ⇒ Fixnum
Non-binding estimate of the impressions served per day.
-
#guaranteed_fixed_price_terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::GuaranteedFixedPriceTerms
Terms for Programmatic Guaranteed Deals.
-
#non_guaranteed_auction_terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedAuctionTerms
Terms for Private Auctions.
-
#non_guaranteed_fixed_price_terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedFixedPriceTerms
Terms for Preferred Deals.
-
#seller_time_zone ⇒ String
The time zone name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DealTerms
constructor
A new instance of DealTerms.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DealTerms
Returns a new instance of DealTerms
1467 1468 1469 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1467 def initialize(**args) update!(**args) end |
Instance Attribute Details
#branding_type ⇒ String
Visibility of the URL in bid requests. (default: BRANDED)
Corresponds to the JSON property brandingType
1424 1425 1426 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1424 def branding_type @branding_type end |
#description ⇒ String
Publisher provided description for the terms.
Corresponds to the JSON property description
1429 1430 1431 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1429 def description @description end |
#estimated_gross_spend ⇒ Google::Apis::Adexchangebuyer2V2beta1::Price
Represents a price and a pricing type for a product / deal.
Corresponds to the JSON property estimatedGrossSpend
1434 1435 1436 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1434 def estimated_gross_spend @estimated_gross_spend end |
#estimated_impressions_per_day ⇒ Fixnum
Non-binding estimate of the impressions served per day.
Can be set by buyer or seller.
Corresponds to the JSON property estimatedImpressionsPerDay
1440 1441 1442 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1440 def estimated_impressions_per_day @estimated_impressions_per_day end |
#guaranteed_fixed_price_terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::GuaranteedFixedPriceTerms
Terms for Programmatic Guaranteed Deals.
Corresponds to the JSON property guaranteedFixedPriceTerms
1445 1446 1447 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1445 def guaranteed_fixed_price_terms @guaranteed_fixed_price_terms end |
#non_guaranteed_auction_terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedAuctionTerms
Terms for Private Auctions. Note that Private Auctions can be created only
by the seller, but they can be returned in a get or list request.
Corresponds to the JSON property nonGuaranteedAuctionTerms
1451 1452 1453 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1451 def non_guaranteed_auction_terms @non_guaranteed_auction_terms end |
#non_guaranteed_fixed_price_terms ⇒ Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedFixedPriceTerms
Terms for Preferred Deals. Note that Preferred Deals cannot be created via
the API at this time, but can be returned in a get or list request.
Corresponds to the JSON property nonGuaranteedFixedPriceTerms
1457 1458 1459 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1457 def non_guaranteed_fixed_price_terms @non_guaranteed_fixed_price_terms end |
#seller_time_zone ⇒ String
The time zone name. For deals with Cost Per Day billing, defines the
time zone used to mark the boundaries of a day. It should be an
IANA TZ name, such as "America/Los_Angeles". For more information,
see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
Corresponds to the JSON property sellerTimeZone
1465 1466 1467 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1465 def seller_time_zone @seller_time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1472 def update!(**args) @branding_type = args[:branding_type] if args.key?(:branding_type) @description = args[:description] if args.key?(:description) @estimated_gross_spend = args[:estimated_gross_spend] if args.key?(:estimated_gross_spend) @estimated_impressions_per_day = args[:estimated_impressions_per_day] if args.key?(:estimated_impressions_per_day) @guaranteed_fixed_price_terms = args[:guaranteed_fixed_price_terms] if args.key?(:guaranteed_fixed_price_terms) @non_guaranteed_auction_terms = args[:non_guaranteed_auction_terms] if args.key?(:non_guaranteed_auction_terms) @non_guaranteed_fixed_price_terms = args[:non_guaranteed_fixed_price_terms] if args.key?(:non_guaranteed_fixed_price_terms) @seller_time_zone = args[:seller_time_zone] if args.key?(:seller_time_zone) end |