enum CustomFieldDataType (v202411)
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/v202411
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\u003eThe CustomFieldDataType enumeration defines the allowed data types for CustomField objects in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThese data types include STRING, NUMBER, TOGGLE, DROP_DOWN, and UNKNOWN, each with specific characteristics and limitations.\u003c/p\u003e\n"],["\u003cp\u003eA CustomField with the data type DROP_DOWN uses CustomFieldOption object IDs for its values.\u003c/p\u003e\n"],["\u003cp\u003eThe UNKNOWN data type is returned when the actual value is not available in the requested API version.\u003c/p\u003e\n"]]],["The core content details the `CustomFieldDataType` enumeration within the `CustomFieldService`. This enumeration defines the valid data types for `CustomField` objects, including: `STRING` (max 255 characters), `NUMBER`, `TOGGLE` (boolean), and `DROP_DOWN` (referencing `CustomFieldOption` IDs). An `UNKNOWN` type is used when the API version does not expose the actual value. These data types dictate the format and allowed values within custom fields.\n"],null,["# enum CustomFieldDataType (v202411)\n\n**Service** \n**CustomFieldService** **Dependencies** \n[CustomField](/ad-manager/api/reference/v202411/CustomFieldService.CustomField) \n▼\n**CustomFieldDataType**\n\nThe data types allowed for [CustomField](/ad-manager/api/reference/v202411/CustomFieldService.CustomField) objects.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\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/v202411/CustomFieldService.CustomFieldOption) objects. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]