AdError.AdErrorCode

public enum AdError.AdErrorCode


The types of error that can be encountered.

Summary

Enum Values

ADS_PLAYER_NOT_PROVIDED

Ads player was not provided.

ADS_REQUEST_NETWORK_ERROR

There was a problem requesting ads from the server.

COMPANION_AD_LOADING_FAILED

A companion ad failed to load or render.

FAILED_TO_REQUEST_ADS

There was a problem requesting ads from the server.

INTERNAL_ERROR

An error internal to the SDK occurred.

INVALID_ARGUMENTS

Invalid arguments were provided to SDK methods.

OVERLAY_AD_LOADING_FAILED

An overlay ad failed to load.

OVERLAY_AD_PLAYING_FAILED

An overlay ad failed to render.

PLAYLIST_NO_CONTENT_TRACKING

Ads list was returned but ContentProgressProvider was not configured.

UNEXPECTED_ADS_LOADED_EVENT

Ads loader sent ads loaded event when it was not expected.

UNKNOWN_AD_RESPONSE

The ad response was not understood and cannot be parsed.

UNKNOWN_ERROR

An unexpected error occurred and the cause is not known.

VAST_ASSET_NOT_FOUND

No assets were found in the VAST ad response.

VAST_EMPTY_RESPONSE

A VAST response containing a single <VAST> tag with no child tags.

VAST_LINEAR_ASSET_MISMATCH

Assets were found in the VAST ad response for a linear ad, but none of them matched the video player's capabilities.

VAST_LOAD_TIMEOUT

At least one VAST wrapper ad loaded successfully and a subsequent wrapper or inline ad load has timed out.

VAST_MALFORMED_RESPONSE

The ad response was not recognized as a valid VAST ad.

VAST_MEDIA_LOAD_TIMEOUT

Failed to load media assets from a VAST response.

VAST_NONLINEAR_ASSET_MISMATCH

Assets were found in the VAST ad response for a nonlinear ad, but none of them matched the video player's capabilities.

VAST_NO_ADS_AFTER_WRAPPER

No Ads VAST response after one or more wrappers.

VAST_TOO_MANY_REDIRECTS

The maximum number of VAST wrapper redirects has been reached.

VAST_TRAFFICKING_ERROR

Trafficking error.

VIDEO_PLAY_ERROR

There was an error playing the video ad.

Public fields

final int

Public methods

static AdError.AdErrorCode
getErrorCodeByNumber(int errorNumber)
int
String
static AdError.AdErrorCode

Returns the enum constant of this type with the specified name.

