enum CustomFieldError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Service
CustomFieldService
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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\u003eCustomFieldError outlines the reasons for errors related to custom fields in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eIt includes reasons such as attempting to create an option for a custom field that doesn't support dropdowns.\u003c/p\u003e\n"],["\u003cp\u003eCustomFieldError uses a namespace specific to the Google Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003eThe 'UNKNOWN' reason is used when the actual error isn't exposed by the API version being used.\u003c/p\u003e\n"]]],["The core content details error reasons within the `CustomFieldService` API, specifically under `CustomFieldError.Reason`. It defines two error types: `INVALID_CUSTOM_FIELD_FOR_OPTION`, which occurs when creating a `CustomFieldOption` for a `CustomField` without the `DROPDOWN` data type, and `UNKNOWN`, which indicates a value not exposed by the current API version. These errors are associated with the namespace `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# enum CustomFieldError.Reason (v202411)\n\n**Service** \n**CustomFieldService** **Dependencies** \n[CustomFieldError](/ad-manager/api/reference/v202411/CustomFieldService.CustomFieldError) \n▼\n**CustomFieldError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|-----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `INVALID_CUSTOM_FIELD_FOR_OPTION` | An attempt was made to create a [CustomFieldOption](/ad-manager/api/reference/v202411/CustomFieldService.CustomFieldOption) for a [CustomField](/ad-manager/api/reference/v202411/CustomFieldService.CustomField) that does not have [CustomFieldDataType.DROPDOWN](/ad-manager/api/reference/v202411/CustomFieldService.CustomFieldDataType#DROPDOWN). |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]