type LineItemActivityAssociationError (v202502)

  • This content details LineItemActivityAssociationError, an error specific to associating activities with line items.

  • LineItemActivityAssociationError inherits from ApiError and includes fields such as fieldPath, trigger, and errorString.

  • Specific reasons for this error include INVALID_ACTIVITY_FOR_ADVERTISER, INVALID_COST_TYPE_FOR_ASSOCIATION, and UNKNOWN.

  • The error reasons are represented by an enum called LineItemActivityAssociationError.Reason.

Errors specific to associating activities to line items.


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.

LineItemActivityAssociationError

reason

LineItemActivityAssociation...

The error reason represented by an enum.


Enumerations
INVALID_ACTIVITY_FOR_ADVERTISER
When associating an activity to a line item the activity must belong to the same advertiser as the line item.
INVALID_COST_TYPE_FOR_ASSOCIATION
Activities can only be associated with line items of CostType.CPA.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.