Enum Constant and Description |
---|
AdUnloaded
The Ad being displayed has become unavailable or expired
|
BannerVisibleWithoutContent
A Banner Ad view is visible, but there is no Ad being displayed
|
ConfigurationError
This error can occur if the AskingPoint Advertising Services
are not enabled, improperly configured or not turned on for anApp.
|
InventoryUnavailable
There is currently no Ad inventory available
|
LoadingThrottled
Too many Ads have been requested in too short a time
|
ServerFailure
Network error, unable to get an Ad
|
Success |
Unknown
Unknown Error
|
Modifier and Type | Method and Description |
---|---|
static AdError |
fromCode(int code)
Reserved for AskingPoint use.
|
int |
getErrorCode()
Returns the associated error code.
|
static AdError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdError Success
public static final AdError ServerFailure
public static final AdError LoadingThrottled
public static final AdError InventoryUnavailable
public static final AdError ConfigurationError
public static final AdError BannerVisibleWithoutContent
public static final AdError AdUnloaded
public static final AdError Unknown
public static AdError[] values()
for (AdError c : AdError.values()) System.out.println(c);
public static AdError valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getErrorCode()
public static AdError fromCode(int code)