Class: Google::Apis::Adexchangebuyer2V2beta1::Deal

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

A deal represents a segment of inventory for displaying ads on. A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Deal

Returns a new instance of Deal.



1309
1310
1311
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1309

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

Instance Attribute Details

#available_end_timeString

Proposed flight end time of the deal. This will generally be stored in a granularity of a second. A value is not required for Private Auction deals or Preferred Deals. Corresponds to the JSON property availableEndTime

Returns:

  • (String)


1164
1165
1166
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1164

def available_end_time
  @available_end_time
end

#available_start_timeString

Optional. Proposed flight start time of the deal. This will generally be stored in the granularity of one second since deal serving starts at seconds boundary. Any time specified with more granularity (for example, in milliseconds) will be truncated towards the start of time in seconds. Corresponds to the JSON property availableStartTime

Returns:

  • (String)


1172
1173
1174
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1172

def available_start_time
  @available_start_time
end

#buyer_private_dataGoogle::Apis::Adexchangebuyer2V2beta1::PrivateData

Buyers are allowed to store certain types of private data in a proposal/deal. Corresponds to the JSON property buyerPrivateData



1177
1178
1179
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1177

def buyer_private_data
  @buyer_private_data
end

#create_product_idString

The product ID from which this deal was created. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error. Corresponds to the JSON property createProductId

Returns:

  • (String)


1184
1185
1186
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1184

def create_product_id
  @create_product_id
end

#create_product_revisionFixnum

Optional. Revision number of the product that the deal was created from. If present on create, and the server product_revision has advanced since the passed-in create_product_revision, an ABORTED error will be returned. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error. Corresponds to the JSON property createProductRevision

Returns:

  • (Fixnum)


1193
1194
1195
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1193

def create_product_revision
  @create_product_revision
end

#create_timeString

Output only. The time of the deal creation. Corresponds to the JSON property createTime

Returns:

  • (String)


1198
1199
1200
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1198

def create_time
  @create_time
end

#creative_pre_approval_policyString

Output only. Specifies the creative pre-approval policy. Corresponds to the JSON property creativePreApprovalPolicy

Returns:

  • (String)


1203
1204
1205
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1203

def creative_pre_approval_policy
  @creative_pre_approval_policy
end

#creative_restrictionsGoogle::Apis::Adexchangebuyer2V2beta1::CreativeRestrictions

Represents creative restrictions associated to Programmatic Guaranteed/ Preferred Deal in Ad Manager. This doesn't apply to Private Auction and AdX Preferred Deals. Corresponds to the JSON property creativeRestrictions



1210
1211
1212
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1210

def creative_restrictions
  @creative_restrictions
end

#creative_safe_frame_compatibilityString

Output only. Specifies whether the creative is safeFrame compatible. Corresponds to the JSON property creativeSafeFrameCompatibility

Returns:

  • (String)


1215
1216
1217
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1215

def creative_safe_frame_compatibility
  @creative_safe_frame_compatibility
end

#deal_idString

Output only. A unique deal ID for the deal (server-assigned). Corresponds to the JSON property dealId

Returns:

  • (String)


1220
1221
1222
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1220

def deal_id
  @deal_id
end

#deal_serving_metadataGoogle::Apis::Adexchangebuyer2V2beta1::DealServingMetadata

Message captures metadata about the serving status of a deal. Corresponds to the JSON property dealServingMetadata



1225
1226
1227
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1225

def 
  @deal_serving_metadata
end

#deal_termsGoogle::Apis::Adexchangebuyer2V2beta1::DealTerms

The deal terms specify the details of a Product/deal. They specify things like price per buyer, the type of pricing model (for example, fixed price, auction) and expected impressions from the publisher. Corresponds to the JSON property dealTerms



1232
1233
1234
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1232

def deal_terms
  @deal_terms
end

#delivery_controlGoogle::Apis::Adexchangebuyer2V2beta1::DeliveryControl

Message contains details about how the deals will be paced. Corresponds to the JSON property deliveryControl



1237
1238
1239
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1237

def delivery_control
  @delivery_control
end

#descriptionString

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

Returns:

  • (String)


1242
1243
1244
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1242

def description
  @description
end

#display_nameString

The name of the deal. Corresponds to the JSON property displayName

Returns:

  • (String)


1247
1248
1249
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1247

def display_name
  @display_name
end

#external_deal_idString

