Package org.prebid.mobile
Enum Class ResultCode
- All Implemented Interfaces:
Serializable
,Comparable<ResultCode>
,Constable
Result code for fetch demand.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe ad request failed due to empty account idCurrently, we only support Banner, Interstitial, DFP Banner, InterstitialThe ad request failed due to empty config id on the ad unitUnable to obtain the Application Context, check if you have set it through PrebidMobile.setApplicationContext()The ad request failed because a CUSTOM host used without providing host urlMissing assets requirement for native ad unitCheck @PrebidRequest
object that you put into fetchDemand().For banner view, we don't support multi-size requestThe ad request failed due to a network error.No bids available from demand sourcePrebid Server responded with some error messagesThe attaching keywords was successful, which means there was demand and the demand was set on the ad object.The ad request took longer than set time out -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultCode
Returns the enum constant of this class with the specified name.static ResultCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
The attaching keywords was successful, which means there was demand and the demand was set on the ad object. -
INVALID_ACCOUNT_ID
The ad request failed due to empty account id -
INVALID_CONFIG_ID
The ad request failed due to empty config id on the ad unit -
INVALID_HOST_URL
The ad request failed because a CUSTOM host used without providing host url -
INVALID_SIZE
For banner view, we don't support multi-size request -
INVALID_CONTEXT
Unable to obtain the Application Context, check if you have set it through PrebidMobile.setApplicationContext() -
INVALID_AD_OBJECT
Currently, we only support Banner, Interstitial, DFP Banner, Interstitial -
NETWORK_ERROR
The ad request failed due to a network error. -
TIMEOUT
The ad request took longer than set time out -
NO_BIDS
No bids available from demand source -
PREBID_SERVER_ERROR
Prebid Server responded with some error messages -
INVALID_NATIVE_REQUEST
Missing assets requirement for native ad unit -
INVALID_PREBID_REQUEST_OBJECT
Check @PrebidRequest
object that you put into fetchDemand().
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-