public enum ReservationDetailsErrorReason extends Enum<ReservationDetailsErrorReason>
Java class for ReservationDetailsError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ReservationDetailsError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNLIMITED_UNITS_BOUGHT_NOT_ALLOWED"/>
<enumeration value="UNLIMITED_END_DATE_TIME_NOT_ALLOWED"/>
<enumeration value="PERCENTAGE_UNITS_BOUGHT_TOO_HIGH"/>
<enumeration value="DURATION_NOT_ALLOWED"/>
<enumeration value="UNIT_TYPE_NOT_ALLOWED"/>
<enumeration value="COST_TYPE_NOT_ALLOWED"/>
<enumeration value="COST_TYPE_UNIT_TYPE_MISMATCH_NOT_ALLOWED"/>
<enumeration value="LINE_ITEM_TYPE_NOT_ALLOWED"/>
<enumeration value="NETWORK_REMNANT_ORDER_CANNOT_UPDATE_LINEITEM_TYPE"/>
<enumeration value="BACKFILL_WEBPROPERTY_CODE_NOT_ALLOWED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BACKFILL_WEBPROPERTY_CODE_NOT_ALLOWED
A dynamic allocation web property can only be set on a line item of type
AdSense or Ad Exchange.
|
COST_TYPE_NOT_ALLOWED
The
LineItemSummary.costType is not allowed for the
LineItemSummary.lineItemType. |
COST_TYPE_UNIT_TYPE_MISMATCH_NOT_ALLOWED
When
LineItemSummary.costType is CostType.CPM,
LineItem#unitType must be UnitType.IMPRESSIONS
and when LineItemSummary.costType is CostType.CPC,
LineItem#unitType must be UnitType.CLICKS. |
DURATION_NOT_ALLOWED
The line item type does not support the specified duration.
|
LINE_ITEM_TYPE_NOT_ALLOWED
Inventory cannot be reserved for line items which are not of type
LineItemType.SPONSORSHIP or LineItemType.STANDARD. |
NETWORK_REMNANT_ORDER_CANNOT_UPDATE_LINEITEM_TYPE
Remnant line items from the Google Ad Manager cannot be changed to other
line item types once delivery begins.
|
PERCENTAGE_UNITS_BOUGHT_TOO_HIGH
When
LineItemSummary.lineItemType is
LineItemType.SPONSORSHIP, then
LineItem#unitsBought represents the percentage of
available impressions reserved. |
UNIT_TYPE_NOT_ALLOWED
The
LineItem#unitType is not allowed for the given
LineItemSummary.lineItemType. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
UNLIMITED_END_DATE_TIME_NOT_ALLOWED
LineItemSummary.unlimitedEndDateTime can be set to true for only
line items of type LineItemType.SPONSORSHIP,
LineItemType.NETWORK, LineItemType.PRICE_PRIORITY and
LineItemType.HOUSE. |
UNLIMITED_UNITS_BOUGHT_NOT_ALLOWED
There is no limit on the number of ads delivered for a line item when you
set
LineItem#duration to be
LineItemSummary.Duration#NONE. |
| Modifier and Type | Method and Description |
|---|---|
static ReservationDetailsErrorReason |
fromValue(String v) |
String |
value() |
static ReservationDetailsErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReservationDetailsErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReservationDetailsErrorReason UNLIMITED_UNITS_BOUGHT_NOT_ALLOWED
LineItem#duration to be
LineItemSummary.Duration#NONE. This can only be set for line
items of type LineItemType.PRICE_PRIORITY.public static final ReservationDetailsErrorReason UNLIMITED_END_DATE_TIME_NOT_ALLOWED
LineItemSummary.unlimitedEndDateTime can be set to true for only
line items of type LineItemType.SPONSORSHIP,
LineItemType.NETWORK, LineItemType.PRICE_PRIORITY and
LineItemType.HOUSE.public static final ReservationDetailsErrorReason PERCENTAGE_UNITS_BOUGHT_TOO_HIGH
LineItemSummary.lineItemType is
LineItemType.SPONSORSHIP, then
LineItem#unitsBought represents the percentage of
available impressions reserved. That value cannot exceed 100.public static final ReservationDetailsErrorReason DURATION_NOT_ALLOWED
LineItemSummary.Duration for allowed values.public static final ReservationDetailsErrorReason UNIT_TYPE_NOT_ALLOWED
LineItem#unitType is not allowed for the given
LineItemSummary.lineItemType. See UnitType for allowed
values.public static final ReservationDetailsErrorReason COST_TYPE_NOT_ALLOWED
LineItemSummary.costType is not allowed for the
LineItemSummary.lineItemType. See CostType for allowed
values.public static final ReservationDetailsErrorReason COST_TYPE_UNIT_TYPE_MISMATCH_NOT_ALLOWED
LineItemSummary.costType is CostType.CPM,
LineItem#unitType must be UnitType.IMPRESSIONS
and when LineItemSummary.costType is CostType.CPC,
LineItem#unitType must be UnitType.CLICKS.public static final ReservationDetailsErrorReason LINE_ITEM_TYPE_NOT_ALLOWED
LineItemType.SPONSORSHIP or LineItemType.STANDARD.public static final ReservationDetailsErrorReason NETWORK_REMNANT_ORDER_CANNOT_UPDATE_LINEITEM_TYPE
public static final ReservationDetailsErrorReason BACKFILL_WEBPROPERTY_CODE_NOT_ALLOWED
public static final ReservationDetailsErrorReason UNKNOWN
public static ReservationDetailsErrorReason[] values()
for (ReservationDetailsErrorReason c : ReservationDetailsErrorReason.values()) System.out.println(c);
public static ReservationDetailsErrorReason 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 ReservationDetailsErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.