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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Identifier. The resource name of the |
↳ custom_field_id |
int|string
Output only. Unique ID of the CustomField. This attribute is assigned by Google. |
↳ 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 |
↳ entity_type |
int
Required. The type of entity the |
↳ data_type |
int
Required. The data type of the |
↳ visibility |
int
Required. The visibility of the |
↳ options |
array<CustomFieldOption>
Optional. The drop-down options for the |
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. Unique ID of the CustomField. This attribute is assigned by Google.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasCustomFieldId
clearCustomFieldId
setCustomFieldId
Output only. Unique ID of the CustomField. This attribute is assigned by Google.
| 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\Internal\RepeatedField |
|
setOptions
Optional. The drop-down options for the CustomField.
Only applicable for CustomField with the drop-down data type.
| Parameter | |
|---|---|
| Name | Description |
var |
array<CustomFieldOption>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|