AdError.AdErrorCode

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 functions

java-static AdError.AdErrorCode!
getErrorCodeByNumber(errorNumber: Int)
String!
java-static AdError.AdErrorCode!
valueOf(name: String!)

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

java-static Array<AdError.AdErrorCode!>!

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

Public properties

Int

Enum Values

ADS_PLAYER_NOT_PROVIDED

val AdError.AdErrorCode.ADS_PLAYER_NOT_PROVIDEDAdError.AdErrorCode

Ads player was not provided.

ADS_REQUEST_NETWORK_ERROR

val AdError.AdErrorCode.ADS_REQUEST_NETWORK_ERRORAdError.AdErrorCode

There was a problem requesting ads from the server.

COMPANION_AD_LOADING_FAILED

val AdError.AdErrorCode.COMPANION_AD_LOADING_FAILEDAdError.AdErrorCode

A companion ad failed to load or render.

FAILED_TO_REQUEST_ADS

val AdError.AdErrorCode.FAILED_TO_REQUEST_ADSAdError.AdErrorCode

There was a problem requesting ads from the server.

INTERNAL_ERROR

val AdError.AdErrorCode.INTERNAL_ERRORAdError.AdErrorCode

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

INVALID_ARGUMENTS

val AdError.AdErrorCode.INVALID_ARGUMENTSAdError.AdErrorCode

Invalid arguments were provided to SDK methods.

OVERLAY_AD_LOADING_FAILED

val AdError.AdErrorCode.OVERLAY_AD_LOADING_FAILEDAdError.AdErrorCode

An overlay ad failed to load.

OVERLAY_AD_PLAYING_FAILED

val AdError.AdErrorCode.OVERLAY_AD_PLAYING_FAILEDAdError.AdErrorCode

An overlay ad failed to render.

PLAYLIST_NO_CONTENT_TRACKING

val AdError.AdErrorCode.PLAYLIST_NO_CONTENT_TRACKINGAdError.AdErrorCode

Ads list was returned but ContentProgressProvider was not configured.

UNEXPECTED_ADS_LOADED_EVENT

val AdError.AdErrorCode.UNEXPECTED_ADS_LOADED_EVENTAdError.AdErrorCode

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

UNKNOWN_AD_RESPONSE

val AdError.AdErrorCode.UNKNOWN_AD_RESPONSEAdError.AdErrorCode

The ad response was not understood and cannot be parsed.

UNKNOWN_ERROR

val AdError.AdErrorCode.UNKNOWN_ERRORAdError.AdErrorCode

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

VAST_ASSET_NOT_FOUND

val AdError.AdErrorCode.VAST_ASSET_NOT_FOUNDAdError.AdErrorCode

No assets were found in the VAST ad response.

VAST_EMPTY_RESPONSE

val AdError.AdErrorCode.VAST_EMPTY_RESPONSEAdError.AdErrorCode

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

VAST_LINEAR_ASSET_MISMATCH

val AdError.AdErrorCode.VAST_LINEAR_ASSET_MISMATCHAdError.AdErrorCode

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

val AdError.AdErrorCode.VAST_LOAD_TIMEOUTAdError.AdErrorCode

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

VAST_MALFORMED_RESPONSE

val AdError.AdErrorCode.VAST_MALFORMED_RESPONSEAdError.AdErrorCode

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

VAST_MEDIA_LOAD_TIMEOUT

val AdError.AdErrorCode.VAST_MEDIA_LOAD_TIMEOUTAdError.AdErrorCode

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

VAST_NONLINEAR_ASSET_MISMATCH

val AdError.AdErrorCode.VAST_NONLINEAR_ASSET_MISMATCHAdError.AdErrorCode

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

val AdError.AdErrorCode.VAST_NO_ADS_AFTER_WRAPPERAdError.AdErrorCode

No Ads VAST response after one or more wrappers.

VAST_TOO_MANY_REDIRECTS

val AdError.AdErrorCode.VAST_TOO_MANY_REDIRECTSAdError.AdErrorCode

The maximum number of VAST wrapper redirects has been reached.

VAST_TRAFFICKING_ERROR

val AdError.AdErrorCode.VAST_TRAFFICKING_ERRORAdError.AdErrorCode

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

VIDEO_PLAY_ERROR

val AdError.AdErrorCode.VIDEO_PLAY_ERRORAdError.AdErrorCode

There was an error playing the video ad.

Public functions

getErrorCodeByNumber

java-static fun getErrorCodeByNumber(errorNumber: Int): AdError.AdErrorCode!

toString

fun toString(): String!

valueOf

java-static fun valueOf(name: String!): AdError.AdErrorCode!

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

java-static fun values(): Array<AdError.AdErrorCode!>!

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
Array<AdError.AdErrorCode!>!

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

Public properties

errorNumber

val errorNumberInt