type LongCreativeTemplateVariable (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Service
CreativeTemplateService
Represents a long variable defined in a creative template.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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.
|
LongCreativeTemplateVariable
|
defaultValue
|
xsd:long
Default value to be filled in when creating creatives from the creative
template.
|
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\u003e\u003ccode\u003eLongCreativeTemplateVariable\u003c/code\u003e represents a long integer variable within a creative template, used for dynamic content insertion in creatives.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits properties like \u003ccode\u003elabel\u003c/code\u003e, \u003ccode\u003euniqueName\u003c/code\u003e, \u003ccode\u003edescription\u003c/code\u003e, and \u003ccode\u003eisRequired\u003c/code\u003e from the \u003ccode\u003eCreativeTemplateVariable\u003c/code\u003e parent class, providing descriptive information and usage guidelines.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define a \u003ccode\u003edefaultValue\u003c/code\u003e for the variable, automatically populated when creating new creatives from the template.\u003c/p\u003e\n"],["\u003cp\u003eThese variables are crucial for creating flexible and reusable creative templates in Google Ad Manager, allowing for customization without manual adjustments.\u003c/p\u003e\n"]]],["`LongCreativeTemplateVariable` is a part of the `CreativeTemplateService`, inheriting from `CreativeTemplateVariable`. Key attributes include `label` (user-facing display name, max 127 characters), `uniqueName` (system-assigned identifier), `description` (help text, max 255 characters), `isRequired` (boolean for user input requirement), and `defaultValue` (preset value). It represents a long variable within a creative template. It has a `namespace` at `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# type LongCreativeTemplateVariable (v202411)\n\n**Service** \n**CreativeTemplateService** **Inheritance** \n[CreativeTemplateVariable](/ad-manager/api/reference/v202411/CreativeTemplateService.CreativeTemplateVariable) \n▼\n[AssetCreativeTemplateVariable](/ad-manager/api/reference/v202411/CreativeTemplateService.AssetCreativeTemplateVariable) **LongCreativeTemplateVariable** [StringCreativeTemplateVariable](/ad-manager/api/reference/v202411/CreativeTemplateService.StringCreativeTemplateVariable) [UrlCreativeTemplateVariable](/ad-manager/api/reference/v202411/CreativeTemplateService.UrlCreativeTemplateVariable)\n\nRepresents a long variable defined in a creative template.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`CreativeTemplateVariable` (inherited)** ||\n| ### `label` | ` `xsd:`string` Label that is displayed to users when creating [TemplateCreative](/ad-manager/api/reference/v202411/CreativeService.TemplateCreative) from the [CreativeTemplate](/ad-manager/api/reference/v202411/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/v202411/CreativeService.TemplateCreative) from the [CreativeTemplate](/ad-manager/api/reference/v202411/CreativeTemplateService.CreativeTemplate). |\n| **`LongCreativeTemplateVariable`** ||\n| ### `defaultValue` | ` `xsd:`long` Default value to be filled in when creating creatives from the creative template. |"]]