public enum AdUnitHierarchyErrorReason extends Enum<AdUnitHierarchyErrorReason>
Java class for AdUnitHierarchyError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdUnitHierarchyError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_DEPTH"/>
<enumeration value="INVALID_PARENT"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_DEPTH
The depth of the
AdUnit in the inventory hierarchy is greater
than is allowed. |
INVALID_PARENT
The only valid
AdUnit.parentId for a DFP Small Business account
is the Network.effectiveRootAdUnitId. |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static AdUnitHierarchyErrorReason |
fromValue(String v) |
String |
value() |
static AdUnitHierarchyErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdUnitHierarchyErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdUnitHierarchyErrorReason INVALID_DEPTH
AdUnit in the inventory hierarchy is greater
than is allowed. The maximum allowed depth is two below the effective
root ad unit for Premium accounts and one level below effective root ad
unit for Small Business accounts.public static final AdUnitHierarchyErrorReason INVALID_PARENT
AdUnit.parentId for a DFP Small Business account
is the Network.effectiveRootAdUnitId.public static final AdUnitHierarchyErrorReason UNKNOWN
public static AdUnitHierarchyErrorReason[] values()
for (AdUnitHierarchyErrorReason c : AdUnitHierarchyErrorReason.values()) System.out.println(c);
public static AdUnitHierarchyErrorReason 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 AdUnitHierarchyErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.