public enum LineItemOperationErrorReason extends Enum<LineItemOperationErrorReason>
Java class for LineItemOperationError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="LineItemOperationError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="NOT_ALLOWED"/>
<enumeration value="NOT_APPLICABLE"/>
<enumeration value="HAS_COMPLETED"/>
<enumeration value="HAS_NO_ACTIVE_CREATIVES"/>
<enumeration value="CANNOT_ACTIVATE_LEGACY_DFP_LINE_ITEM"/>
<enumeration value="CANNOT_ACTIVATE_UNCONFIGURED_LINE_ITEM"/>
<enumeration value="CANNOT_DELETE_DELIVERED_LINE_ITEM"/>
<enumeration value="CANNOT_RESERVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE"/>
<enumeration value="CANNOT_ACTIVATE_INVALID_COMPANY_CREDIT_STATUS"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_ACTIVATE_INVALID_COMPANY_CREDIT_STATUS
Cannot activate line item because the
LineItem#advertiserId
it is associated with has Company.creditStatus that is not
ACTIVE, INACTIVE, or ON_HOLD. |
CANNOT_ACTIVATE_LEGACY_DFP_LINE_ITEM
A
LineItem of type LineItemType.LEGACY_DFP cannot be
Activated. |
CANNOT_ACTIVATE_UNCONFIGURED_LINE_ITEM
A
LineItem with publisher creative source cannot be activated if the corresponding
deal is not yet configured by the buyer. |
CANNOT_DELETE_DELIVERED_LINE_ITEM
Deleting an
LineItem that has delivered is not allowed |
CANNOT_RESERVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE
Reservation cannot be made for line item because the
LineItem#advertiserId it is associated with has
Company.creditStatus that is not ACTIVE
or ON_HOLD. |
HAS_COMPLETED
The
LineItem is completed. |
HAS_NO_ACTIVE_CREATIVES
The
LineItem has no active creatives. |
NOT_ALLOWED
The operation is not allowed due to lack of permissions.
|
NOT_APPLICABLE
The operation is not applicable for the current state of the
LineItem. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static LineItemOperationErrorReason |
fromValue(String v) |
String |
value() |
static LineItemOperationErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineItemOperationErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineItemOperationErrorReason NOT_ALLOWED
public static final LineItemOperationErrorReason NOT_APPLICABLE
LineItem.public static final LineItemOperationErrorReason HAS_COMPLETED
LineItem is completed. A LineItemAction cannot
be applied to a line item that is completed.public static final LineItemOperationErrorReason HAS_NO_ACTIVE_CREATIVES
LineItem has no active creatives. A line item cannot be
activated with no active creatives.public static final LineItemOperationErrorReason CANNOT_ACTIVATE_LEGACY_DFP_LINE_ITEM
LineItem of type LineItemType.LEGACY_DFP cannot be
Activated.public static final LineItemOperationErrorReason CANNOT_ACTIVATE_UNCONFIGURED_LINE_ITEM
LineItem with publisher creative source cannot be activated if the corresponding
deal is not yet configured by the buyer.public static final LineItemOperationErrorReason CANNOT_DELETE_DELIVERED_LINE_ITEM
LineItem that has delivered is not allowedpublic static final LineItemOperationErrorReason CANNOT_RESERVE_COMPANY_CREDIT_STATUS_NOT_ACTIVE
LineItem#advertiserId it is associated with has
Company.creditStatus that is not ACTIVE
or ON_HOLD.public static final LineItemOperationErrorReason CANNOT_ACTIVATE_INVALID_COMPANY_CREDIT_STATUS
LineItem#advertiserId
it is associated with has Company.creditStatus that is not
ACTIVE, INACTIVE, or ON_HOLD.public static final LineItemOperationErrorReason UNKNOWN
public static LineItemOperationErrorReason[] values()
for (LineItemOperationErrorReason c : LineItemOperationErrorReason.values()) System.out.println(c);
public static LineItemOperationErrorReason 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 LineItemOperationErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.