Android SDK Version
  • java.lang.Object
    • com.facebook.ads.AdError

public class AdError
extends java.lang.Object
AdError contains the error information returned by Facebook.
Since:
4.6
Constructor Summary
Constructor and Description
AdError(int errorCode, java.lang.String errorMessage)
Constructs an AdError using the given error code and error message
Method Summary
Modifier and TypeMethod and Description
intgetErrorCode()
Gets the error code
java.lang.StringgetErrorMessage()
Gets the error message
static AdErrorinternalError(int errorCode) 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

NETWORK_ERROR_CODE

public static final int NETWORK_ERROR_CODE

NO_FILL_ERROR_CODE

public static final int NO_FILL_ERROR_CODE

LOAD_TOO_FREQUENTLY_ERROR_CODE

public static final int LOAD_TOO_FREQUENTLY_ERROR_CODE

SERVER_ERROR_CODE

public static final int SERVER_ERROR_CODE

INTERNAL_ERROR_CODE

public static final int INTERNAL_ERROR_CODE

CACHE_ERROR_CODE

public static final int CACHE_ERROR_CODE

INTERNAL_ERROR_2003

public static final int INTERNAL_ERROR_2003

INTERNAL_ERROR_2004

public static final int INTERNAL_ERROR_2004

INTERNAL_ERROR_2006

public static final int INTERNAL_ERROR_2006

REMOTE_ADS_SERVICE_ERROR

public static final int REMOTE_ADS_SERVICE_ERROR

INTERSTITIAL_AD_TIMEOUT

public static final int INTERSTITIAL_AD_TIMEOUT

BROKEN_MEDIA_ERROR_CODE

public static final int BROKEN_MEDIA_ERROR_CODE

MEDIATION_ERROR_CODE

public static final int MEDIATION_ERROR_CODE

MEDIAVIEW_MISSING_ERROR_CODE

public static final int MEDIAVIEW_MISSING_ERROR_CODE

ICONVIEW_MISSING_ERROR_CODE

public static final int ICONVIEW_MISSING_ERROR_CODE

AD_ASSETS_UNSUPPORTED_TYPE_ERROR_CODE

public static final int AD_ASSETS_UNSUPPORTED_TYPE_ERROR_CODE

SHOW_CALLED_BEFORE_LOAD_ERROR_CODE

public static final int SHOW_CALLED_BEFORE_LOAD_ERROR_CODE

LOAD_CALLED_WHILE_SHOWING_AD

public static final int LOAD_CALLED_WHILE_SHOWING_AD

CLEAR_TEXT_SUPPORT_NOT_ALLOWED

public static final int CLEAR_TEXT_SUPPORT_NOT_ALLOWED

INCORRECT_STATE_ERROR

public static final int INCORRECT_STATE_ERROR

MISSING_DEPENDENCIES_ERROR

public static final int MISSING_DEPENDENCIES_ERROR

NETWORK_ERROR

public static final AdError NETWORK_ERROR

NO_FILL

public static final AdError NO_FILL

LOAD_TOO_FREQUENTLY

public static final AdError LOAD_TOO_FREQUENTLY

SERVER_ERROR

public static final AdError SERVER_ERROR

INTERNAL_ERROR

public static final AdError INTERNAL_ERROR

CACHE_ERROR

public static final AdError CACHE_ERROR

MEDIATION_ERROR

public static final AdError MEDIATION_ERROR

MISSING_PROPERTIES

@Deprecated
public static final AdError MISSING_PROPERTIES
Deprecated. 

BROKEN_MEDIA_ERROR

public static final AdError BROKEN_MEDIA_ERROR

AD_ASSETS_UNSUPPORTED_TYPE_ERROR

public static final AdError AD_ASSETS_UNSUPPORTED_TYPE_ERROR

SHOW_CALLED_BEFORE_LOAD_ERROR

public static final AdError SHOW_CALLED_BEFORE_LOAD_ERROR
Constructor Detail

AdError

public AdError(int errorCode,
               java.lang.String errorMessage)
Constructs an AdError using the given error code and error message
Parameters:
errorCode - the error code
errorMessage - the error message
Since:
4.6
Method Detail

getErrorCode

public int getErrorCode()
Gets the error code
Returns:
the error code
Since:
4.6

getErrorMessage

public java.lang.String getErrorMessage()
Gets the error message
Returns:
the error message
Since:
4.6

internalError

public static AdError internalError(int errorCode)