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 StringCreativeTemplateVariable.

Represents a string variable defined in a creative template.

Use StringCreativeTemplateVariableValue to specify the value
for this variable when creating TemplateCreative from a
[CreativeTemplate](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CreativeTemplate.md.txt).

Generated from protobuf message `google.ads.admanager.v1.CreativeTemplateVariable.StringCreativeTemplateVariable`

## Namespace

Google \\ Ads \\ AdManager \\ V1 \\ CreativeTemplateVariable

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ default_value` | `string` Optional. Default value to be filled in when creating creatives from the creative template. |
| `↳ sample_value` | `string` Optional. Sample value that is used when previewing the template in the UI. |

### getDefaultValue

Optional. Default value to be filled in when creating creatives from the
creative template.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasDefaultValue

### clearDefaultValue

### setDefaultValue

Optional. Default value to be filled in when creating creatives from the
creative template.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSampleValue

Optional. Sample value that is used when previewing the template in the
UI.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasSampleValue

### clearSampleValue

### setSampleValue

Optional. Sample value that is used when previewing the template in the
UI.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |