public enum AdUnitCodeErrorReason extends Enum<AdUnitCodeErrorReason>
Java class for AdUnitCodeError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AdUnitCodeError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="INVALID_CHARACTERS"/>
<enumeration value="INVALID_CHARACTERS_WHEN_UTF_CHARACTERS_ARE_ALLOWED"/>
<enumeration value="LEADING_FORWARD_SLASH"/>
<enumeration value="RESERVED_CODE"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
INVALID_CHARACTERS
For
AdUnit.adUnitCode, only alpha-numeric characters,
underscores, hyphens, periods, asterisks, double quotes, back slashes,
forward slashes, exclamations, left angle brackets, colons and
parentheses are allowed. |
INVALID_CHARACTERS_WHEN_UTF_CHARACTERS_ARE_ALLOWED
For
AdUnit.adUnitCode, only letters, numbers,
underscores, hyphens, periods, asterisks, double quotes, back slashes,
forward slashes, exclamations, left angle brackets, colons and
parentheses are allowed. |
LEADING_FORWARD_SLASH
For
AdUnit.adUnitCode, forward slashes are not allowed as
the first character. |
RESERVED_CODE
Specific codes matching ca-*pub-*-tag are reserved for "Web Property IUs"
generated as part of the SlotCode migration.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static AdUnitCodeErrorReason |
fromValue(String v) |
String |
value() |
static AdUnitCodeErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdUnitCodeErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdUnitCodeErrorReason INVALID_CHARACTERS
AdUnit.adUnitCode, only alpha-numeric characters,
underscores, hyphens, periods, asterisks, double quotes, back slashes,
forward slashes, exclamations, left angle brackets, colons and
parentheses are allowed.public static final AdUnitCodeErrorReason INVALID_CHARACTERS_WHEN_UTF_CHARACTERS_ARE_ALLOWED
AdUnit.adUnitCode, only letters, numbers,
underscores, hyphens, periods, asterisks, double quotes, back slashes,
forward slashes, exclamations, left angle brackets, colons and
parentheses are allowed.public static final AdUnitCodeErrorReason LEADING_FORWARD_SLASH
AdUnit.adUnitCode, forward slashes are not allowed as
the first character.public static final AdUnitCodeErrorReason RESERVED_CODE
public static final AdUnitCodeErrorReason UNKNOWN
public static AdUnitCodeErrorReason[] values()
for (AdUnitCodeErrorReason c : AdUnitCodeErrorReason.values()) System.out.println(c);
public static AdUnitCodeErrorReason 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 AdUnitCodeErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.