0.17.0 (latest) 0.16.0 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 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 \\ ListStringCreativeTemplateVariable

## Methods

### __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` |   |