enum CustomFieldError.Reason (v202411)

  • CustomFieldError.Reason lists potential reasons for errors related to CustomFieldService.

  • The INVALID_CUSTOM_FIELD_FOR_OPTION reason indicates attempting to create an option for a CustomField that isn't a dropdown type.

  • The UNKNOWN reason is returned when the actual error value is not available in the API version requested.

The reasons for the target error.


Namespace
https://www.google.com/apis/ads/publisher/v202411
Enumeration Description
INVALID_CUSTOM_FIELD_FOR_OPTION An attempt was made to create a CustomFieldOption for a CustomField that does not have CustomFieldDataType.DROPDOWN.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.