enum CustomFieldError.Reason (v202411)

  • CustomFieldError outlines the reasons for errors related to custom fields in Google Ad Manager.

  • It includes reasons such as attempting to create an option for a custom field that doesn't support dropdowns.

  • CustomFieldError uses a namespace specific to the Google Ad Manager API.

  • The 'UNKNOWN' reason is used when the actual error isn't exposed by the API version being used.

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.