Google Ads Ad Manager V1 Client - Class StringCreativeTemplateVariable (0.5.0)

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.

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