Reference documentation and code samples for the Google Ads Ad Manager V1 Client class VariableChoice.
Stores variable choices selectable by users.
Generated from protobuf message google.ads.admanager.v1.CreativeTemplateVariable.ListStringCreativeTemplateVariable.VariableChoice
Namespace
Google \ Ads \ AdManager \ V1 \ CreativeTemplateVariable \ ListStringCreativeTemplateVariableMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ label |
string
Required. A label is displayed to users when creating a TemplateCreative. This attribute is intended to be more descriptive than value. This attribute has a maximum length of 255 characters. |
↳ value |
string
Required. When creating a TemplateCreative, the value in StringCreativeTemplateVariableValue should match this value, if you intend to select this value. This attribute has a maximum length of 255 characters. |
getLabel
Required. A label is displayed to users when creating a TemplateCreative. This attribute is intended to be more descriptive than value. This attribute has a maximum length of 255 characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasLabel
clearLabel
setLabel
Required. A label is displayed to users when creating a TemplateCreative. This attribute is intended to be more descriptive than value. This attribute has a maximum length of 255 characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValue
Required. When creating a TemplateCreative, the value in StringCreativeTemplateVariableValue should match this value, if you intend to select this value. This attribute has a maximum length of 255 characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasValue
clearValue
setValue
Required. When creating a TemplateCreative, the value in StringCreativeTemplateVariableValue should match this value, if you intend to select this value. This attribute has a maximum length of 255 characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|