enum DealError.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 |
CANNOT_ADD_LINE_ITEM_WHEN_SOLD
|
Cannot add new proposal line items to a Proposal when
Proposal.isSold is true .
|
CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD
|
Cannot archive proposal line items from a Proposal when
Proposal.isSold is true .
|
CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD
|
Cannot archive a Proposal when Proposal.isSold is true .
|
CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL
|
Cannot change a field that requires buyer approval during the current operation.
|
CANNOT_GET_SELLER_ID
|
Cannot find seller ID for the Proposal.
|
CAN_ONLY_EXECUTE_IF_LOCAL_EDITS
|
Proposal must be marked as editable by EditProposalsForNegotiation before
performing requested action.
|
MISSING_PROPOSAL_LINE_ITEMS
|
Proposal contains no proposal line items.
|
MISSING_ENVIRONMENT
|
No environment set for Proposal.
|
MISSING_AD_EXCHANGE_PROPERTY
|
The Ad Exchange property is not associated with the current network.
|
CANNOT_FIND_PROPOSAL_IN_MARKETPLACE
|
Cannot find Proposal in Marketplace.
|
CANNOT_GET_PRODUCT
|
No Product exists for buyer-initiated programmatic proposals.
|
NEW_VERSION_FROM_BUYER
|
A new version of the Proposal was sent from buyer, cannot execute the requested
action before performing DiscardLocalVersionEdits.
|
PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE
|
A new version of the Proposal exists in Marketplace, cannot execute the requested
action before the proposal is synced to newest revision.
|
NO_PROPOSAL_CHANGES_FOUND
|
No Proposal changes were found.
|
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 the `DealError.Reason` enumeration within the `ProposalLineItemService`, `ProposalService`, and `PublisherQueryLanguageService`. It details various reasons for errors, such as inability to add or archive proposal line items or proposals when they are sold. Other errors include missing data, the inability to change fields requiring buyer approval, or issues with proposal syncing and editing. It includes actions that are blocked because of a `Proposal` `isSold` condition being `true` and actions that requires the `Proposal` to be edited.\n"],null,["# enum DealError.Reason (v202502)\n\n**Service** \n[ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.DealError.Reason) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.DealError.Reason) **PublisherQueryLanguageService** **Dependencies** \n[DealError](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.DealError) \n▼\n**DealError.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| `CANNOT_ADD_LINE_ITEM_WHEN_SOLD` | Cannot add new [proposal line items](/ad-manager/api/reference/v202502/ForecastService.ProposalLineItem) to a [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) when [Proposal.isSold](/ad-manager/api/reference/v202502/ProposalService.Proposal#isSold) is `true`. |\n| `CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD` | Cannot archive [proposal line items](/ad-manager/api/reference/v202502/ForecastService.ProposalLineItem) from a [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) when [Proposal.isSold](/ad-manager/api/reference/v202502/ProposalService.Proposal#isSold) is `true`. |\n| `CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD` | Cannot archive a [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) when [Proposal.isSold](/ad-manager/api/reference/v202502/ProposalService.Proposal#isSold) is `true`. |\n| `CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL` | Cannot change a field that requires buyer approval during the current operation. |\n| `CANNOT_GET_SELLER_ID` | Cannot find seller ID for the [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal). |\n| `CAN_ONLY_EXECUTE_IF_LOCAL_EDITS` | [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) must be marked as editable by [EditProposalsForNegotiation](/ad-manager/api/reference/v202502/ProposalService.EditProposalsForNegotiation) before performing requested action. |\n| `MISSING_PROPOSAL_LINE_ITEMS` | [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) contains no [proposal line items](/ad-manager/api/reference/v202502/ForecastService.ProposalLineItem). |\n| `MISSING_ENVIRONMENT` | No environment set for [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal). |\n| `MISSING_AD_EXCHANGE_PROPERTY` | The Ad Exchange property is not associated with the current network. |\n| `CANNOT_FIND_PROPOSAL_IN_MARKETPLACE` | Cannot find [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) in Marketplace. |\n| `CANNOT_GET_PRODUCT` | No `Product` exists for buyer-initiated programmatic [proposals](/ad-manager/api/reference/v202502/ProposalService.Proposal). |\n| `NEW_VERSION_FROM_BUYER` | A new version of the [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) was sent from buyer, cannot execute the requested action before performing [DiscardLocalVersionEdits](/ad-manager/api/reference/v202502/ProposalService.DiscardLocalVersionEdits). |\n| `PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE` | A new version of the [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) exists in Marketplace, cannot execute the requested action before the proposal is synced to newest revision. |\n| `NO_PROPOSAL_CHANGES_FOUND` | No [Proposal](/ad-manager/api/reference/v202502/ProposalService.Proposal) changes were found. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]