type LabelEntityAssociationError (v202508)

  • The LabelEntityAssociationError is specific to errors encountered when creating label entity associations.

  • This error object includes inherited fields from ApiError such as fieldPath and trigger.

  • The LabelEntityAssociationError has a 'reason' field which is an enum indicating the specific cause of the error, including duplicate or invalid associations and issues with label negation.

Errors specific to creating label entity associations.


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

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.

LabelEntityAssociationError

reason

LabelEntityAssociationError...

The error reason represented by an enum.


Enumerations
DUPLICATE_ASSOCIATION
The label has already been attached to the entity.
INVALID_ASSOCIATION
A label is being applied to an entity that does not support that entity type.
NEGATION_NOT_ALLOWED
Label negation cannot be applied to the entity type.
DUPLICATE_ASSOCIATION_WITH_NEGATION
The same label is being applied and negated to the same entity.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.