AI-generated Key Takeaways
- 
          
OrderActionError.Reason lists the possible reasons for errors when performing actions on orders.
 - 
          
Reasons include insufficient permissions, the order's state not being applicable, the order being archived or past its end date.
 - 
          
Further reasons cover issues with approving orders with unreserved line items, deleting orders with delivered line items, company credit status, or exceeding the line item limit.
 - 
          
An "UNKNOWN" reason is returned if the actual value is not exposed by the API version.
 
The reasons for the target error.
- Namespace
 - 
               
https://www.google.com/apis/ads/publisher/v202502 
| Enumeration | Description | 
|---|---|
                        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 LineItems 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 (archive, pause, resume) an Order because it has more than the allowed number of LineItems. | 
                        UNKNOWN
                      | 
                     The value returned if the actual value is not exposed by the requested API version. |