public enum DealErrorReason extends Enum<DealErrorReason>
Java class for DealError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="DealError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="CANNOT_ADD_LINE_ITEM_WHEN_SOLD"/>
<enumeration value="CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD"/>
<enumeration value="CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD"/>
<enumeration value="CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL"/>
<enumeration value="CANNOT_GET_SELLER_ID"/>
<enumeration value="CAN_ONLY_EXECUTE_IF_LOCAL_EDITS"/>
<enumeration value="MISSING_PROPOSAL_LINE_ITEMS"/>
<enumeration value="MISSING_ENVIRONMENT"/>
<enumeration value="MISSING_AD_EXCHANGE_PROPERTY"/>
<enumeration value="CANNOT_FIND_PROPOSAL_IN_MARKETPLACE"/>
<enumeration value="CANNOT_GET_PRODUCT"/>
<enumeration value="NEW_VERSION_FROM_BUYER"/>
<enumeration value="PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE"/>
<enumeration value="NO_PROPOSAL_CHANGES_FOUND"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CAN_ONLY_EXECUTE_IF_LOCAL_EDITS
Proposal must be marked as editable by EditProposalsForNegotiation before
performing requested action. |
CANNOT_ADD_LINE_ITEM_WHEN_SOLD
|
CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD
|
CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD
|
CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL
Cannot change a field that requires buyer approval during the current operation.
|
CANNOT_FIND_PROPOSAL_IN_MARKETPLACE
Cannot find
Proposal in Marketplace. |
CANNOT_GET_PRODUCT
|
CANNOT_GET_SELLER_ID
Cannot find seller ID for the
Proposal. |
MISSING_AD_EXCHANGE_PROPERTY
The Ad Exchange property is not associated with the current network.
|
MISSING_ENVIRONMENT
No environment set for
Proposal. |
MISSING_PROPOSAL_LINE_ITEMS
Proposal contains no proposal line items. |
NEW_VERSION_FROM_BUYER
A new version of the
Proposal was sent from buyer, cannot execute the requested
action before performing DiscardLocalVersionEdits. |
NO_PROPOSAL_CHANGES_FOUND
No
Proposal changes were found. |
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. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static DealErrorReason |
fromValue(String v) |
String |
value() |
static DealErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DealErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DealErrorReason CANNOT_ADD_LINE_ITEM_WHEN_SOLD
public static final DealErrorReason CANNOT_ARCHIVE_LINE_ITEM_WHEN_SOLD
public static final DealErrorReason CANNOT_ARCHIVE_PROPOSAL_WHEN_SOLD
public static final DealErrorReason CANNOT_CHANGE_FIELD_REQUIRING_BUYER_APPROVAL
public static final DealErrorReason CANNOT_GET_SELLER_ID
Proposal.public static final DealErrorReason CAN_ONLY_EXECUTE_IF_LOCAL_EDITS
Proposal must be marked as editable by EditProposalsForNegotiation before
performing requested action.public static final DealErrorReason MISSING_PROPOSAL_LINE_ITEMS
Proposal contains no proposal line items.public static final DealErrorReason MISSING_ENVIRONMENT
Proposal.public static final DealErrorReason MISSING_AD_EXCHANGE_PROPERTY
public static final DealErrorReason CANNOT_FIND_PROPOSAL_IN_MARKETPLACE
Proposal in Marketplace.public static final DealErrorReason CANNOT_GET_PRODUCT
public static final DealErrorReason NEW_VERSION_FROM_BUYER
Proposal was sent from buyer, cannot execute the requested
action before performing DiscardLocalVersionEdits.public static final DealErrorReason PROPOSAL_OUT_OF_SYNC_WITH_MARKETPLACE
Proposal exists in Marketplace, cannot execute the requested
action before the proposal is synced to newest revision.public static final DealErrorReason NO_PROPOSAL_CHANGES_FOUND
Proposal changes were found.public static final DealErrorReason UNKNOWN
public static DealErrorReason[] values()
for (DealErrorReason c : DealErrorReason.values()) System.out.println(c);
public static DealErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static DealErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.