type LabelEntityAssociationError (v202411)

  • The LineItemService allows for managing line items, which are the fundamental elements for serving ads in Google Ad Manager.

  • LineItemService operations can result in a variety of errors, ranging from authentication issues to more specific errors related to line item configurations and targeting.

  • LabelEntityAssociationError is a specific type of error encountered when associating labels with line items, and it provides reasons like duplicate associations or invalid associations.

  • This service provides comprehensive error handling to assist developers in troubleshooting issues during line item management.

  • The detailed documentation helps to understand each error type and their potential causes, enabling developers to implement robust error handling in their applications.

Errors specific to creating label entity associations.


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.

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.