Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Value.
Represent custom field value type.
Generated from protobuf message google.ads.admanager.v1.CustomFieldValue.Value
Namespace
Google \ Ads \ AdManager \ V1 \ CustomFieldValueMethods
__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 |
|