enum OrderError.Reason (v202411)

  • OrderError.Reason identifies potential errors encountered when creating or updating orders in Google Ad Manager.

  • This enumeration outlines reasons for order errors, such as updating canceled orders, missing primary users, or team association conflicts.

  • It includes error codes for programmatic order issues and situations where users or agencies are not associated with the order's teams.

  • The OrderError.Reason namespace provides programmatic access to these error codes for troubleshooting and debugging.

The reasons for the target error.


Namespace
https://www.google.com/apis/ads/publisher/v202411
Enumeration Description
UPDATE_CANCELED_ORDER_NOT_ALLOWED Updating a canceled order is not allowed.
UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED Updating an order that has its approval pending is not allowed.
UPDATE_ARCHIVED_ORDER_NOT_ALLOWED Updating an archived order is not allowed.
CANNOT_MODIFY_PROPOSAL_ID DSM can set the proposal ID only at the time of creation of order. Setting or changing proposal ID at the time of order update is not allowed.
PRIMARY_USER_REQUIRED Cannot have secondary user without a primary user.
PRIMARY_USER_CANNOT_BE_SECONDARY Primary user cannot be added as a secondary user too.
ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER A team associated with the order must also be associated with the advertiser.
USER_NOT_ON_ORDERS_TEAMS The user assigned to the order, like salesperson or trafficker, must be on one of the order's teams.
AGENCY_NOT_ON_ORDERS_TEAMS The agency assigned to the order must belong to one of the order's teams.
INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER Programmatic info fields should not be set for a non-programmatic order.
UNKNOWN The value returned if the actual value is not exposed by the requested API version.