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 \ CustomFieldValueMethods
__construct
Constructor.
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.
int|string
hasDropdownValue
setDropdownValue
The custom_field_option_id, if the CustomFieldDataType is DROPDOWN.
var
int|string
$this
getStringValue
The value, if the CustomFieldDataType is STRING.
string
hasStringValue
setStringValue
The value, if the CustomFieldDataType is STRING.
var
string
$this
getNumberValue
The value, if the CustomFieldDataType is NUMBER.
float
hasNumberValue
setNumberValue
The value, if the CustomFieldDataType is NUMBER.
var
float
$this
getToggleValue
The value, if the CustomFieldDataType is TOGGLE.
bool
hasToggleValue
setToggleValue
The value, if the CustomFieldDataType is TOGGLE.
var
bool
$this
getValue
string