Creates a creative.

Scopes

You will need authorization for the https://www.googleapis.com/auth/realtime-bidding scope to make a valid call.

If unset, the scope for this method defaults to https://www.googleapis.com/auth/realtime-bidding. You can set the scope for this method like this: realtimebidding1 --scope <scope> buyers creatives-create ...

Required Scalar Argument

  • <parent> (string)
    • Required. The name of the parent buyer that the new creative belongs to that must follow the pattern buyers/{buyerAccountId}, where {buyerAccountId} represents the account ID of the buyer who owns a creative. For a bidder accessing creatives on behalf of a child seat buyer, {buyerAccountId} should represent the account ID of the child seat buyer.

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

Creative:
  account-id: string
  ad-choices-destination-url: string
  advertiser-name: string
  agency-id: string
  api-update-time: string
  creative-format: string
  creative-id: string
  creative-serving-decision:
    ad-technology-providers:
      detected-gvl-ids: [string]
      detected-provider-ids: [string]
      unidentified-provider-domains: [string]
    china-policy-compliance:
      status: string
    deals-policy-compliance:
      status: string
    detected-attributes: [string]
    detected-click-through-urls: [string]
    detected-domains: [string]
    detected-languages: [string]
    detected-product-categories: [integer]
    detected-sensitive-categories: [integer]
    detected-vendor-ids: [integer]
    last-status-update: string
    network-policy-compliance:
      status: string
    platform-policy-compliance:
      status: string
    russia-policy-compliance:
      status: string
  deal-ids: [string]
  declared-attributes: [string]
  declared-click-through-urls: [string]
  declared-restricted-categories: [string]
  declared-vendor-ids: [integer]
  html:
    height: integer
    snippet: string
    width: integer
  impression-tracking-urls: [string]
  name: string
  native:
    advertiser-name: string
    app-icon:
      height: integer
      url: string
      width: integer
    body: string
    call-to-action: string
    click-link-url: string
    click-tracking-url: string
    headline: string
    image:
      height: integer
      url: string
      width: integer
    logo:
      height: integer
      url: string
      width: integer
    price-display-text: string
    star-rating: number
    video-url: string
    video-vast-xml: string
  render-url: string
  restricted-categories: [string]
  version: integer
  video:
    video-metadata:
      duration: string
      is-valid-vast: boolean
      is-vpaid: boolean
      skip-offset: string
      vast-version: string
    video-url: string
    video-vast-xml: string

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r . account-id=takimata
    • 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.
  • ad-choices-destination-url=consetetur
    • The link to AdChoices destination page. This is only supported for native ads.
  • advertiser-name=voluptua.
    • The name of the company being advertised in the creative. Can be used to filter the response of the creatives.list method.
  • agency-id=et
    • The agency ID for this creative.
  • api-update-time=erat
    • Output only. The last update timestamp of the creative through the API.
  • creative-format=consetetur
    • Output only. The format of this creative. Can be used to filter the response of the creatives.list method.
  • creative-id=amet.
    • 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.
  • creative-serving-decision.ad-technology-providers detected-gvl-ids=sed
    • The detected IAB Global Vendor List (GVL) IDs for this creative. See the IAB Global Vendor List at https://vendor-list.consensu.org/v2/vendor-list.json for details about the vendors.
    • Each invocation of this argument appends the given value to the array.
  • detected-provider-ids=takimata
    • The detected Google Ad Tech Providers (ATP) for this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/providers.csv for mapping of provider ID to provided name, a privacy policy URL, and a list of domains which can be attributed to the provider.
    • Each invocation of this argument appends the given value to the array.
  • unidentified-provider-domains=dolores

    • Domains of detected unidentified ad technology providers (if any). You must ensure that the creatives used in bids placed for inventory that will serve to EEA or UK users does not contain unidentified ad technology providers. Google reserves the right to filter non-compliant bids.
    • Each invocation of this argument appends the given value to the array.
  • ..china-policy-compliance status=gubergren

    • Serving status for the given transaction type (for example, open auction, deals) or region (for example, China, Russia). Can be used to filter the response of the creatives.list method.
  • ..deals-policy-compliance status=et

    • Serving status for the given transaction type (for example, open auction, deals) or region (for example, China, Russia). Can be used to filter the response of the creatives.list method.
  • .. detected-attributes=accusam

    • Publisher-excludable attributes that were detected for 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.
    • Each invocation of this argument appends the given value to the array.
  • detected-click-through-urls=voluptua.
    • The set of detected destination URLs for the creative. Can be used to filter the response of the creatives.list method.
    • Each invocation of this argument appends the given value to the array.
  • detected-domains=dolore
    • The detected domains for this creative.
    • Each invocation of this argument appends the given value to the array.
  • detected-languages=dolore
    • 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. Can be used to filter the response of the creatives.list method.
    • Each invocation of this argument appends the given value to the array.
  • detected-product-categories=67
    • Detected product categories, if any. See the ad-product-categories.txt file in the technical documentation for a list of IDs. Can be used to filter the response of the creatives.list method.
    • Each invocation of this argument appends the given value to the array.
  • detected-sensitive-categories=23
    • Detected sensitive categories, if any. Can be used to filter the response of the creatives.list method. 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.
    • Each invocation of this argument appends the given value to the array.
  • detected-vendor-ids=99
    • IDs of the ad technology vendors that were detected to 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. If the allowed_vendor_type field of a bid request does not contain one of the vendor type IDs 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.
    • Each invocation of this argument appends the given value to the array.
  • last-status-update=ea
    • The last time the creative status was updated. Can be used to filter the response of the creatives.list method.
  • network-policy-compliance status=sadipscing

    • Serving status for the given transaction type (for example, open auction, deals) or region (for example, China, Russia). Can be used to filter the response of the creatives.list method.
  • ..platform-policy-compliance status=lorem

    • Serving status for the given transaction type (for example, open auction, deals) or region (for example, China, Russia). Can be used to filter the response of the creatives.list method.
  • ..russia-policy-compliance status=invidunt

    • Serving status for the given transaction type (for example, open auction, deals) or region (for example, China, Russia). Can be used to filter the response of the creatives.list method.
  • ... deal-ids=no

    • 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.
    • Each invocation of this argument appends the given value to the array.
  • declared-attributes=est
    • 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.
    • Each invocation of this argument appends the given value to the array.
  • declared-click-through-urls=at
    • The set of declared destination URLs for the creative. Can be used to filter the response of the creatives.list method.
    • Each invocation of this argument appends the given value to the array.
  • declared-restricted-categories=sed
    • 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.
    • Each invocation of this argument appends the given value to the array.
  • declared-vendor-ids=3
    • 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.
    • Each invocation of this argument appends the given value to the array.
  • html height=66
    • The height of the HTML snippet in pixels. Can be used to filter the response of the creatives.list method.
  • snippet=tempor
    • The HTML snippet that displays the ad when inserted in the web page.
  • width=69

    • The width of the HTML snippet in pixels. Can be used to filter the response of the creatives.list method.
  • .. impression-tracking-urls=ipsum

    • The set of URLs to be called to record an impression.
    • Each invocation of this argument appends the given value to the array.
  • name=et
    • Output only. Name of the creative. Follows the pattern buyers/{buyer}/creatives/{creative}, where {buyer} represents the account ID of the buyer who owns the creative, and {creative} is the buyer-specific creative ID that references this creative in the bid response.
  • native advertiser-name=sanctus
    • The name of the advertiser or sponsor, to be displayed in the ad creative.
  • app-icon height=45
    • Image height in pixels.
  • url=est
    • The URL of the image.
  • width=71

    • Image width in pixels.
  • .. body=diam

    • A long description of the ad.
  • call-to-action=dolores
    • A label for the button that the user is supposed to click.
  • click-link-url=dolores
    • The URL that the browser/SDK will load when the user clicks the ad.
  • click-tracking-url=et
    • The URL to use for click tracking.
  • headline=sed
    • A short title for the ad.
  • image height=90
    • Image height in pixels.
  • url=et
    • The URL of the image.
  • width=7

    • Image width in pixels.
  • ..logo height=21

    • Image height in pixels.
  • url=no
    • The URL of the image.
  • width=10

    • Image width in pixels.
  • .. price-display-text=at

    • The price of the promoted app including currency info.
  • star-rating=0.439459047858913
    • The app rating in the app store. Must be in the range [0-5].
  • video-url=aliquyam
    • The URL to fetch a native video ad.
  • video-vast-xml=dolores

    • The contents of a VAST document for a native video ad.
  • .. render-url=sadipscing

  • restricted-categories=erat
    • All restricted categories for the ads that may be shown from this creative.
    • Each invocation of this argument appends the given value to the array.
  • version=19
    • Output only. The version of the creative. Version for a new creative is 1 and it increments during subsequent creative updates.
  • video.video-metadata duration=amet
    • The duration of the ad. Can be used to filter the response of the creatives.list method.
  • is-valid-vast=true
    • Is this a valid VAST ad? Can be used to filter the response of the creatives.list method.
  • is-vpaid=false
    • Is this a VPAID ad? Can be used to filter the response of the creatives.list method.
  • skip-offset=consetetur
    • The minimum duration that the user has to watch before being able to skip this ad. If the field is not set, the ad is not skippable. If the field is set, the ad is skippable. Can be used to filter the response of the creatives.list method.
  • vast-version=stet

    • The maximum VAST version across all wrapped VAST documents. Can be used to filter the response of the creatives.list method.
  • .. video-url=est

    • The URL to fetch a video ad.
  • video-vast-xml=aliquyam
    • The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").