Packagecom.distriqt.extension.adverts
Classpublic class ErrorCode
InheritanceErrorCode Inheritance Object

This class defines common error codes



Public Constants
 ConstantDefined By
  AD_ALREADY_USED : int = 1019
[static] Will not send request because the ad object has already been used
ErrorCode
  APP_ID_MISSING : int = 8
[static] The ad request was not made due to a missing app ID
ErrorCode
  ERROR_CODE_INTERNAL_ERROR : int = 0
[static]
ErrorCode
  ERROR_CODE_INVALID_REQUEST : int = 1
[static]
ErrorCode
  ERROR_CODE_NETWORK_ERROR : int = 2
[static]
ErrorCode
  ERROR_CODE_NO_FILL : int = 3
[static]
ErrorCode
  INTERNAL_ERROR : int = 0
[static] Something happened internally; for instance, an invalid response was received from the ad server.
ErrorCode
  INVALID_AD_STRING : int = 11
[static] The ad string is invalid.
ErrorCode
  INVALID_REQUEST : int = 1
[static] The ad request was invalid; for instance, the ad unit ID was incorrect.
ErrorCode
  MEDIATION_ADAPTER_ERROR : int = 1008
[static] Error finding or creating a mediation ad network adapter
ErrorCode
  MEDIATION_DATA_ERROR : int = 1007
[static] The mediation response was invalid
ErrorCode
  MEDIATION_INVALID_ADSIZE : int = 1010
[static] Attempting to pass an invalid ad size to an adapter
ErrorCode
  MEDIATION_NO_FILL : int = 9
[static] The mediation adapter did not fill the ad request.
ErrorCode
  NETWORK_ERROR : int = 2
[static] The ad request was unsuccessful due to network connectivity.
ErrorCode
  NO_FILL : int = 3
[static] The ad request was successful, but no ad was returned due to lack of ad inventory.
ErrorCode
  OS_VERSION_TOO_LOW : int = 1004
[static] The current device's OS is below the minimum required version
ErrorCode
  RECEIVED_INVALID_RESPONSE : int = 1013
[static] Received invalid response
ErrorCode
  REQUEST_ID_MISMATCH : int = 10
[static] The request ID in the ad string is not found
ErrorCode
  SERVER_ERROR : int = 1003
[static] The ad server experienced a failure processing the request
ErrorCode
  TIMEOUT : int = 1005
[static] The request was unable to be loaded before being timed out
ErrorCode
  UNKNOWN : int = -1
[static] An unknown error occurred.
ErrorCode
Constant Detail
AD_ALREADY_USEDConstant
public static const AD_ALREADY_USED:int = 1019

Will not send request because the ad object has already been used

APP_ID_MISSINGConstant 
public static const APP_ID_MISSING:int = 8

The ad request was not made due to a missing app ID

ERROR_CODE_INTERNAL_ERRORConstant 
public static const ERROR_CODE_INTERNAL_ERROR:int = 0

ERROR_CODE_INVALID_REQUESTConstant 
public static const ERROR_CODE_INVALID_REQUEST:int = 1

ERROR_CODE_NETWORK_ERRORConstant 
public static const ERROR_CODE_NETWORK_ERROR:int = 2

ERROR_CODE_NO_FILLConstant 
public static const ERROR_CODE_NO_FILL:int = 3

INTERNAL_ERRORConstant 
public static const INTERNAL_ERROR:int = 0

Something happened internally; for instance, an invalid response was received from the ad server. Newly created Ad Units can take upto 2 hours to become active. Any Ad requests from newly created Ad Units would also receive Error Code 0 in response to Ad requests until they are ready to serve live ads.

INVALID_AD_STRINGConstant 
public static const INVALID_AD_STRING:int = 11

The ad string is invalid. For example, there is no request ID in the ad string

INVALID_REQUESTConstant 
public static const INVALID_REQUEST:int = 1

The ad request was invalid; for instance, the ad unit ID was incorrect. This commonly suggests that the Ad Request implementation is not as per the SDK's requirements.

MEDIATION_ADAPTER_ERRORConstant 
public static const MEDIATION_ADAPTER_ERROR:int = 1008

Error finding or creating a mediation ad network adapter

MEDIATION_DATA_ERRORConstant 
public static const MEDIATION_DATA_ERROR:int = 1007

The mediation response was invalid

MEDIATION_INVALID_ADSIZEConstant 
public static const MEDIATION_INVALID_ADSIZE:int = 1010

Attempting to pass an invalid ad size to an adapter

MEDIATION_NO_FILLConstant 
public static const MEDIATION_NO_FILL:int = 9

The mediation adapter did not fill the ad request.

NETWORK_ERRORConstant 
public static const NETWORK_ERROR:int = 2

The ad request was unsuccessful due to network connectivity. This could be due to a user’s phone switching networks or network disturbances distorting the communication between the app and the Ad Server. Some Telecom providers may also limit specific traffic due to policy, which can also lead to such an error.

NO_FILLConstant 
public static const NO_FILL:int = 3

The ad request was successful, but no ad was returned due to lack of ad inventory. Advertisers can target specific regions, platforms and user profiles based on business relevance, which can sometimes result in lower availability of Ads for a particular region or user profile. Error code suggests that the implementation is correct, and that the Ad Request was not filled because of lack of availability of a suitable Ad at that particular instant of time when an Ad Request was sent from the app. Policy related restrictions on certain Apps or Ad Units will also lead to Error Code 3 being returned in response to Ad Requests.

OS_VERSION_TOO_LOWConstant 
public static const OS_VERSION_TOO_LOW:int = 1004

The current device's OS is below the minimum required version

RECEIVED_INVALID_RESPONSEConstant 
public static const RECEIVED_INVALID_RESPONSE:int = 1013

Received invalid response

REQUEST_ID_MISMATCHConstant 
public static const REQUEST_ID_MISMATCH:int = 10

The request ID in the ad string is not found

SERVER_ERRORConstant 
public static const SERVER_ERROR:int = 1003

The ad server experienced a failure processing the request

TIMEOUTConstant 
public static const TIMEOUT:int = 1005

The request was unable to be loaded before being timed out

UNKNOWNConstant 
public static const UNKNOWN:int = -1

An unknown error occurred.