type LabelEntityAssociationError (v202502)

  • LabelEntityAssociationError represents errors specific to creating label entity associations within various services like CompanyService, CreativeService, and CreativeSetService.

  • This error inherits from ApiError and includes fields such as fieldPath, trigger, and errorString to provide details about the error.

  • The LabelEntityAssociationError has a specific 'reason' field, which is an enum indicating the cause of the error, including duplicate associations, invalid associations, negation not allowed, duplicate association with negation, or an unknown reason.

Errors specific to creating label entity associations.


Namespace
https://www.google.com/apis/ads/publisher/v202502

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.