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 to provide details about the error.
-
The LabelError itself has a
reasonfield, which is an enum indicating specific issues like an invalid prefix or unsupported characters in the label name. -
The namespace for this service is
https://www.google.com/apis/ads/publisher/v202411.
Errors specific to labels.
- 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
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.

