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 the `CustomFieldValueError.Reason` within the context of various services like Company, Creative, and Order services. It details potential errors when interacting with custom fields. Key actions resulting in errors include modifying or creating `CustomFieldValue` for a non-existent or inactive `CustomField` or `CustomFieldOption`, or with the incorrect entity type. The `UNKNOWN` reason covers values not available in the requested API version.\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) **LineItemCreativeAssociation...** [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/LineItemCreativeAssociationService.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. |"]]