0.16.0 (latest) 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 CustomField.

An additional, user-created field on an entity.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the `CustomField`. Format: `networks/{network_code}/customFields/{custom_field}` |
| `↳ custom_field_id` | `int|string` Output only. Deprecated: Unique ID of the CustomField. |
| `↳ display_name` | `string` Required. Name of the CustomField. The max length is 127 characters. |
| `↳ description` | `string` Optional. A description of the custom field. The maximum length is 511 characters. |
| `↳ status` | `int` Output only. The status of the `CustomField`. |
| `↳ entity_type` | `int` Required. The type of entity the `CustomField` can be applied to. |
| `↳ data_type` | `int` Required. The data type of the `CustomField`. |
| `↳ visibility` | `int` Required. The visibility of the `CustomField`. |
| `↳ options` | `array<https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CustomFieldOption>` Optional. The drop-down options for the `CustomField`. Only applicable for `CustomField` with the drop-down data type. |

### getName

Identifier. The resource name of the `CustomField`.

Format: `networks/{network_code}/customFields/{custom_field}`

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

### setName

Identifier. The resource name of the `CustomField`.

Format: `networks/{network_code}/customFields/{custom_field}`

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

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

### getCustomFieldId

Output only. Deprecated: Unique ID of the CustomField.

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

### hasCustomFieldId

### clearCustomFieldId

### setCustomFieldId

Output only. Deprecated: Unique ID of the CustomField.

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

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

### getDisplayName

Required. Name of the CustomField. The max length is 127 characters.

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

### hasDisplayName

### clearDisplayName

### setDisplayName

Required. Name of the CustomField. The max length is 127 characters.

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

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

### getDescription

Optional. A description of the custom field. The maximum length is 511
characters.

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

### hasDescription

### clearDescription

### setDescription

Optional. A description of the custom field. The maximum length is 511
characters.

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

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

### getStatus

Output only. The status of the `CustomField`.

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

### hasStatus

### clearStatus

### setStatus

Output only. The status of the `CustomField`.

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

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

### getEntityType

Required. The type of entity the `CustomField` can be applied to.

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

### hasEntityType

### clearEntityType

### setEntityType

Required. The type of entity the `CustomField` can be applied to.

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

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

### getDataType

Required. The data type of the `CustomField`.

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

### hasDataType

### clearDataType

### setDataType

Required. The data type of the `CustomField`.

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

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

### getVisibility

Required. The visibility of the `CustomField`.

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

### hasVisibility

### clearVisibility

### setVisibility

Required. The visibility of the `CustomField`.

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

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

### getOptions

Optional. The drop-down options for the `CustomField`.

Only applicable for `CustomField` with the drop-down data type.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CustomFieldOption>` |   |

### setOptions

Optional. The drop-down options for the `CustomField`.

Only applicable for `CustomField` with the drop-down data type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.CustomFieldOption>` |

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