Class: Google::Apis::AdexchangebuyerV1_4::DealTerms

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

Returns a new instance of DealTerms



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

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

Instance Attribute Details

#branding_typeString

Visibilty of the URL in bid requests. Corresponds to the JSON property brandingType

Returns:

  • (String)


1274
1275
1276
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1274

def branding_type
  @branding_type
end

#cross_listed_external_deal_id_typeString

Indicates that this ExternalDealId exists under at least two different AdxInventoryDeals. Currently, the only case that the same ExternalDealId will exist is programmatic cross sell case. Corresponds to the JSON property crossListedExternalDealIdType

Returns:

  • (String)


1281
1282
1283
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1281

def cross_listed_external_deal_id_type
  @cross_listed_external_deal_id_type
end

#descriptionString

Description for the proposed terms of the deal. Corresponds to the JSON property description

Returns:

  • (String)


1286
1287
1288
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1286

def description
  @description
end

#estimated_gross_spendGoogle::Apis::AdexchangebuyerV1_4::Price

Non-binding estimate of the estimated gross spend for this deal Can be set by buyer or seller. Corresponds to the JSON property estimatedGrossSpend



1292
1293
1294
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1292

def estimated_gross_spend
  @estimated_gross_spend
end

#estimated_impressions_per_dayFixnum

Non-binding estimate of the impressions served per day Can be set by buyer or seller. Corresponds to the JSON property estimatedImpressionsPerDay

Returns:

  • (Fixnum)


1298
1299
1300
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1298

def estimated_impressions_per_day
  @estimated_impressions_per_day
end

#guaranteed_fixed_price_termsGoogle::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms

The terms for guaranteed fixed price deals. Corresponds to the JSON property guaranteedFixedPriceTerms



1303
1304
1305
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1303

def guaranteed_fixed_price_terms
  @guaranteed_fixed_price_terms
end

#non_guaranteed_auction_termsGoogle::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms

The terms for non-guaranteed auction deals. Corresponds to the JSON property nonGuaranteedAuctionTerms



1308
1309
1310
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1308

def non_guaranteed_auction_terms
  @non_guaranteed_auction_terms
end

#non_guaranteed_fixed_price_termsGoogle::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms

The terms for non-guaranteed fixed price deals. Corresponds to the JSON property nonGuaranteedFixedPriceTerms



1313
1314
1315
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1313

def non_guaranteed_fixed_price_terms
  @non_guaranteed_fixed_price_terms
end

#rubicon_non_guaranteed_termsGoogle::Apis::AdexchangebuyerV1_4::DealTermsRubiconNonGuaranteedTerms

The terms for rubicon non-guaranteed deals. Corresponds to the JSON property rubiconNonGuaranteedTerms



1318
1319
1320
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1318

def rubicon_non_guaranteed_terms
  @rubicon_non_guaranteed_terms
end

#seller_time_zoneString

For deals with Cost Per Day billing, defines the timezone used to mark the boundaries of a day (buyer-readonly) Corresponds to the JSON property sellerTimeZone

Returns:

  • (String)


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

def seller_time_zone
  @seller_time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1331

def update!(**args)
  @branding_type = args[:branding_type] if args.key?(:branding_type)
  @cross_listed_external_deal_id_type = args[:cross_listed_external_deal_id_type] if args.key?(:cross_listed_external_deal_id_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)
  @rubicon_non_guaranteed_terms = args[:rubicon_non_guaranteed_terms] if args.key?(:rubicon_non_guaranteed_terms)
  @seller_time_zone = args[:seller_time_zone] if args.key?(:seller_time_zone)
end