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 value is readonly and 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_id}
Returns | |
---|---|
Type | Description |
string |
setName
Identifier. The resource name of the CustomField
.
Format: networks/{network_code}/customFields/{custom_field_id}
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCustomFieldId
Output only. Unique ID of the CustomField. This value is readonly and is assigned by Google.
Returns | |
---|---|
Type | Description |
int|string |
setCustomFieldId
Output only. Unique ID of the CustomField. This value is readonly and 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 |
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 |
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 |
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 |
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 |
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 |
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 |