# Google Ads Ad Manager V1 Client - Class CustomFieldValue (0.1.1)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.1.1 (latest)](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.CustomFieldValue)
- [0.1.0](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/0.1.0/V1.CustomFieldValue)
Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CustomFieldValue.

A value for a CustomField on a resource.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_field` | `string` Required. The custom field for which this is a value. Format: "networks/{network_code}/customFields/{custom_field_id}" |
| `↳ value` | `https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.CustomFieldValue.Value` Required. A typed value representation of the value. |

### getCustomField

Required. The custom field for which this is a value.

Format: "networks/{network_code}/customFields/{custom_field_id}"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCustomField

Required. The custom field for which this is a value.

Format: "networks/{network_code}/customFields/{custom_field_id}"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValue

Required. A typed value representation of the value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.CustomFieldValue.Value|null` |   |

### hasValue

### clearValue

### setValue

Required. A typed value representation of the value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.CustomFieldValue.Value` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |