enum CustomFieldValueError.Reason (v202508)

  • CustomFieldValueError.Reason is an enumeration providing reasons for errors related to custom fields.

  • Reasons for errors include attempts to use custom fields or options that do not exist, or creating values for inactive custom fields.

  • An error occurs if an attempt is made to associate a CustomFieldValue with an entity of an incorrect type for its field.

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

The reasons for the target error.


Namespace
https://www.google.com/apis/ads/publisher/v202508
Enumeration Description
CUSTOM_FIELD_NOT_FOUND An attempt was made to modify or create a CustomFieldValue for a CustomField that does not exist.
CUSTOM_FIELD_INACTIVE An attempt was made to create a new value for a custom field that is inactive.
CUSTOM_FIELD_OPTION_NOT_FOUND An attempt was made to modify or create a CustomFieldValue corresponding to a CustomFieldOption that could not be found.
INVALID_ENTITY_TYPE An attempt was made to modify or create a CustomFieldValue with an association to an entity of the wrong type for its field.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.