com.google.ads
Enum AdRequest.ErrorCode

java.lang.Object
  extended by java.lang.Enum<AdRequest.ErrorCode>
      extended by com.google.ads.AdRequest.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<AdRequest.ErrorCode>
Enclosing class:
AdRequest

public static enum AdRequest.ErrorCode
extends 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

INVALID_REQUEST

public static final AdRequest.ErrorCode INVALID_REQUEST
The ad request is invalid.


NO_FILL

public static final AdRequest.ErrorCode NO_FILL
The ad request is successful, but no ad was returned due to lack of ad inventory.


NETWORK_ERROR

public static final AdRequest.ErrorCode NETWORK_ERROR
The ad request was unsuccessful due to network connectivity.


INTERNAL_ERROR

public static final AdRequest.ErrorCode INTERNAL_ERROR
Something happened internally; for instance, the Activity may have been destroyed mid-refresh.

Method Detail

values

public static AdRequest.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AdRequest.ErrorCode c : AdRequest.ErrorCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AdRequest.ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

public String toString()
See Object.toString().

Overrides:
toString in class Enum<AdRequest.ErrorCode>
See Also:
Object.toString()