Google Ads Ad Manager V1 Client - Class Value (0.1.0)

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

Represent custom field value type.

Next Id: 5

Generated from protobuf message google.ads.admanager.v1.CustomFieldValue.Value

Namespace

Google \ Ads \ AdManager \ V1 \ CustomFieldValue

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ dropdown_value int|string

The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.

↳ string_value string

The value, if the CustomFieldDataType is STRING.

↳ number_value float

The value, if the CustomFieldDataType is NUMBER.

↳ toggle_value bool

The value, if the CustomFieldDataType is TOGGLE.

getDropdownValue

The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.

Returns
Type Description
int|string

hasDropdownValue

setDropdownValue

The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.

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

getStringValue

The value, if the CustomFieldDataType is STRING.

Returns
Type Description
string

hasStringValue

setStringValue

The value, if the CustomFieldDataType is STRING.

Parameter
Name Description
var string
Returns
Type Description
$this

getNumberValue

The value, if the CustomFieldDataType is NUMBER.

Returns
Type Description
float

hasNumberValue

setNumberValue

The value, if the CustomFieldDataType is NUMBER.

Parameter
Name Description
var float
Returns
Type Description
$this

getToggleValue

The value, if the CustomFieldDataType is TOGGLE.

Returns
Type Description
bool

hasToggleValue

setToggleValue

The value, if the CustomFieldDataType is TOGGLE.

Parameter
Name Description
var bool
Returns
Type Description
$this

getValue

Returns
Type Description
string