type AssetCreativeTemplateVariable (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Service
CreativeTemplateService
Represents a file asset variable defined in a creative template.
Use AssetCreativeTemplateVariableValue to
specify the value for this variable when creating
TemplateCreative from the TemplateCreative.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
CreativeTemplateVariable (inherited)
|
label
|
xsd:string
Label that is displayed to users when creating TemplateCreative from the
CreativeTemplate. This attribute is required and has a maximum
length of 127 characters.
|
uniqueName
|
xsd:string
Unique name used to identify the variable. This attribute is read-only and
is assigned by Google, by deriving from label, when a creative template
variable is created.
|
description
|
xsd:string
A descriptive help text that is displayed to users along with the
label. This attribute is required and has a maximum length of 255 characters.
|
isRequired
|
xsd:boolean
true if this variable is required to be filled in by users when
creating TemplateCreative from the CreativeTemplate.
|
AssetCreativeTemplateVariable
|
mimeTypes
|
AssetCreativeTemplateVariab...[]
A set of supported mime types. This set can be empty or null if there's no
constraint, meaning files of any mime types are allowed.
Enumerations
-
JPG
-
PNG
-
GIF
-
SWF
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eAssetCreativeTemplateVariable represents a file asset variable within creative templates, used to define placeholders for assets in creatives built from templates.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits properties from CreativeTemplateVariable like label, uniqueName, description, and isRequired for basic variable configuration.\u003c/p\u003e\n"],["\u003cp\u003eWhen creating TemplateCreatives, AssetCreativeTemplateVariableValue is used to provide specific values for these asset variables.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emimeTypes\u003c/code\u003e field allows specifying which file types (e.g., JPG, PNG, GIF, SWF) are accepted for this variable, ensuring compatibility with the intended creative.\u003c/p\u003e\n"],["\u003cp\u003eThe variable is defined within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e namespace for use within the Google Ad Manager API.\u003c/p\u003e\n"]]],["The `AssetCreativeTemplateVariable` defines a file asset variable within a creative template, inheriting from `CreativeTemplateVariable`. Key attributes include `label` (user-displayed name), `uniqueName` (system-assigned identifier), `description` (help text), and `isRequired` (mandatory status). The `mimeTypes` field specifies allowed file types (e.g., JPG, PNG, GIF, SWF). It's used to define the variable in a template and it is required to use `AssetCreativeTemplateVariableValue` when creating a `TemplateCreative` and the creative template.\n"],null,["# type AssetCreativeTemplateVariable (v202408)\n\n**Service** \n**CreativeTemplateService** **Inheritance** \n[CreativeTemplateVariable](/ad-manager/api/reference/v202408/CreativeTemplateService.CreativeTemplateVariable) \n▼\n**AssetCreativeTemplateVariable** [LongCreativeTemplateVariable](/ad-manager/api/reference/v202408/CreativeTemplateService.LongCreativeTemplateVariable) [StringCreativeTemplateVariable](/ad-manager/api/reference/v202408/CreativeTemplateService.StringCreativeTemplateVariable) [UrlCreativeTemplateVariable](/ad-manager/api/reference/v202408/CreativeTemplateService.UrlCreativeTemplateVariable)\n\n\nRepresents a file asset variable defined in a creative template.\n\nUse [AssetCreativeTemplateVariableValue](/ad-manager/api/reference/v202408/CreativeService.AssetCreativeTemplateVariableValue) to\nspecify the value for this variable when creating\n[TemplateCreative](/ad-manager/api/reference/v202408/CreativeService.TemplateCreative) from the [TemplateCreative](/ad-manager/api/reference/v202408/CreativeService.TemplateCreative).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`CreativeTemplateVariable` (inherited)** ||\n| ### `label` | ` `xsd:`string` Label that is displayed to users when creating [TemplateCreative](/ad-manager/api/reference/v202408/CreativeService.TemplateCreative) from the [CreativeTemplate](/ad-manager/api/reference/v202408/CreativeTemplateService.CreativeTemplate). This attribute is required and has a maximum length of 127 characters. |\n| ### `uniqueName` | ` `xsd:`string` Unique name used to identify the variable. This attribute is read-only and is assigned by Google, by deriving from label, when a creative template variable is created. |\n| ### `description` | ` `xsd:`string` A descriptive help text that is displayed to users along with the label. This attribute is required and has a maximum length of 255 characters. |\n| ### `isRequired` | ` `xsd:`boolean` `true` if this variable is required to be filled in by users when creating [TemplateCreative](/ad-manager/api/reference/v202408/CreativeService.TemplateCreative) from the [CreativeTemplate](/ad-manager/api/reference/v202408/CreativeTemplateService.CreativeTemplate). |\n| **`AssetCreativeTemplateVariable`** ||\n| ### `mimeTypes` | ` `[AssetCreativeTemplateVariab...](/ad-manager/api/reference/v202408/CreativeTemplateService.AssetCreativeTemplateVariable.MimeType \"AssetCreativeTemplateVariable.MimeType\")`[]` A set of supported mime types. This set can be empty or null if there's no constraint, meaning files of any mime types are allowed. *** ** * ** *** **Enumerations** `JPG` : `PNG` : `GIF` : `SWF` : \u003cbr /\u003e |"]]