class Google::Apis::AdexchangebuyerV1_4::Creative

A creative and its classification data.

Attributes

account_id[RW]

Account id. Corresponds to the JSON property `accountId` @return [Fixnum]

ad_choices_destination_url[RW]

The link to the Ad Preferences page. This is only supported for native ads. Corresponds to the JSON property `adChoicesDestinationUrl` @return [String]

ad_technology_providers[RW]

Corresponds to the JSON property `adTechnologyProviders` @return [Google::Apis::AdexchangebuyerV1_4::Creative::AdTechnologyProviders]

advertiser_id[RW]

Detected advertiser id, if any. Read-only. This field should not be set in requests. Corresponds to the JSON property `advertiserId` @return [Array<Fixnum>]

advertiser_name[RW]

The name of the company being advertised in the creative. A list of advertisers is provided in the advertisers.txt file. Corresponds to the JSON property `advertiserName` @return [String]

agency_id[RW]

The agency id for this creative. Corresponds to the JSON property `agencyId` @return [Fixnum]

api_upload_timestamp[RW]

The last upload timestamp of this creative if it was uploaded via API. Read- only. The value of this field is generated, and will be ignored for uploads. ( formatted RFC 3339 timestamp). Corresponds to the JSON property `apiUploadTimestamp` @return [DateTime]

attribute[RW]

List of buyer selectable attributes for the ads that may be shown from this snippet. Each attribute is represented by an integer as defined in buyer- declarable-creative-attributes.txt. Corresponds to the JSON property `attribute` @return [Array<Fixnum>]

buyer_creative_id[RW]

A buyer-specific id identifying the creative in this ad. Corresponds to the JSON property `buyerCreativeId` @return [String]

click_through_url[RW]

The set of destination urls for the snippet. Corresponds to the JSON property `clickThroughUrl` @return [Array<String>]

corrections[RW]

Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests. Corresponds to the JSON property `corrections` @return [Array<Google::Apis::AdexchangebuyerV1_4::Creative::Correction>]

creative_status_identity_type[RW]

Creative status identity type that the creative item applies to. Ad Exchange real-time bidding is migrating to the sizeless creative verification. Originally, Ad Exchange assigned creative verification status to a unique combination of a buyer creative ID and creative dimensions. Post-migration, a single verification status will be assigned at the buyer creative ID level. This field allows to distinguish whether a given creative status applies to a unique combination of a buyer creative ID and creative dimensions, or to a buyer creative ID as a whole. Corresponds to the JSON property `creativeStatusIdentityType` @return [String]

deals_status[RW]

Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly. Corresponds to the JSON property `dealsStatus` @return [String]

detected_domains[RW]

Detected domains for this creative. Read-only. This field should not be set in requests. Corresponds to the JSON property `detectedDomains` @return [Array<String>]

filtering_reasons[RW]

The filtering reasons for the creative. Read-only. This field should not be set in requests. Corresponds to the JSON property `filteringReasons` @return [Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons]

height[RW]

Ad height. Corresponds to the JSON property `height` @return [Fixnum]

html_snippet[RW]

The HTML snippet that displays the ad when inserted in the web page. If set, videoURL, videoVastXML, and nativeAd should not be set. Corresponds to the JSON property `HTMLSnippet` @return [String]

impression_tracking_url[RW]

The set of urls to be called to record an impression. Corresponds to the JSON property `impressionTrackingUrl` @return [Array<String>]

kind[RW]

Resource type. Corresponds to the JSON property `kind` @return [String]

languages[RW]

Detected languages for this creative. Read-only. This field should not be set in requests. Corresponds to the JSON property `languages` @return [Array<String>]

native_ad[RW]

If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.) Corresponds to the JSON property `nativeAd` @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd]

open_auction_status[RW]

Top-level open auction status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from ServingRestrictions directly. Corresponds to the JSON property `openAuctionStatus` @return [String]

product_categories[RW]

Detected product categories, if any. Each category is represented by an integer as defined in ad-product-categories.txt. Read-only. This field should not be set in requests. Corresponds to the JSON property `productCategories` @return [Array<Fixnum>]

restricted_categories[RW]

All restricted categories for the ads that may be shown from this snippet. Each category is represented by an integer as defined in the ad-restricted- categories.txt. Corresponds to the JSON property `restrictedCategories` @return [Array<Fixnum>]

sensitive_categories[RW]

Detected sensitive categories, if any. Each category is represented by an integer as defined in ad-sensitive-categories.txt. Read-only. This field should not be set in requests. Corresponds to the JSON property `sensitiveCategories` @return [Array<Fixnum>]

serving_restrictions[RW]

The granular status of this ad in specific contexts. 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). Read-only. This field should not be set in requests. See the examples in the Creatives guide for more details. Corresponds to the JSON property `servingRestrictions` @return [Array<Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction>]

vendor_type[RW]

List of vendor types for the ads that may be shown from this snippet. Each vendor type is represented by an integer as defined in vendors.txt. Corresponds to the JSON property `vendorType` @return [Array<Fixnum>]

version[RW]

The version for this creative. Read-only. This field should not be set in requests. Corresponds to the JSON property `version` @return [Fixnum]

video_url[RW]

The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and nativeAd should not be set. Note, this is different from resource.native_ad.video_url above. Corresponds to the JSON property `videoURL` @return [String]

video_vast_xml[RW]

The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, and nativeAd and should not be set. Corresponds to the JSON property `videoVastXML` @return [String]

width[RW]

Ad width. Corresponds to the JSON property `width` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/adexchangebuyer_v1_4/classes.rb, line 680
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer_v1_4/classes.rb, line 685
def update!(**args)
  @html_snippet = args[:html_snippet] if args.key?(:html_snippet)
  @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)
  @ad_technology_providers = args[:ad_technology_providers] if args.key?(:ad_technology_providers)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
  @agency_id = args[:agency_id] if args.key?(:agency_id)
  @api_upload_timestamp = args[:api_upload_timestamp] if args.key?(:api_upload_timestamp)
  @attribute = args[:attribute] if args.key?(:attribute)
  @buyer_creative_id = args[:buyer_creative_id] if args.key?(:buyer_creative_id)
  @click_through_url = args[:click_through_url] if args.key?(:click_through_url)
  @corrections = args[:corrections] if args.key?(:corrections)
  @creative_status_identity_type = args[:creative_status_identity_type] if args.key?(:creative_status_identity_type)
  @deals_status = args[:deals_status] if args.key?(:deals_status)
  @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
  @filtering_reasons = args[:filtering_reasons] if args.key?(:filtering_reasons)
  @height = args[:height] if args.key?(:height)
  @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url)
  @kind = args[:kind] if args.key?(:kind)
  @languages = args[:languages] if args.key?(:languages)
  @native_ad = args[:native_ad] if args.key?(:native_ad)
  @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
  @product_categories = args[:product_categories] if args.key?(:product_categories)
  @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
  @sensitive_categories = args[:sensitive_categories] if args.key?(:sensitive_categories)
  @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
  @vendor_type = args[:vendor_type] if args.key?(:vendor_type)
  @version = args[:version] if args.key?(:version)
  @video_url = args[:video_url] if args.key?(:video_url)
  @video_vast_xml = args[:video_vast_xml] if args.key?(:video_vast_xml)
  @width = args[:width] if args.key?(:width)
end