Google Ads Data Manager V1 Client - Class CustomVariable (0.1.0)

Reference documentation and code samples for the Google Ads Data Manager V1 Client class CustomVariable.

Custom variable for ads conversions.

Generated from protobuf message google.ads.datamanager.v1.CustomVariable

Namespace

Google \ Ads \ DataManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ variable string

Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.

↳ value string

Optional. The value to store for the custom variable.

↳ destination_references array

Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.

getVariable

Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.

Returns
Type Description
string

setVariable

Optional. The name of the custom variable to set. If the variable is not found for the given destination, it will be ignored.

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Optional. The value to store for the custom variable.

Returns
Type Description
string

setValue

Optional. The value to store for the custom variable.

Parameter
Name Description
var string
Returns
Type Description
$this

getDestinationReferences

Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDestinationReferences

Optional. Reference string used to determine which of the Event.destination_references the custom variable should be sent to. If empty, the Event.destination_references will be used.

Parameter
Name Description
var string[]
Returns
Type Description
$this