enum CustomFieldDataType (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Service
CustomFieldService
The data types allowed for CustomField objects.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Enumeration |
Description |
STRING
|
A string field. The max length is 255 characters.
|
NUMBER
|
A number field.
|
TOGGLE
|
A boolean field. Values may be "true", "false",
or empty.
|
DROP_DOWN
|
A drop-down field. Values may only be the ids
of CustomFieldOption objects.
|
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eCustomFieldDataType\u003c/code\u003e defines the allowed data types for CustomFields in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThese data types include string, number, toggle, drop-down, and an unknown type for values not exposed in the current API version.\u003c/p\u003e\n"],["\u003cp\u003eDrop-down fields utilize IDs from \u003ccode\u003eCustomFieldOption\u003c/code\u003e objects for their values.\u003c/p\u003e\n"],["\u003cp\u003eString fields have a maximum length of 255 characters, while toggle fields accept "true", "false", or empty values.\u003c/p\u003e\n"]]],["The `CustomFieldService` uses `CustomField` objects, which have various data types. The allowed data types, defined by `CustomFieldDataType`, include `STRING` (max 255 characters), `NUMBER`, `TOGGLE` (boolean), and `DROP_DOWN` (referencing `CustomFieldOption` IDs). `UNKNOWN` is a placeholder for unexposed API values. This information defines the valid inputs for custom fields within the service.\n"],null,["# enum CustomFieldDataType (v202408)\n\n**Service** \n**CustomFieldService** **Dependencies** \n[CustomField](/ad-manager/api/reference/v202408/CustomFieldService.CustomField) \n▼\n**CustomFieldDataType**\n\nThe data types allowed for [CustomField](/ad-manager/api/reference/v202408/CustomFieldService.CustomField) objects.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Enumeration | Description |\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `STRING` | A string field. The max length is 255 characters. |\n| `NUMBER` | A number field. |\n| `TOGGLE` | A boolean field. Values may be \"true\", \"false\", or empty. |\n| `DROP_DOWN` | A drop-down field. Values may only be the ids of [CustomFieldOption](/ad-manager/api/reference/v202408/CustomFieldService.CustomFieldOption) objects. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]