Class: Google::Apis::Adexchangebuyer2V2beta1::Creative

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

A creative and its classification data.

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

Returns a new instance of Creative



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

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

Instance Attribute Details

#account_idString

The account that this creative belongs to. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property accountId

Returns:

  • (String)


1098
1099
1100
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1098

def 
  @account_id
end

#ad_choices_destination_urlString

The link to AdChoices destination page. Corresponds to the JSON property adChoicesDestinationUrl

Returns:

  • (String)


1131
1132
1133
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1131

def ad_choices_destination_url
  @ad_choices_destination_url
end

#advertiser_nameString

The name of the company being advertised in the creative. Corresponds to the JSON property advertiserName

Returns:

  • (String)


1207
1208
1209
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1207

def advertiser_name
  @advertiser_name
end

#agency_idFixnum

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

Returns:

  • (Fixnum)


1121
1122
1123
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1121

def agency_id
  @agency_id
end

#api_update_timeString

Corresponds to the JSON property apiUpdateTime

Returns:

  • (String)


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

def api_update_time
  @api_update_time
end

#attributesArray<String>

All attributes 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 attributes

Returns:

  • (Array<String>)


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

def attributes
  @attributes
end

#click_through_urlsArray<String>

The set of destination URLs for the creative. Corresponds to the JSON property clickThroughUrls

Returns:

  • (Array<String>)


1126
1127
1128
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1126

def click_through_urls
  @click_through_urls
end

#correctionsArray<Google::Apis::Adexchangebuyer2V2beta1::Correction>

Corresponds to the JSON property corrections



1149
1150
1151
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1149

def corrections
  @corrections
end

#creative_idString

The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property creativeId

Returns:

  • (String)


1090
1091
1092
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1090

def creative_id
  @creative_id
end

#deals_statusString

If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property dealsStatus

Returns:

  • (String)


1183
1184
1185
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1183

def deals_status
  @deals_status
end

#detected_advertiser_idsArray<Fixnum>

Corresponds to the JSON property detectedAdvertiserIds

Returns:

  • (Array<Fixnum>)


1212
1213
1214
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1212

def detected_advertiser_ids
  @detected_advertiser_ids
end

#detected_domainsArray<String>

The detected domains for this creative. Corresponds to the JSON property detectedDomains

Returns:

  • (Array<String>)


1218
1219
1220
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1218

def detected_domains
  @detected_domains
end

#detected_languagesArray<String>

The detected languages for this creative. The order is arbitrary. The codes are 2 or 5 characters and are documented at https://developers.google.com/adwords/api/docs/appendix/languagecodes. Corresponds to the JSON property detectedLanguages

Returns:

  • (Array<String>)


1245
1246
1247
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1245

def detected_languages
  @detected_languages
end

#detected_product_categoriesArray<Fixnum>

See the ad-product-categories.txt file in the technical documentation for a list of IDs. Corresponds to the JSON property detectedProductCategories

Returns:

  • (Array<Fixnum>)


1190
1191
1192
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1190

def detected_product_categories
  @detected_product_categories
end

#detected_sensitive_categoriesArray<Fixnum>

See the ad-sensitive-categories.txt file in the technical documentation for a list of IDs. You should use these IDs along with the excluded-sensitive-category field in the bid request to filter your bids. Corresponds to the JSON property detectedSensitiveCategories

Returns:

  • (Array<Fixnum>)


1139
1140
1141
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1139

def detected_sensitive_categories
  @detected_sensitive_categories
end

#filtering_statsGoogle::Apis::Adexchangebuyer2V2beta1::FilteringStats

day (from midnight to midnight Pacific). Corresponds to the JSON property filteringStats



1224
1225
1226
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1224

def filtering_stats
  @filtering_stats
end

#htmlGoogle::Apis::Adexchangebuyer2V2beta1::HtmlContent

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



1171
1172
1173
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1171

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


1166
1167
1168
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1166

def impression_tracking_urls
  @impression_tracking_urls
end

#nativeGoogle::Apis::Adexchangebuyer2V2beta1::NativeContent

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



1103
1104
1105
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1103

def native
  @native
end

#open_auction_statusString

If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in serving_restrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case, it may be preferable to read from serving_restrictions directly. Can be used to filter the response of the creatives.list method. Corresponds to the JSON property openAuctionStatus

Returns:

  • (String)


1202
1203
1204
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1202

def open_auction_status
  @open_auction_status
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>)


1144
1145
1146
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1144

def restricted_categories
  @restricted_categories
end

#serving_restrictionsArray<Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction>

A context here relates to where something ultimately serves (for example, a physical location, a platform, an HTTPS vs HTTP request, or the type of auction). Corresponds to the JSON property servingRestrictions



1116
1117
1118
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1116

def serving_restrictions
  @serving_restrictions
end

#vendor_idsArray<Fixnum>

All vendor IDs for the ads that may be shown from this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values. Corresponds to the JSON property vendorIds

Returns:

  • (Array<Fixnum>)


1161
1162
1163
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1161

def vendor_ids
  @vendor_ids
end

#versionFixnum

Corresponds to the JSON property version

Returns:

  • (Fixnum)


1154
1155
1156
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1154

def version
  @version
end

#videoGoogle::Apis::Adexchangebuyer2V2beta1::VideoContent

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



1108
1109
1110
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1108

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1252

def update!(**args)
  @creative_id = args[:creative_id] if args.key?(:creative_id)
  @account_id = args[:account_id] if args.key?(:account_id)
  @native = args[:native] if args.key?(:native)
  @video = args[:video] if args.key?(:video)
  @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
  @agency_id = args[:agency_id] if args.key?(:agency_id)
  @click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls)
  @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
  @detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
  @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
  @corrections = args[:corrections] if args.key?(:corrections)
  @version = args[:version] if args.key?(:version)
  @vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
  @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
  @html = args[:html] if args.key?(:html)
  @deals_status = args[:deals_status] if args.key?(:deals_status)
  @detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
  @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
  @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
  @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
  @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
  @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats)
  @attributes = args[:attributes] if args.key?(:attributes)
  @api_update_time = args[:api_update_time] if args.key?(:api_update_time)
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
end