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

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class LongCreativeTemplateVariable.

Represents a long variable defined in a creative template.

Use LongCreativeTemplateVariableValue to specify the value for this variable when creating TemplateCreative from a CreativeTemplate.

Generated from protobuf message google.ads.admanager.v1.CreativeTemplateVariable.LongCreativeTemplateVariable

Namespace

Google \ Ads \ AdManager \ V1 \ CreativeTemplateVariable

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ default_value int|string

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

↳ sample_value int|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
int|string

hasDefaultValue

clearDefaultValue

setDefaultValue

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

Parameter
Name Description
var int|string
Returns
Type Description
$this

getSampleValue

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

Returns
Type Description
int|string

hasSampleValue

clearSampleValue

setSampleValue

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

Parameter
Name Description
var int|string
Returns
Type Description
$this