Updates an existing creative.
Scopes
You will need authorization for the https://www.googleapis.com/auth/dfatrafficking scope to make a valid call.
If unset, the scope for this method defaults to https://www.googleapis.com/auth/dfatrafficking.
You can set the scope for this method like this: dfareporting3 --scope <scope> creatives update ...
Required Scalar Argument
- <profile-id> (string)
- User profile ID associated with this request.
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
active: boolean
ad-parameters: string
ad-tag-keys: [string]
advertiser-id: string
allow-script-access: boolean
archived: boolean
artwork-type: string
authoring-source: string
authoring-tool: string
auto-advance-images: boolean
background-color: string
backup-image-click-through-url:
computed-click-through-url: string
custom-click-through-url: string
landing-page-id: string
backup-image-features: [string]
backup-image-reporting-label: string
backup-image-target-window:
custom-html: string
target-window-option: string
commercial-id: string
companion-creatives: [string]
compatibility: [string]
convert-flash-to-html5: boolean
creative-asset-selection:
default-asset-id: string
custom-key-values: [string]
dynamic-asset-selection: boolean
fs-command:
left: integer
position-option: string
top: integer
window-height: integer
window-width: integer
html-code: string
html-code-locked: boolean
id: string
id-dimension-value:
dimension-name: string
etag: string
id: string
kind: string
match-type: string
value: string
kind: string
last-modified-info:
time: string
latest-trafficked-creative-id: string
name: string
override-css: string
polite-load-asset-id: string
progress-offset:
offset-percentage: integer
offset-seconds: integer
redirect-url: string
rendering-id: string
rendering-id-dimension-value:
dimension-name: string
etag: string
id: string
kind: string
match-type: string
value: string
required-flash-plugin-version: string
required-flash-version: integer
size:
height: integer
iab: boolean
id: string
kind: string
width: integer
skip-offset:
offset-percentage: integer
offset-seconds: integer
skippable: boolean
ssl-compliant: boolean
ssl-override: boolean
studio-advertiser-id: string
studio-creative-id: string
studio-trafficked-creative-id: string
subaccount-id: string
third-party-backup-image-impressions-url: string
third-party-rich-media-impressions-url: string
total-file-size: string
type: string
universal-ad-id:
registry: string
value: string
version: integer
video-description: string
video-duration: number
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=rebum.
- Account ID of this creative. This field, if left unset, will be auto-generated for both insert and update operations. Applicable to all creative types.
active=true
- Whether the creative is active. Applicable to all creative types.
ad-parameters=stet
- Ad parameters user for VPAID creative. This is a read-only field. Applicable to the following creative types: all VPAID.
ad-tag-keys=et
- Keywords for a Rich Media creative. Keywords let you customize the creative settings of a Rich Media ad running on your site without having to contact the advertiser. You can use keywords to dynamically change the look or functionality of a creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
- Each invocation of this argument appends the given value to the array.
advertiser-id=diam
- Advertiser ID of this creative. This is a required field. Applicable to all creative types.
allow-script-access=false
- Whether script access is allowed for this creative. This is a read-only and deprecated field which will automatically be set to true on update. Applicable to the following creative types: FLASH_INPAGE.
archived=true
- Whether the creative is archived. Applicable to all creative types.
artwork-type=dolor
- Type of artwork used for the creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
authoring-source=sadipscing
- Source application where creative was authored. Presently, only DBM authored creatives will have this field set. Applicable to all creative types.
authoring-tool=duo
- Authoring tool for HTML5 banner creatives. This is a read-only field. Applicable to the following creative types: HTML5_BANNER.
auto-advance-images=true
- Whether images are automatically advanced for image gallery creatives. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY.
background-color=tempor
- The 6-character HTML color code, beginning with #, for the background of the window area where the Flash file is displayed. Default is white. Applicable to the following creative types: FLASH_INPAGE.
backup-image-click-through-url computed-click-through-url=ipsum
- Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows:
- If landingPageId is specified then that landing page's URL is assigned to this field.
- Otherwise, the customClickThroughUrl is assigned to this field.
- Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows:
custom-click-through-url=diam
- Custom click-through URL. Applicable if the landingPageId field is left unset.
-
landing-page-id=ea
- ID of the landing page for the click-through URL.
-
.. backup-image-features=erat
- List of feature dependencies that will cause a backup image to be served if the browser that serves the ad does not support them. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative asset correctly. This field is initially auto-generated to contain all features detected by Campaign Manager for all the assets of this creative and can then be modified by the client. To reset this field, copy over all the creativeAssets' detected features. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.
- Each invocation of this argument appends the given value to the array.
backup-image-reporting-label=accusam
- Reporting label used for HTML5 banner backup image. Applicable to the following creative types: DISPLAY when the primary asset type is not HTML_IMAGE.
backup-image-target-window custom-html=magna
- User-entered value.
-
target-window-option=ipsum
- Type of browser window for which the backup image of the flash creative can be displayed.
-
.. commercial-id=gubergren
- Industry standard ID assigned to creative for reach and frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives.
companion-creatives=kasd
- List of companion creatives assigned to an in-Stream video creative. Acceptable values include IDs of existing flash and image creatives. Applicable to the following creative types: all VPAID and all INSTREAM_VIDEO with dynamicAssetSelection set to false.
- Each invocation of this argument appends the given value to the array.
-
compatibility=sit
-
Compatibilities associated with this creative. This is a read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. Only pre-existing creatives may have these compatibilities since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. Applicable to all creative types.
Acceptable values are: - "APP" - "APP_INTERSTITIAL" - "IN_STREAM_VIDEO" - "DISPLAY" - "DISPLAY_INTERSTITIAL" - Each invocation of this argument appends the given value to the array. *
convert-flash-to-html5=false
- Whether Flash assets associated with the creative need to be automatically converted to HTML5. This flag is enabled by default and users can choose to disable it if they don't want the system to generate and use HTML5 asset for this creative. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. *creative-asset-selection default-asset-id=ea
- A creativeAssets[].id. This should refer to one of the parent assets in this creative, and will be served if none of the rules match. This is a required field.
-
-
.. custom-key-values=sit
- Custom key-values for a Rich Media creative. Key-values let you customize the creative settings of a Rich Media ad running on your site without having to contact the advertiser. You can use key-values to dynamically change the look or functionality of a creative. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
- Each invocation of this argument appends the given value to the array.
dynamic-asset-selection=false
- Set this to true to enable the use of rules to target individual assets in this creative. When set to true creativeAssetSelection must be set. This also controls asset-level companions. When this is true, companion creatives should be assigned to creative assets. Learn more. Applicable to INSTREAM_VIDEO creatives.
fs-command left=80
- Distance from the left of the browser.Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER.
position-option=takimata
- Position in the browser where the window will open.
top=30
- Distance from the top of the browser. Applicable when positionOption is DISTANCE_FROM_TOP_LEFT_CORNER.
window-height=44
- Height of the window.
-
window-width=41
- Width of the window.
-
.. html-code=magna
- HTML code for the creative. This is a required field when applicable. This field is ignored if htmlCodeLocked is true. Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA.
html-code-locked=false
- Whether HTML code is generated by Campaign Manager or manually entered. Set to true to ignore changes to htmlCode. Applicable to the following creative types: FLASH_INPAGE and HTML5_BANNER.
id=ipsum
- ID of this creative. This is a read-only, auto-generated field. Applicable to all creative types.
id-dimension-value dimension-name=dolor
- The name of the dimension.
etag=elitr
- The eTag of this response for caching purposes.
id=et
- The ID associated with the value if available.
kind=amet.
- The kind of resource this is, in this case dfareporting#dimensionValue.
match-type=duo
- Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch') allow a matchType other than EXACT.
-
value=dolore
- The value of the dimension.
-
.. kind=takimata
- Identifies what kind of resource this is. Value: the fixed string "dfareporting#creative".
-
last-modified-info time=justo
- Timestamp of the last change in milliseconds since epoch.
-
.. latest-trafficked-creative-id=eirmod
- Latest Studio trafficked creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
name=at
- Name of the creative. This is a required field and must be less than 256 characters long. Applicable to all creative types.
override-css=dolor
- Override CSS value for rich media creatives. Applicable to the following creative types: all RICH_MEDIA.
polite-load-asset-id=et
- The asset ID of the polite load image asset. Applicable to the creative type: DISPLAY.
progress-offset offset-percentage=16
- Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
-
offset-seconds=95
- Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
-
.. redirect-url=et
- URL of hosted image or hosted video or another ad tag. For INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. The standard for a VAST (Video Ad Serving Template) ad response allows for a redirect link to another VAST 2.0 or 3.0 call. This is a required field when applicable. Applicable to the following creative types: DISPLAY_REDIRECT, INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO_REDIRECT
rendering-id=lorem
- ID of current rendering version. This is a read-only field. Applicable to all creative types.
rendering-id-dimension-value dimension-name=dolores
- The name of the dimension.
etag=eos
- The eTag of this response for caching purposes.
id=magna
- The ID associated with the value if available.
kind=stet
- The kind of resource this is, in this case dfareporting#dimensionValue.
match-type=kasd
- Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch') allow a matchType other than EXACT.
-
value=stet
- The value of the dimension.
-
.. required-flash-plugin-version=sed
- The minimum required Flash plugin version for this creative. For example, 11.2.202.235. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
required-flash-version=61
- The internal Flash version for this creative as calculated by Studio. This is a read-only field. Applicable to the following creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.
size height=84
- Height of this size. Acceptable values are 0 to 32767, inclusive.
iab=true
- IAB standard size. This is a read-only, auto-generated field.
id=ea
- ID of this size. This is a read-only, auto-generated field.
kind=amet.
- Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
-
width=6
- Width of this size. Acceptable values are 0 to 32767, inclusive.
-
..skip-offset offset-percentage=32
- Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
-
offset-seconds=80
- Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
-
.. skippable=true
- Whether the user can choose to skip the creative. Applicable to the following creative types: all INSTREAM_VIDEO and all VPAID.
ssl-compliant=true
- Whether the creative is SSL-compliant. This is a read-only field. Applicable to all creative types.
ssl-override=false
- Whether creative should be treated as SSL compliant even if the system scan shows it's not. Applicable to all creative types.
studio-advertiser-id=sed
- Studio advertiser ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
studio-creative-id=et
- Studio creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
studio-trafficked-creative-id=no
- Studio trafficked creative ID associated with rich media and VPAID creatives. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
subaccount-id=sit
- Subaccount ID of this creative. This field, if left unset, will be auto-generated for both insert and update operations. Applicable to all creative types.
third-party-backup-image-impressions-url=labore
- Third-party URL used to record backup image impressions. Applicable to the following creative types: all RICH_MEDIA.
third-party-rich-media-impressions-url=sea
- Third-party URL used to record rich media impressions. Applicable to the following creative types: all RICH_MEDIA.
total-file-size=sea
- Combined size of all creative assets. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA, and all VPAID.
-
type=sadipscing
-
Type of this creative. This is a required field. Applicable to all creative types.
Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing creatives. New creatives should use DISPLAY as a replacement for these types. *
universal-ad-id registry=justo
- Registry used for the Ad ID value. *value=aliquyam
- ID value for this creative. Only alphanumeric characters and the following symbols are valid: "_/-". Maximum length is 64 characters. Read only when registry is DCM.
-
-
.. version=11
- The version number helps you keep track of multiple versions of your creative in your reports. The version number will always be auto-generated during insert operations to start at 1. For tracking creatives the version cannot be incremented and will always remain at 1. For all other creative types the version can be incremented only by 1 during update operations. In addition, the version will be automatically incremented by 1 when undergoing Rich Media creative merging. Applicable to all creative types.
video-description=duo
- Description of the video ad. Applicable to the following creative types: all INSTREAM_VIDEO and all VPAID.
video-duration=0.5080978066421401
- Creative video duration in seconds. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO, all RICH_MEDIA, and all VPAID.
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.
- out specifies the destination to which to write the server's result to.
It will be a JSON-encoded structure.
The destination may be
Optional General Properties
The following properties can configure any call, and are not specific to this method.
-
-p alt=string
- Data format for the response.
-
-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
- An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
-
-p user-ip=string
- Deprecated. Please use quotaUser instead.