Enum ResultCode
-
- All Implemented Interfaces:
public enum ResultCodeResult code for fetch demand.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SUCCESSThe attaching keywords was successful, which means there was demand and the demand was set on the ad object.
INVALID_ACCOUNT_IDThe ad request failed due to empty account id
INVALID_CONFIG_IDThe ad request failed due to empty config id on the ad unit
INVALID_HOST_URLThe ad request failed because a CUSTOM host used without providing host url
INVALID_SIZEFor banner view, we don't support multi-size request
INVALID_CONTEXTUnable to obtain the Application Context, check if you have set it through PrebidMobile.setApplicationContext()
INVALID_AD_OBJECTCurrently, we only support Banner, Interstitial, DFP Banner, Interstitial
NETWORK_ERRORThe ad request failed due to a network error.
TIMEOUTThe ad request took longer than set time out
NO_BIDSNo bids available from demand source
PREBID_SERVER_ERRORPrebid Server responded with some error messages
INVALID_NATIVE_REQUESTMissing assets requirement for native ad unit
INVALID_PREBID_REQUEST_OBJECTCheck @org.prebid.mobile.api.original.PrebidRequest object that you put into fetchDemand().
-
Method Summary
Modifier and Type Method Description static Array<ResultCode>values()Returns an array containing the constants of this enum type, in the order they're declared. static ResultCodevalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<ResultCode> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static ResultCode 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.)
- Returns:
the enum constant with the specified name
-
-
-
-