type CustomFieldValueError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Errors specific to editing custom field values
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
ApiError (inherited)
|
fieldPath
|
xsd:string
The OGNL field path to identify cause of error.
|
fieldPathElements
|
FieldPathElement[]
A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
|
trigger
|
xsd:string
The data that caused the error.
|
errorString
|
xsd:string
A simple string representation of the error and reason.
|
CustomFieldValueError
|
reason
|
CustomFieldValueError.Reason
The error reason represented by an enum.
Enumerations
-
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."],[[["\u003cp\u003e\u003ccode\u003eCustomFieldValueError\u003c/code\u003e occurs when there are issues with custom field values during editing.\u003c/p\u003e\n"],["\u003cp\u003eThis error can arise due to various reasons, including a missing custom field, an inactive custom field, or an invalid entity type association.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field provides specific information about the cause of the error, helping in troubleshooting.\u003c/p\u003e\n"],["\u003cp\u003eThe error details can be further understood using inherited fields like \u003ccode\u003efieldPath\u003c/code\u003e, \u003ccode\u003etrigger\u003c/code\u003e, and \u003ccode\u003eerrorString\u003c/code\u003e from \u003ccode\u003eApiError\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis error is relevant to several services in Google Ad Manager, including CreativeService, ProposalService, and LineItemService, indicating its applicability across different areas of the platform.\u003c/p\u003e\n"]]],["The content details the `CustomFieldValueError`, which occurs when editing custom field values. It outlines several services: `CompanyService`, `CreativeService`, `ForecastService`, and others. The `ApiError` class is inherited and includes properties like `fieldPath`, `trigger`, and `errorString`. `CustomFieldValueError` has a `reason` field that can be one of five enums: `CUSTOM_FIELD_NOT_FOUND`, `CUSTOM_FIELD_INACTIVE`, `CUSTOM_FIELD_OPTION_NOT_FOUND`, `INVALID_ENTITY_TYPE`, and `UNKNOWN`. These reasons describe specific errors when interacting with custom field data.\n"],null,[]]