public enum InventoryUnitErrorReason extends Enum<InventoryUnitErrorReason>
Java class for InventoryUnitError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="InventoryUnitError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="EXPLICIT_TARGETING_NOT_ALLOWED"/>
<enumeration value="TARGET_PLATFORM_NOT_APPLICABLE"/>
<enumeration value="ADSENSE_CANNOT_BE_ENABLED"/>
<enumeration value="ROOT_UNIT_CANNOT_BE_DEACTIVATED"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ADSENSE_CANNOT_BE_ENABLED
AdSense cannot be enabled on this inventory unit if it is disabled for the network.
|
EXPLICIT_TARGETING_NOT_ALLOWED
AdUnit.explicitlyTargeted can be set to true only in a
DFP Premium account. |
ROOT_UNIT_CANNOT_BE_DEACTIVATED
A root unit cannot be deactivated.
|
TARGET_PLATFORM_NOT_APPLICABLE
The specified target platform is not applicable for the inventory unit.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static InventoryUnitErrorReason |
fromValue(String v) |
String |
value() |
static InventoryUnitErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InventoryUnitErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InventoryUnitErrorReason EXPLICIT_TARGETING_NOT_ALLOWED
AdUnit.explicitlyTargeted can be set to true only in a
DFP Premium account.public static final InventoryUnitErrorReason TARGET_PLATFORM_NOT_APPLICABLE
public static final InventoryUnitErrorReason ADSENSE_CANNOT_BE_ENABLED
public static final InventoryUnitErrorReason ROOT_UNIT_CANNOT_BE_DEACTIVATED
public static final InventoryUnitErrorReason UNKNOWN
public static InventoryUnitErrorReason[] values()
for (InventoryUnitErrorReason c : InventoryUnitErrorReason.values()) System.out.println(c);
public static InventoryUnitErrorReason 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 InventoryUnitErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.