enum CustomFieldValueError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
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.
|
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."],[],["The core content defines `CustomFieldValueError.Reason`, which details errors related to custom fields. It lists potential error reasons: `CUSTOM_FIELD_NOT_FOUND`, indicating a missing custom field; `CUSTOM_FIELD_INACTIVE`, for inactive fields; `CUSTOM_FIELD_OPTION_NOT_FOUND`, for missing field options; `INVALID_ENTITY_TYPE`, for incorrect entity associations; and `UNKNOWN`, for values not exposed by the API. These errors occur within several services like `CompanyService`, `CreativeService`, `ForecastService`, etc.\n"],null,["# enum CustomFieldValueError.Reason (v202502)\n\n**Service** \n[CompanyService](/ad-manager/api/reference/v202502/CompanyService.CustomFieldValueError.Reason) [CreativeService](/ad-manager/api/reference/v202502/CreativeService.CustomFieldValueError.Reason) [CreativeSetService](/ad-manager/api/reference/v202502/CreativeSetService.CustomFieldValueError.Reason) **ForecastService** [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.CustomFieldValueError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.CustomFieldValueError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.CustomFieldValueError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.CustomFieldValueError.Reason) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.CustomFieldValueError.Reason) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.CustomFieldValueError.Reason) [UserService](/ad-manager/api/reference/v202502/UserService.CustomFieldValueError.Reason) **Dependencies** \n[CustomFieldValueError](/ad-manager/api/reference/v202502/ForecastService.CustomFieldValueError) \n▼\n**CustomFieldValueError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|---------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CUSTOM_FIELD_NOT_FOUND` | An attempt was made to modify or create a [CustomFieldValue](/ad-manager/api/reference/v202502/ForecastService.CustomFieldValue) for a [CustomField](/ad-manager/api/reference/v202502/CustomFieldService.CustomField) that does not exist. |\n| `CUSTOM_FIELD_INACTIVE` | An attempt was made to create a new value for a custom field that is inactive. |\n| `CUSTOM_FIELD_OPTION_NOT_FOUND` | An attempt was made to modify or create a [CustomFieldValue](/ad-manager/api/reference/v202502/ForecastService.CustomFieldValue) corresponding to a [CustomFieldOption](/ad-manager/api/reference/v202502/CustomFieldService.CustomFieldOption) that could not be found. |\n| `INVALID_ENTITY_TYPE` | An attempt was made to modify or create a [CustomFieldValue](/ad-manager/api/reference/v202502/ForecastService.CustomFieldValue) with an association to an entity of the wrong type for its field. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]