Class: Google::Apis::Adexchangebuyer2V2beta1::Product

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

Note: this resource requires whitelisting for access. Please contact your account manager for access to Marketplace resources. A product is a segment of inventory that a seller wishes to sell. It is associated with certain terms and targeting information which helps the buyer know more about the inventory.

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

Returns a new instance of Product



3273
3274
3275
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3273

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

Instance Attribute Details

#available_end_timeString

The proposed end time for the deal. The field will be truncated to the order of seconds during serving. Corresponds to the JSON property availableEndTime

Returns:

  • (String)


3188
3189
3190
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3188

def available_end_time
  @available_end_time
end

#available_start_timeString

Inventory availability dates. The start time will be truncated to seconds during serving. Thus, a field specified as 3:23:34.456 (HH:mm:ss.SSS) will be truncated to 3:23:34 when serving. Corresponds to the JSON property availableStartTime

Returns:

  • (String)


3195
3196
3197
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3195

def available_start_time
  @available_start_time
end

#create_timeString

Creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


3200
3201
3202
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3200

def create_time
  @create_time
end

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

Optional contact information for the creator of this product. Corresponds to the JSON property creatorContacts



3205
3206
3207
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3205

def creator_contacts
  @creator_contacts
end

#display_nameString

The display name for this product as set by the seller. Corresponds to the JSON property displayName

Returns:

  • (String)


3210
3211
3212
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3210

def display_name
  @display_name
end

#has_creator_signed_offBoolean Also known as: has_creator_signed_off?

If the creator has already signed off on the product, then the buyer can finalize the deal by accepting the product as is. When copying to a proposal, if any of the terms are changed, then auto_finalize is automatically set to false. Corresponds to the JSON property hasCreatorSignedOff

Returns:

  • (Boolean)


3218
3219
3220
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3218

def has_creator_signed_off
  @has_creator_signed_off
end

#product_idString

The unique ID for the product. Corresponds to the JSON property productId

Returns:

  • (String)


3224
3225
3226
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3224

def product_id
  @product_id
end

#product_revisionFixnum

The revision number of the product (auto-assigned by Marketplace). Corresponds to the JSON property productRevision

Returns:

  • (Fixnum)


3229
3230
3231
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3229

def product_revision
  @product_revision
end

#publisher_profile_idString

An ID which can be used by the Publisher Profile API to get more information about the seller that created this product. Corresponds to the JSON property publisherProfileId

Returns:

  • (String)


3235
3236
3237
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3235

def publisher_profile_id
  @publisher_profile_id
end

#sellerGoogle::Apis::Adexchangebuyer2V2beta1::Seller

Represents a seller of inventory. Each seller is identified by a unique Ad Manager account ID. Corresponds to the JSON property seller



3241
3242
3243
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3241

def seller
  @seller
end

#syndication_productString

The syndication product associated with the deal. Corresponds to the JSON property syndicationProduct

Returns:

  • (String)


3246
3247
3248
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3246

def syndication_product
  @syndication_product
end

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

Targeting that is shared between the buyer and the seller. Each targeting criterion has a specified key and for each key there is a list of inclusion value or exclusion values. Corresponds to the JSON property targetingCriterion



3253
3254
3255
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3253

def targeting_criterion
  @targeting_criterion
end

#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 (e.g., fixed price, auction) and expected impressions from the publisher. Corresponds to the JSON property terms



3260
3261
3262
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3260

def terms
  @terms
end

#update_timeString

Time of last update. Corresponds to the JSON property updateTime

Returns:

  • (String)


3265
3266
3267
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3265

def update_time
  @update_time
end

#web_property_codeString

The web-property code for the seller. This needs to be copied as is when adding a new deal to a proposal. Corresponds to the JSON property webPropertyCode

Returns:

  • (String)


3271
3272
3273
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3271

def web_property_code
  @web_property_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3278

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)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator_contacts = args[:creator_contacts] if args.key?(:creator_contacts)
  @display_name = args[:display_name] if args.key?(:display_name)
  @has_creator_signed_off = args[:has_creator_signed_off] if args.key?(:has_creator_signed_off)
  @product_id = args[:product_id] if args.key?(:product_id)
  @product_revision = args[:product_revision] if args.key?(:product_revision)
  @publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id)
  @seller = args[:seller] if args.key?(:seller)
  @syndication_product = args[:syndication_product] if args.key?(:syndication_product)
  @targeting_criterion = args[:targeting_criterion] if args.key?(:targeting_criterion)
  @terms = args[:terms] if args.key?(:terms)
  @update_time = args[:update_time] if args.key?(:update_time)
  @web_property_code = args[:web_property_code] if args.key?(:web_property_code)
end