Page Summary
-
OrderActionError lists all errors associated with performing actions on Order objects.
-
OrderActionError inherits from ApiError and includes fields like fieldPath, fieldPathElements, trigger, and errorString.
-
The reason field in OrderActionError provides an enum representing the error reason, such as PERMISSION_DENIED, NOT_APPLICABLE, or IS_ARCHIVED.
-
Enumerations within the reason field specify various conditions under which an OrderActionError can occur, like attempting to approve an order with unreserved line items or deleting an order with delivered line items.
Lists all errors associated with performing actions on Order objects.
- 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
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.
OrderActionError
reason
The error reason represented by an enum.
Enumerations
-
PERMISSION_DENIED - The operation is not allowed due to lack of permissions.
-
NOT_APPLICABLE - The operation is not applicable for the current state of the Order .
-
IS_ARCHIVED - The Order is archived, an OrderAction cannot be applied to an archived order.
-
HAS_ENDED - The Order is past its end date, An OrderAction cannot be applied to a order that has ended.
-
CANNOT_APPROVE_WITH_UNRESERVED_LINE_ITEMS - A Order cannot be approved if it contains reservable LineItem s that are unreserved.
-
CANNOT_DELETE_ORDER_WITH_DELIVERED_LINEITEMS - Deleting an Order with delivered line items is not allowed
-
CANNOT_APPROVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE - Cannot approve because company credit status is not active.
-
CANNOT_UPDATE_ORDER_OVER_LINE_ITEM_LIMIT - Cannot update an Order because it has more than the allowed number of LineItem s.
-
UNKNOWN - The value returned if the actual value is not exposed by the requested API version.

