type LabelError (v202411)

  • The CreativeWrapperService.LabelError object describes errors specific to labels in Google Ad Manager.

  • These errors often relate to invalid label prefixes, unsupported characters in label names, or general issues with label properties.

  • LabelError inherits from ApiError and provides additional context through the reason field which is represented by the LabelError.Reason enum.

  • The reason field helps identify specific causes like invalid prefixes ("INVALID_PREFIX") or issues with label names ("NAME_INVALID_CHARS").

  • Further details on each error type can be found in the linked documentation for LabelError.Reason and other related objects.

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

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.

LabelError

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.