|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AdRequest.ErrorCode>
com.google.ads.AdRequest.ErrorCode
public static enum AdRequest.ErrorCode
An enumeration of the various types of errors that might occur while fetching an ad.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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.
Method Detail |
---|
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 name
NullPointerException
- if the argument is nullpublic String toString()
Object.toString()
.
toString
in class Enum<AdRequest.ErrorCode>
Object.toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |