Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CreativeTemplateVariable.
Represents a variable defined in a creative template.
Generated from protobuf message google.ads.admanager.v1.CreativeTemplateVariable
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ asset_variable
CreativeTemplateVariable\AssetCreativeTemplateVariable
Optional. Represents a file asset variable defined in a creative template.
↳ list_string_variable
CreativeTemplateVariable\ListStringCreativeTemplateVariable
Optional. Represents a list variable defined in a creative template.
↳ long_variable
CreativeTemplateVariable\LongCreativeTemplateVariable
Optional. Represents a long variable defined in a creative template.
↳ string_variable
CreativeTemplateVariable\StringCreativeTemplateVariable
Optional. Represents a string variable defined in a creative template.
↳ url_variable
CreativeTemplateVariable\UrlCreativeTemplateVariable
Optional. Represents a url variable defined in a creative template.
↳ label
string
Required. Label that is displayed to users when creating from the creative template. This has a maximum length of 127 characters.
↳ unique_display_name
string
Output only. Unique name used to identify the variable. This attribute is assigned by Google when a creative template variable is created.
↳ description
string
Required. A descriptive help text that is displayed to users along with the label. This attribute has a maximum length of 255 characters.
↳ required
bool
Optional. True
if this variable is required to be filled in by users when creating a creative from the creative template.
getAssetVariable
Optional. Represents a file asset variable defined in a creative template.
hasAssetVariable
setAssetVariable
Optional. Represents a file asset variable defined in a creative template.
$this
getListStringVariable
Optional. Represents a list variable defined in a creative template.
hasListStringVariable
setListStringVariable
Optional. Represents a list variable defined in a creative template.
$this
getLongVariable
Optional. Represents a long variable defined in a creative template.
hasLongVariable
setLongVariable
Optional. Represents a long variable defined in a creative template.
$this
getStringVariable
Optional. Represents a string variable defined in a creative template.
hasStringVariable
setStringVariable
Optional. Represents a string variable defined in a creative template.
$this
getUrlVariable
Optional. Represents a url variable defined in a creative template.
hasUrlVariable
setUrlVariable
Optional. Represents a url variable defined in a creative template.
$this
getLabel
Required. Label that is displayed to users when creating from the creative template. This has a maximum length of 127 characters.
string
hasLabel
clearLabel
setLabel
Required. Label that is displayed to users when creating from the creative template. This has a maximum length of 127 characters.
var
string
$this
getUniqueDisplayName
Output only. Unique name used to identify the variable. This attribute is assigned by Google when a creative template variable is created.
string
hasUniqueDisplayName
clearUniqueDisplayName
setUniqueDisplayName
Output only. Unique name used to identify the variable. This attribute is assigned by Google when a creative template variable is created.
var
string
$this
getDescription
Required. A descriptive help text that is displayed to users along with the label. This attribute has a maximum length of 255 characters.
string
hasDescription
clearDescription
setDescription
Required. A descriptive help text that is displayed to users along with the label. This attribute has a maximum length of 255 characters.
var
string
$this
getRequired
Optional. True
if this variable is required to be filled in by users when
creating a creative from the creative template.
bool
hasRequired
clearRequired
setRequired
Optional. True
if this variable is required to be filled in by users when
creating a creative from the creative template.
var
bool
$this
getSubType
string

