enum OrderError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The content outlines error reasons related to order management within an advertising platform's API. Key actions include updating, creating, and assigning users or agencies to orders. Restrictions exist for updating canceled, pending approval, or archived orders. Proposal IDs can only be set during order creation. User roles have constraints: primary users are required, and cannot be secondary, while assigned users or agencies must be on the order's team. Certain fields are disallowed for non-programmatic orders.\n"],null,["# enum OrderError.Reason (v202502)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202502/ForecastService.OrderError.Reason) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.OrderError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.OrderError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.OrderError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.OrderError.Reason) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.OrderError.Reason) **TeamService** **Dependencies** \n[OrderError](/ad-manager/api/reference/v202502/TeamService.OrderError) \n▼\n**OrderError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|-------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| `UPDATE_CANCELED_ORDER_NOT_ALLOWED` | Updating a canceled order is not allowed. |\n| `UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED` | Updating an order that has its approval pending is not allowed. |\n| `UPDATE_ARCHIVED_ORDER_NOT_ALLOWED` | Updating an archived order is not allowed. |\n| `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. |\n| `PRIMARY_USER_REQUIRED` | Cannot have secondary user without a primary user. |\n| `PRIMARY_USER_CANNOT_BE_SECONDARY` | Primary user cannot be added as a secondary user too. |\n| `ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER` | A team associated with the order must also be associated with the advertiser. |\n| `USER_NOT_ON_ORDERS_TEAMS` | The user assigned to the order, like salesperson or trafficker, must be on one of the order's teams. |\n| `AGENCY_NOT_ON_ORDERS_TEAMS` | The agency assigned to the order must belong to one of the order's teams. |\n| `INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER` | Programmatic info fields should not be set for a non-programmatic order. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]