type LineItemActivityAssociationError (v202411)

  • The LineItemActivityAssociationError object describes errors encountered when associating activities with line items in Google Ad Manager.

  • These errors often relate to mismatches between the activity and the line item, such as the activity belonging to a different advertiser or the line item having an incompatible cost type.

  • The reason field provides a specific error code, like INVALID_ACTIVITY_FOR_ADVERTISER or INVALID_COST_TYPE_FOR_ASSOCIATION, to help diagnose the issue.

  • The error object also inherits properties from ApiError, such as fieldPath, trigger, and errorString, offering additional context for debugging.

Errors specific to associating activities to line items.


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.

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.