public enum OrderErrorReason extends Enum<OrderErrorReason>
Java class for OrderError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="OrderError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UPDATE_CANCELED_ORDER_NOT_ALLOWED"/>
<enumeration value="UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED"/>
<enumeration value="UPDATE_ARCHIVED_ORDER_NOT_ALLOWED"/>
<enumeration value="CANNOT_MODIFY_PROPOSAL_ID"/>
<enumeration value="PRIMARY_USER_REQUIRED"/>
<enumeration value="PRIMARY_USER_CANNOT_BE_SECONDARY"/>
<enumeration value="ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER"/>
<enumeration value="USER_NOT_ON_ORDERS_TEAMS"/>
<enumeration value="AGENCY_NOT_ON_ORDERS_TEAMS"/>
<enumeration value="INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
AGENCY_NOT_ON_ORDERS_TEAMS
The agency assigned to the order must belong to one of the order's teams.
|
CANNOT_MODIFY_PROPOSAL_ID
DSM can set the proposal ID only at the time of creation of order.
|
INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER
Programmatic info fields should not be set for a non-programmatic order.
|
ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER
A team associated with the order must also be associated with the
advertiser.
|
PRIMARY_USER_CANNOT_BE_SECONDARY
Primary user cannot be added as a secondary user too.
|
PRIMARY_USER_REQUIRED
Cannot have secondary user without a primary user.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UPDATE_ARCHIVED_ORDER_NOT_ALLOWED
Updating an archived order is not allowed.
|
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.
|
USER_NOT_ON_ORDERS_TEAMS
The user assigned to the order, like salesperson or trafficker, must
be on one of the order's teams.
|
| Modifier and Type | Method and Description |
|---|---|
static OrderErrorReason |
fromValue(String v) |
String |
value() |
static OrderErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OrderErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderErrorReason UPDATE_CANCELED_ORDER_NOT_ALLOWED
public static final OrderErrorReason UPDATE_PENDING_APPROVAL_ORDER_NOT_ALLOWED
public static final OrderErrorReason UPDATE_ARCHIVED_ORDER_NOT_ALLOWED
public static final OrderErrorReason CANNOT_MODIFY_PROPOSAL_ID
public static final OrderErrorReason PRIMARY_USER_REQUIRED
public static final OrderErrorReason PRIMARY_USER_CANNOT_BE_SECONDARY
public static final OrderErrorReason ORDER_TEAM_NOT_ASSOCIATED_WITH_ADVERTISER
public static final OrderErrorReason USER_NOT_ON_ORDERS_TEAMS
public static final OrderErrorReason AGENCY_NOT_ON_ORDERS_TEAMS
public static final OrderErrorReason INVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER
public static final OrderErrorReason UNKNOWN
public static OrderErrorReason[] values()
for (OrderErrorReason c : OrderErrorReason.values()) System.out.println(c);
public static OrderErrorReason 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 OrderErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.