Package org.prebid.mobile
Enum ResultCode
- java.lang.Object
-
- java.lang.Enum<ResultCode>
-
- org.prebid.mobile.ResultCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ResultCode>
public enum ResultCode extends java.lang.Enum<ResultCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_ACCOUNT_IDThe ad request failed due to empty account idINVALID_AD_OBJECTCurrently, we only support Banner, Interstitial, DFP Banner, InterstitialINVALID_CONFIG_IDThe ad request failed due to empty config id on the ad unitINVALID_CONTEXTUnable to obtain the Application Context, check if you have set it through PrebidMobile.setApplicationContext()INVALID_HOST_URLThe ad request failed because a CUSTOM host used without providing host urlINVALID_NATIVE_REQUESTMissing assets requirement for native ad unitINVALID_SIZEFor banner view, we don't support multi-size requestNETWORK_ERRORThe ad request failed due to a network error.NO_BIDSNo bids available from demand sourcePREBID_SERVER_ERRORPrebid Server responded with some error messagesSUCCESSThe attaching keywords was successful, which means there was demand and the demand was set on the ad object.TIMEOUTThe ad request took longer than set time out
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResultCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ResultCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final ResultCode SUCCESS
The attaching keywords was successful, which means there was demand and the demand was set on the ad object.
-
INVALID_ACCOUNT_ID
public static final ResultCode INVALID_ACCOUNT_ID
The ad request failed due to empty account id
-
INVALID_CONFIG_ID
public static final ResultCode INVALID_CONFIG_ID
The ad request failed due to empty config id on the ad unit
-
INVALID_HOST_URL
public static final ResultCode INVALID_HOST_URL
The ad request failed because a CUSTOM host used without providing host url
-
INVALID_SIZE
public static final ResultCode INVALID_SIZE
For banner view, we don't support multi-size request
-
INVALID_CONTEXT
public static final ResultCode INVALID_CONTEXT
Unable to obtain the Application Context, check if you have set it through PrebidMobile.setApplicationContext()
-
INVALID_AD_OBJECT
public static final ResultCode INVALID_AD_OBJECT
Currently, we only support Banner, Interstitial, DFP Banner, Interstitial
-
NETWORK_ERROR
public static final ResultCode NETWORK_ERROR
The ad request failed due to a network error.
-
TIMEOUT
public static final ResultCode TIMEOUT
The ad request took longer than set time out
-
NO_BIDS
public static final ResultCode NO_BIDS
No bids available from demand source
-
PREBID_SERVER_ERROR
public static final ResultCode PREBID_SERVER_ERROR
Prebid Server responded with some error messages
-
INVALID_NATIVE_REQUEST
public static final ResultCode INVALID_NATIVE_REQUEST
Missing assets requirement for native ad unit
-
-
Method Detail
-
values
public static ResultCode[] 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 (ResultCode c : ResultCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResultCode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-