0.17.0 (latest) 0.16.0 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CustomFieldOption.

An option for a drop-down `CustomField`.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ custom_field_option_id` | `int|string` Optional. Non-empty default. `CustomFieldOption` ID. |
| `↳ display_name` | `string` Required. The display name of the `CustomFieldOption`. This value has a maximum length of 127 characters. |

### getCustomFieldOptionId

Optional. Non-empty default. `CustomFieldOption` ID.

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

### setCustomFieldOptionId

Optional. Non-empty default. `CustomFieldOption` ID.

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

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

### getDisplayName

Required. The display name of the `CustomFieldOption`.

This value has a maximum length of 127 characters.

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

### setDisplayName

Required. The display name of the `CustomFieldOption`.

This value has a maximum length of 127 characters.

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

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