AI-generated Key Takeaways
-
CustomFieldValueError.Reason
outlines the potential errors encountered when interacting with custom fields in Google Ad Manager. -
These errors can arise due to issues like referencing a non-existent custom field, using an inactive field, or mismatching entity types.
-
The enumeration provides specific reasons for the error, including
CUSTOM_FIELD_NOT_FOUND
,CUSTOM_FIELD_INACTIVE
,CUSTOM_FIELD_OPTION_NOT_FOUND
,INVALID_ENTITY_TYPE
, andUNKNOWN
. -
Developers can use these reasons to diagnose and resolve custom field-related errors in their Ad Manager integrations.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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. |