Output only. The external deal ID assigned to this deal once the deal is finalized. This is the deal ID that shows up in serving/reporting etc. Corresponds to the JSON property externalDealId

Returns:

  • (String)


1253
1254
1255
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1253

def external_deal_id
  @external_deal_id
end

#is_setup_completeBoolean Also known as: is_setup_complete?

Output only. True, if the buyside inventory setup is complete for this deal. Corresponds to the JSON property isSetupComplete

Returns:

  • (Boolean)


1258
1259
1260
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1258

def is_setup_complete
  @is_setup_complete
end

#programmatic_creative_sourceString

Output only. Specifies the creative source for programmatic deals. PUBLISHER means creative is provided by seller and ADVERTISER means creative is provided by buyer. Corresponds to the JSON property programmaticCreativeSource

Returns:

  • (String)


1266
1267
1268
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1266

def programmatic_creative_source
  @programmatic_creative_source
end

#proposal_idString

Output only. ID of the proposal that this deal is part of. Corresponds to the JSON property proposalId

Returns:

  • (String)


1271
1272
1273
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1271

def proposal_id
  @proposal_id
end

#seller_contactsArray<Google::Apis::Adexchangebuyer2V2beta1::ContactInformation>

Output only. Seller contact information for the deal. Corresponds to the JSON property sellerContacts



1276
1277
1278
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1276

def seller_contacts
  @seller_contacts
end

#syndication_productString

The syndication product associated with the deal. Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error. Corresponds to the JSON property syndicationProduct

Returns:

  • (String)


1283
1284
1285
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1283

def syndication_product
  @syndication_product
end

#targetingGoogle::Apis::Adexchangebuyer2V2beta1::MarketplaceTargeting

Targeting represents different criteria that can be used by advertisers to target ad inventory. For example, they can choose to target ad requests only if the user is in the US. Multiple types of targeting are always applied as a logical AND, unless noted otherwise. Corresponds to the JSON property targeting



1291
1292
1293
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1291

def targeting
  @targeting
end

#targeting_criterionArray<Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria>

The shared targeting visible to buyers and sellers. Each shared targeting entity is AND'd together. Corresponds to the JSON property targetingCriterion



1297
1298
1299
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1297

def targeting_criterion
  @targeting_criterion
end

#update_timeString

Output only. The time when the deal was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1302
1303
1304
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1302

def update_time
  @update_time
end

#web_property_codeString

The web property code for the seller copied over from the product. Corresponds to the JSON property webPropertyCode

Returns:

  • (String)


1307
1308
1309
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1307

def web_property_code
  @web_property_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1314

def update!(**args)
  @available_end_time = args[:available_end_time] if args.key?(:available_end_time)
  @available_start_time = args[:available_start_time] if args.key?(:available_start_time)
  @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data)
  @create_product_id = args[:create_product_id] if args.key?(:create_product_id)
  @create_product_revision = args[:create_product_revision] if args.key?(:create_product_revision)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creative_pre_approval_policy = args[:creative_pre_approval_policy] if args.key?(:creative_pre_approval_policy)
  @creative_restrictions = args[:creative_restrictions] if args.key?(:creative_restrictions)
  @creative_safe_frame_compatibility = args[:creative_safe_frame_compatibility] if args.key?(:creative_safe_frame_compatibility)
  @deal_id = args[:deal_id] if args.key?(:deal_id)
  @deal_serving_metadata = args[:deal_serving_metadata] if args.key?(:deal_serving_metadata)
  @deal_terms = args[:deal_terms] if args.key?(:deal_terms)
  @delivery_control = args[:delivery_control] if args.key?(:delivery_control)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @external_deal_id = args[:external_deal_id] if args.key?(:external_deal_id)
  @is_setup_complete = args[:is_setup_complete] if args.key?(:is_setup_complete)
  @programmatic_creative_source = args[:programmatic_creative_source] if args.key?(:programmatic_creative_source)
  @proposal_id = args[:proposal_id] if args.key?(:proposal_id)
  @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts)
  @syndication_product = args[:syndication_product] if args.key?(:syndication_product)
  @targeting = args[:targeting] if args.key?(:targeting)
  @targeting_criterion = args[:targeting_criterion] if args.key?(:targeting_criterion)
  @update_time = args[:update_time] if args.key?(:update_time)
  @web_property_code = args[:web_property_code] if args.key?(:web_property_code)
end