type ListStringCreativeTemplateVariable.VariableChoice (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Service
CreativeTemplateService
Stores variable choices that users can select from
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
label
|
xsd:string
Label that users can select from. This is displayed to users when creating a
TemplateCreative. This attribute is intended to be more descriptive than
value. This attribute is required and has a maximum length of 255 characters.
|
value
|
xsd:string
Value that users can select from. When creating a TemplateCreative, the value in
StringCreativeTemplateVariableValue should match this value, if you intend to
select this value. This attribute is required and has a maximum length of 255
characters.
|
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\u003eListStringCreativeTemplateVariable stores choices for users to select when creating TemplateCreatives.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a user-friendly label and a corresponding value for programmatic selection.\u003c/p\u003e\n"],["\u003cp\u003eBoth label and value are required and have a maximum length of 255 characters.\u003c/p\u003e\n"],["\u003cp\u003eThe label is for display and should be more descriptive, while the value is used for internal matching when creating TemplateCreatives.\u003c/p\u003e\n"]]],["The `ListStringCreativeTemplateVariable` allows users to choose from predefined options. It contains two key fields: `label` and `value`. The `label`, a user-facing string up to 255 characters, is displayed during TemplateCreative creation. The `value`, also a string with a 255-character limit, is the internal representation and must match the `StringCreativeTemplateVariableValue` when selected in a `TemplateCreative`. Both fields are mandatory for each variable choice.\n"],null,["# type ListStringCreativeTemplateVariable.VariableChoice (v202411)\n\n**Service** \n**CreativeTemplateService** **Dependencies** \n[ListStringCreativeTemplateV...](/ad-manager/api/reference/v202411/CreativeTemplateService.ListStringCreativeTemplateVariable \"ListStringCreativeTemplateVariable\") \n▼\n**ListStringCreativeTemplateV...**\n\nStores variable choices that users can select from\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `label` | ` `xsd:`string` Label that users can select from. This is displayed to users when creating a [TemplateCreative](/ad-manager/api/reference/v202411/CreativeService.TemplateCreative). This attribute is intended to be more descriptive than [value](#value). This attribute is required and has a maximum length of 255 characters. |\n| ### `value` | ` `xsd:`string` Value that users can select from. When creating a [TemplateCreative](/ad-manager/api/reference/v202411/CreativeService.TemplateCreative), the value in [StringCreativeTemplateVariableValue](/ad-manager/api/reference/v202411/CreativeService.StringCreativeTemplateVariableValue) should match this value, if you intend to select this value. This attribute is required and has a maximum length of 255 characters. |"]]