Page Summary
-
The LabelService.LabelError is specific to errors related to labels within the CreativeWrapperService.
-
LabelError inherits from ApiError and includes fields like fieldPath, fieldPathElements, trigger, and errorString.
-
LabelError has a specific
reasonfield that provides the cause of the error as an enumeration. -
Possible LabelError reasons include INVALID_PREFIX, NAME_INVALID_CHARS, and UNKNOWN.
Errors specific to labels.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202505
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.

