type LineItemActivityAssociationError (v202508)

  • LineItemActivityAssociationError is an error specific to associating activities with line items within the Google Ad Manager API.

  • This error can occur if the activity does not belong to the same advertiser as the line item or if the line item's cost type is not CPA.

  • The error details include fields inherited from ApiError such as fieldPath, fieldPathElements, trigger, and errorString, along with a specific reason enum.

  • The possible reasons for this error are INVALID_ACTIVITY_FOR_ADVERTISER, INVALID_COST_TYPE_FOR_ASSOCIATION, and UNKNOWN.

Errors specific to associating activities to line items.


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.

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.