Class: Google::Apis::RealtimebiddingV1::Creative

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

Overview

A creative and its classification data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Creative

Returns a new instance of Creative.



347
348
349
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 347

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

Instance Attribute Details

#account_idFixnum

Output only. ID of the buyer account that this creative is owned by. Can be used to filter the response of the creatives.list method with equality and inequality check. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


230
231
232
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 230

def 
  @account_id
end

#ad_choices_destination_urlString

The link to AdChoices destination page. This is only supported for native ads. Corresponds to the JSON property adChoicesDestinationUrl

Returns:

  • (String)


235
236
237
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 235

def ad_choices_destination_url
  @ad_choices_destination_url
end

#advertiser_nameString

The name of the company being advertised in the creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property advertiserName

Returns:

  • (String)


241
242
243
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 241

def advertiser_name
  @advertiser_name
end

#agency_idFixnum

The agency ID for this creative. Corresponds to the JSON property agencyId

Returns:

  • (Fixnum)


246
247
248
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 246

def agency_id
  @agency_id
end

#api_update_timeString

Output only. The last update timestamp of the creative via API. Corresponds to the JSON property apiUpdateTime

Returns:

  • (String)


251
252
253
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 251

def api_update_time
  @api_update_time
end

#creative_formatString

Output only. The format of this creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property creativeFormat

Returns:

  • (String)


257
258
259
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 257

def creative_format
  @creative_format
end

#creative_idString

Buyer-specific creative ID that references this creative in bid responses. This field is Ignored in update operations. Can be used to filter the response of the creatives.list method. The maximum length of the creative ID is 128 bytes. Corresponds to the JSON property creativeId

Returns:

  • (String)


265
266
267
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 265

def creative_id
  @creative_id
end

#creative_serving_decisionGoogle::Apis::RealtimebiddingV1::CreativeServingDecision

Top level status and detected attributes of a creative. Corresponds to the JSON property creativeServingDecision



270
271
272
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 270

def creative_serving_decision
  @creative_serving_decision
end

#deal_idsArray<String>

Output only. IDs of all of the deals with which this creative has been used in bidding. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property dealIds

Returns:

  • (Array<String>)


276
277
278
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 276

def deal_ids
  @deal_ids
end

#declared_attributesArray<String>

All declared attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method. If the excluded_attribute field of a bid request contains one of the attributes that were declared or detected for a given creative, and a bid is submitted with that creative, the bid will be filtered before the auction. Corresponds to the JSON property declaredAttributes

Returns:

  • (Array<String>)


286
287
288
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 286

def declared_attributes
  @declared_attributes
end

#declared_click_through_urlsArray<String>

The set of declared destination URLs for the creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property declaredClickThroughUrls

Returns:

  • (Array<String>)


292
293
294
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 292

def declared_click_through_urls
  @declared_click_through_urls
end

#declared_restricted_categoriesArray<String>

All declared restricted categories for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property declaredRestrictedCategories

Returns:

  • (Array<String>)


298
299
300
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 298

def declared_restricted_categories
  @declared_restricted_categories
end

#declared_vendor_idsArray<Fixnum>

IDs for the declared ad technology vendors that may be used by this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property declaredVendorIds

Returns:

  • (Array<Fixnum>)


306
307
308
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 306

def declared_vendor_ids
  @declared_vendor_ids
end

#htmlGoogle::Apis::RealtimebiddingV1::HtmlContent

HTML content for a creative. Corresponds to the JSON property html



311
312
313
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 311

def html
  @html
end

#impression_tracking_urlsArray<String>

The set of URLs to be called to record an impression. Corresponds to the JSON property impressionTrackingUrls

Returns:

  • (Array<String>)


316
317
318
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 316

def impression_tracking_urls
  @impression_tracking_urls
end

#nameString

Output only. Name of the creative. Follows the pattern buyers/buyer/ creatives/creative, wherebuyerrepresents the account ID of the buyer who owns the creative, andcreative`is the buyer-specific creative ID that references this creative in the bid response. Corresponds to the JSON propertyname`

Returns:

  • (String)


324
325
326
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 324

def name
  @name
end

#nativeGoogle::Apis::RealtimebiddingV1::NativeContent

Native content for a creative. Corresponds to the JSON property native



329
330
331
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 329

def native
  @native
end

#restricted_categoriesArray<String>

All restricted categories for the ads that may be shown from this creative. Corresponds to the JSON property restrictedCategories

Returns:

  • (Array<String>)


334
335
336
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 334

def restricted_categories
  @restricted_categories
end

#versionFixnum

Output only. The version of this creative. Version for a new creative is 1 and it increments during subsequent creative updates. Corresponds to the JSON property version

Returns:

  • (Fixnum)


340
341
342
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 340

def version
  @version
end

#videoGoogle::Apis::RealtimebiddingV1::VideoContent

Video content for a creative. Corresponds to the JSON property video



345
346
347
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 345

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 352

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
  @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
  @agency_id = args[:agency_id] if args.key?(:agency_id)
  @api_update_time = args[:api_update_time] if args.key?(:api_update_time)
  @creative_format = args[:creative_format] if args.key?(:creative_format)
  @creative_id = args[:creative_id] if args.key?(:creative_id)
  @creative_serving_decision = args[:creative_serving_decision] if args.key?(:creative_serving_decision)
  @deal_ids = args[:deal_ids] if args.key?(:deal_ids)
  @declared_attributes = args[:declared_attributes] if args.key?(:declared_attributes)
  @declared_click_through_urls = args[:declared_click_through_urls] if args.key?(:declared_click_through_urls)
  @declared_restricted_categories = args[:declared_restricted_categories] if args.key?(:declared_restricted_categories)
  @declared_vendor_ids = args[:declared_vendor_ids] if args.key?(:declared_vendor_ids)
  @html = args[:html] if args.key?(:html)
  @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
  @name = args[:name] if args.key?(:name)
  @native = args[:native] if args.key?(:native)
  @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
  @version = args[:version] if args.key?(:version)
  @video = args[:video] if args.key?(:video)
end