type LineItemActivityAssociationError (v202411)

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

  • This error occurs within the OrderService and inherits from the ApiError object.

  • Reasons for this error include an invalid activity for the advertiser, an invalid cost type for the association, or an unknown reason.

  • The error object provides details such as the field path, trigger data, and a simple error string.

  • Developers can use the reason field to determine the specific cause of the error and take appropriate action.

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.