public enum ProposalErrorReason extends Enum<ProposalErrorReason>
Java class for ProposalError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ProposalError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="AD_SERVER_UNKNOWN_ERROR"/>
<enumeration value="AD_SERVER_API_ERROR"/>
<enumeration value="UPDATE_ADVERTISER_NOT_ALLOWED"/>
<enumeration value="UPDATE_PROPOSAL_NOT_ALLOWED"/>
<enumeration value="CONTACT_UNSUPPORTED_FOR_ADVERTISER"/>
<enumeration value="INVALID_CONTACT"/>
<enumeration value="DUPLICATED_CONTACT"/>
<enumeration value="UNACCEPTABLE_COMPANY_CREDIT_STATUS"/>
<enumeration value="COMPANY_CREDIT_STATUS_NOT_ACTIVE"/>
<enumeration value="PRIMARY_AGENCY_REQUIRED"/>
<enumeration value="PRIMARY_AGENCY_NOT_UNIQUE"/>
<enumeration value="UNSUPPORTED_COMPANY_ASSOCIATION_TYPE_FOR_PROGRAMMATIC_PROPOSAL"/>
<enumeration value="DUPLICATED_COMPANY_ASSOCIATION"/>
<enumeration value="DUPLICATED_SALESPERSON"/>
<enumeration value="DUPLICATED_SALES_PLANNER"/>
<enumeration value="DUPLICATED_TRAFFICKER"/>
<enumeration value="HAS_NO_UNARCHIVED_PROPOSAL_LINEITEMS"/>
<enumeration value="DUPLICATE_TERMS_AND_CONDITIONS"/>
<enumeration value="UNSUPPORTED_PROPOSAL_CURRENCY_CODE"/>
<enumeration value="INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_PROPOSAL"/>
<enumeration value="INVALID_POC"/>
<enumeration value="UPDATE_CURRENCY_NOT_ALLOWED"/>
<enumeration value="UPDATE_TIME_ZONE_NOT_ALLOWED"/>
<enumeration value="NON_PROGRAMMATIC_PROPOSAL_NOT_ALLOWED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AD_SERVER_API_ERROR
Ad-server reports an api error for the operation.
|
AD_SERVER_UNKNOWN_ERROR
Unknown error from ad-server
|
COMPANY_CREDIT_STATUS_NOT_ACTIVE
Advertiser or agency associated with the proposal has
Company.creditStatus that is
not ACTIVE. |
CONTACT_UNSUPPORTED_FOR_ADVERTISER
|
DUPLICATE_TERMS_AND_CONDITIONS
One or more of the terms and conditions being added already exists on the proposal.
|
DUPLICATED_COMPANY_ASSOCIATION
Advertiser or agency associated with a proposal is duplicated.
|
DUPLICATED_CONTACT
Contact associated with a proposal's advertiser or agency is duplicated.
|
DUPLICATED_SALES_PLANNER
Found duplicated sales planner.
|
DUPLICATED_SALESPERSON
Found duplicated primary or secondary sales person.
|
DUPLICATED_TRAFFICKER
Found duplicated primary or secondary trafficker.
|
HAS_NO_UNARCHIVED_PROPOSAL_LINEITEMS
The proposal has no unarchived proposal line items.
|
INVALID_CONTACT
Contact associated with a proposal does not belong to the specific company.
|
INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_PROPOSAL
Proposal.marketplaceInfo fields should not be set for a non-programmatic
Proposal. |
INVALID_POC
The POC value of the proposal is invalid.
|
NON_PROGRAMMATIC_PROPOSAL_NOT_ALLOWED
Sales management features must be enabled to use non-programmatic
Proposal. |
PRIMARY_AGENCY_NOT_UNIQUE
Cannot have more than one primary agency.
|
PRIMARY_AGENCY_REQUIRED
Cannot have other agencies without a primary agency.
|
UNACCEPTABLE_COMPANY_CREDIT_STATUS
A proposal cannot be created or updated because the company
it is associated with has
Company.creditStatus
that is not ACTIVE or ON_HOLD. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNSUPPORTED_COMPANY_ASSOCIATION_TYPE_FOR_PROGRAMMATIC_PROPOSAL
|
UNSUPPORTED_PROPOSAL_CURRENCY_CODE
The currency code of the proposal is not supported by the current network.
|
UPDATE_ADVERTISER_NOT_ALLOWED
Advertiser cannot be updated once the proposal has been reserved.
|
UPDATE_CURRENCY_NOT_ALLOWED
Currency cannot be updated once the proposal has been reserved.
|
UPDATE_PROPOSAL_NOT_ALLOWED
Proposal cannot be updated when its status is not
DRAFT or it is archived. |
UPDATE_TIME_ZONE_NOT_ALLOWED
Time zone cannot be updated once the proposal has been sold.
|
| Modifier and Type | Method and Description |
|---|---|
static ProposalErrorReason |
fromValue(String v) |
String |
value() |
static ProposalErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProposalErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProposalErrorReason AD_SERVER_UNKNOWN_ERROR
public static final ProposalErrorReason AD_SERVER_API_ERROR
public static final ProposalErrorReason UPDATE_ADVERTISER_NOT_ALLOWED
public static final ProposalErrorReason UPDATE_PROPOSAL_NOT_ALLOWED
DRAFT or it is archived.public static final ProposalErrorReason CONTACT_UNSUPPORTED_FOR_ADVERTISER
public static final ProposalErrorReason INVALID_CONTACT
public static final ProposalErrorReason DUPLICATED_CONTACT
public static final ProposalErrorReason UNACCEPTABLE_COMPANY_CREDIT_STATUS
Company.creditStatus
that is not ACTIVE or ON_HOLD.public static final ProposalErrorReason COMPANY_CREDIT_STATUS_NOT_ACTIVE
Company.creditStatus that is
not ACTIVE.public static final ProposalErrorReason PRIMARY_AGENCY_REQUIRED
public static final ProposalErrorReason PRIMARY_AGENCY_NOT_UNIQUE
public static final ProposalErrorReason UNSUPPORTED_COMPANY_ASSOCIATION_TYPE_FOR_PROGRAMMATIC_PROPOSAL
public static final ProposalErrorReason DUPLICATED_COMPANY_ASSOCIATION
public static final ProposalErrorReason DUPLICATED_SALESPERSON
public static final ProposalErrorReason DUPLICATED_SALES_PLANNER
public static final ProposalErrorReason DUPLICATED_TRAFFICKER
public static final ProposalErrorReason HAS_NO_UNARCHIVED_PROPOSAL_LINEITEMS
public static final ProposalErrorReason DUPLICATE_TERMS_AND_CONDITIONS
public static final ProposalErrorReason UNSUPPORTED_PROPOSAL_CURRENCY_CODE
Network.currencyCode and
Network.secondaryCurrencyCodes.public static final ProposalErrorReason INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_PROPOSAL
Proposal.marketplaceInfo fields should not be set for a non-programmatic
Proposal.public static final ProposalErrorReason INVALID_POC
public static final ProposalErrorReason UPDATE_CURRENCY_NOT_ALLOWED
public static final ProposalErrorReason UPDATE_TIME_ZONE_NOT_ALLOWED
public static final ProposalErrorReason NON_PROGRAMMATIC_PROPOSAL_NOT_ALLOWED
Proposal.public static final ProposalErrorReason UNKNOWN
public static ProposalErrorReason[] values()
for (ProposalErrorReason c : ProposalErrorReason.values()) System.out.println(c);
public static ProposalErrorReason 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 ProposalErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.