static AdError.AdErrorCode[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

ADS_PLAYER_NOT_PROVIDED

AdError.AdErrorCode AdError.AdErrorCode.ADS_PLAYER_NOT_PROVIDED

Ads player was not provided.

ADS_REQUEST_NETWORK_ERROR

AdError.AdErrorCode AdError.AdErrorCode.ADS_REQUEST_NETWORK_ERROR

There was a problem requesting ads from the server.

COMPANION_AD_LOADING_FAILED

AdError.AdErrorCode AdError.AdErrorCode.COMPANION_AD_LOADING_FAILED

A companion ad failed to load or render.

FAILED_TO_REQUEST_ADS

AdError.AdErrorCode AdError.AdErrorCode.FAILED_TO_REQUEST_ADS

There was a problem requesting ads from the server.

INTERNAL_ERROR

AdError.AdErrorCode AdError.AdErrorCode.INTERNAL_ERROR

An error internal to the SDK occurred. More information may be available in the details.

INVALID_ARGUMENTS

AdError.AdErrorCode AdError.AdErrorCode.INVALID_ARGUMENTS

Invalid arguments were provided to SDK methods.

OVERLAY_AD_LOADING_FAILED

AdError.AdErrorCode AdError.AdErrorCode.OVERLAY_AD_LOADING_FAILED

An overlay ad failed to load.

OVERLAY_AD_PLAYING_FAILED

AdError.AdErrorCode AdError.AdErrorCode.OVERLAY_AD_PLAYING_FAILED

An overlay ad failed to render.

PLAYLIST_NO_CONTENT_TRACKING

AdError.AdErrorCode AdError.AdErrorCode.PLAYLIST_NO_CONTENT_TRACKING

Ads list was returned but ContentProgressProvider was not configured.

UNEXPECTED_ADS_LOADED_EVENT

AdError.AdErrorCode AdError.AdErrorCode.UNEXPECTED_ADS_LOADED_EVENT

Ads loader sent ads loaded event when it was not expected.

UNKNOWN_AD_RESPONSE

AdError.AdErrorCode AdError.AdErrorCode.UNKNOWN_AD_RESPONSE

The ad response was not understood and cannot be parsed.

UNKNOWN_ERROR

AdError.AdErrorCode AdError.AdErrorCode.UNKNOWN_ERROR

An unexpected error occurred and the cause is not known. Refer to the inner error for more information.

VAST_ASSET_NOT_FOUND

AdError.AdErrorCode AdError.AdErrorCode.VAST_ASSET_NOT_FOUND

No assets were found in the VAST ad response.

VAST_EMPTY_RESPONSE

AdError.AdErrorCode AdError.AdErrorCode.VAST_EMPTY_RESPONSE

A VAST response containing a single <VAST> tag with no child tags.

VAST_LINEAR_ASSET_MISMATCH

AdError.AdErrorCode AdError.AdErrorCode.VAST_LINEAR_ASSET_MISMATCH

Assets were found in the VAST ad response for a linear ad, but none of them matched the video player's capabilities.

VAST_LOAD_TIMEOUT

AdError.AdErrorCode AdError.AdErrorCode.VAST_LOAD_TIMEOUT

At least one VAST wrapper ad loaded successfully and a subsequent wrapper or inline ad load has timed out.

VAST_MALFORMED_RESPONSE

AdError.AdErrorCode AdError.AdErrorCode.VAST_MALFORMED_RESPONSE

The ad response was not recognized as a valid VAST ad.

VAST_MEDIA_LOAD_TIMEOUT

AdError.AdErrorCode AdError.AdErrorCode.VAST_MEDIA_LOAD_TIMEOUT

Failed to load media assets from a VAST response. The default timeout for media loading is 8 seconds.

VAST_NONLINEAR_ASSET_MISMATCH

AdError.AdErrorCode AdError.AdErrorCode.VAST_NONLINEAR_ASSET_MISMATCH

Assets were found in the VAST ad response for a nonlinear ad, but none of them matched the video player's capabilities.

VAST_NO_ADS_AFTER_WRAPPER

AdError.AdErrorCode AdError.AdErrorCode.VAST_NO_ADS_AFTER_WRAPPER

No Ads VAST response after one or more wrappers.

VAST_TOO_MANY_REDIRECTS

AdError.AdErrorCode AdError.AdErrorCode.VAST_TOO_MANY_REDIRECTS

The maximum number of VAST wrapper redirects has been reached.

VAST_TRAFFICKING_ERROR

AdError.AdErrorCode AdError.AdErrorCode.VAST_TRAFFICKING_ERROR

Trafficking error. Video player received an ad type that it was not expecting and/or cannot display.

VIDEO_PLAY_ERROR

AdError.AdErrorCode AdError.AdErrorCode.VIDEO_PLAY_ERROR

There was an error playing the video ad.

Public fields

errorNumber

public final int errorNumber

Public methods

getErrorCodeByNumber

public static AdError.AdErrorCode getErrorCodeByNumber(int errorNumber)

getErrorNumber

public int getErrorNumber()

toString

public String toString()

valueOf

public static AdError.AdErrorCode 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
AdError.AdErrorCode

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

public static AdError.AdErrorCode[] 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
AdError.AdErrorCode[]

an array containing the constants of this enum type, in the order they're declared