Package org.prebid.mobile.api.data
Enum FetchDemandResult
- java.lang.Object
-
- java.lang.Enum<FetchDemandResult>
-
- org.prebid.mobile.api.data.FetchDemandResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FetchDemandResult>
public enum FetchDemandResult extends java.lang.Enum<FetchDemandResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_ACCOUNT_IDThe ad request failed due to empty account idINVALID_AD_OBJECTGAM views supported onlyINVALID_CONFIG_IDThe ad request failed due to empty config id on the ad unitINVALID_CONTEXTInvalid context passedINVALID_HOST_URLThe ad request failed because a CUSTOM host used without providing host urlINVALID_SIZESize is invalid or missingNETWORK_ERRORThe ad request failed due to a network error.NO_BIDSNo bids available from demand sourceSERVER_ERRORServer 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
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNO_BIDS_MESSAGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FetchDemandResultparseErrorMessage(java.lang.String msg)static FetchDemandResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FetchDemandResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final FetchDemandResult 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 FetchDemandResult INVALID_ACCOUNT_ID
The ad request failed due to empty account id
-
INVALID_CONFIG_ID
public static final FetchDemandResult INVALID_CONFIG_ID
The ad request failed due to empty config id on the ad unit
-
INVALID_SIZE
public static final FetchDemandResult INVALID_SIZE
Size is invalid or missing
-
INVALID_CONTEXT
public static final FetchDemandResult INVALID_CONTEXT
Invalid context passed
-
INVALID_AD_OBJECT
public static final FetchDemandResult INVALID_AD_OBJECT
GAM views supported only
-
INVALID_HOST_URL
public static final FetchDemandResult INVALID_HOST_URL
The ad request failed because a CUSTOM host used without providing host url
-
NETWORK_ERROR
public static final FetchDemandResult NETWORK_ERROR
The ad request failed due to a network error.
-
TIMEOUT
public static final FetchDemandResult TIMEOUT
The ad request took longer than set time out
-
NO_BIDS
public static final FetchDemandResult NO_BIDS
No bids available from demand source
-
SERVER_ERROR
public static final FetchDemandResult SERVER_ERROR
Server responded with some error messages
-
-
Field Detail
-
NO_BIDS_MESSAGE
public static final java.lang.String NO_BIDS_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static FetchDemandResult[] 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 (FetchDemandResult c : FetchDemandResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FetchDemandResult 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
-
parseErrorMessage
public static FetchDemandResult parseErrorMessage(java.lang.String msg)
-
-