AI-generated Key Takeaways
-
LabelError represents errors specific to labels within the LabelService.
-
It inherits from ApiError and includes fields such as fieldPath, trigger, and errorString.
-
LabelError also has a specific field, 'reason', which is an enum indicating the cause of the error, such as invalid prefix or invalid characters in the label name.
-
The namespace for these errors is
https://www.google.com/apis/ads/publisher/v202508.
Errors specific to labels.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202508
Field
ApiError
(inherited) fieldPath
xsd:
string
The OGNL field path to identify cause of error.
fieldPathElements
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.
LabelError
reason
The error reason represented by an enum.
Enumerations
-
INVALID_PREFIX - A user created label cannot begin with the Google internal system label prefix.
-
NAME_INVALID_CHARS - Label.name contains unsupported or reserved characters.
-
UNKNOWN - The value returned if the actual value is not exposed by the requested API version.

