public static enum AdRequest.ErrorCode extends Enum<AdRequest.ErrorCode>
Enum Constant and Description |
---|
INTERNAL_ERROR
Something happened internally; for instance, the
Activity may have been destroyed mid-refresh. |
INVALID_REQUEST
The ad request is invalid.
|
NETWORK_ERROR
The ad request was unsuccessful due to network connectivity.
|
NO_FILL
The ad request is successful, but no ad was returned due to lack of ad
inventory.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
See
Object.toString() . |
static AdRequest.ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdRequest.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdRequest.ErrorCode INVALID_REQUEST
public static final AdRequest.ErrorCode NO_FILL
public static final AdRequest.ErrorCode NETWORK_ERROR
public static final AdRequest.ErrorCode INTERNAL_ERROR
Activity
may have been destroyed mid-refresh.public static AdRequest.ErrorCode[] values()
for (AdRequest.ErrorCode c : AdRequest.ErrorCode.values()) System.out.println(c);
public static AdRequest.ErrorCode 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 toString()
Object.toString()
.toString
in class Enum<AdRequest.ErrorCode>
Object.toString()