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 outlines reasons for `CustomFieldValueError` across multiple services, including `CompanyService`, `CreativeService`, and `LineItemTemplateService`. These errors arise when interacting with custom fields, such as when a custom field or its option is not found (`CUSTOM_FIELD_NOT_FOUND`, `CUSTOM_FIELD_OPTION_NOT_FOUND`), a field is inactive (`CUSTOM_FIELD_INACTIVE`), or the entity type is incorrect (`INVALID_ENTITY_TYPE`). `UNKNOWN` is returned when the error value is not in the API.\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](/ad-manager/api/reference/v202502/ForecastService.CustomFieldValueError.Reason) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.CustomFieldValueError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.CustomFieldValueError.Reason) **LineItemTemplateService** [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/LineItemTemplateService.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/CreativeService.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/CreativeService.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/CreativeService.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. |"]]