AdErrorCode enum
The types of errors that can be encountered when loading an ad.
Values
- apiError → const AdErrorCode
-
Generic invalid usage of the API.
- adsPlayerNotProvided → const AdErrorCode
-
Ads player was not provided.
- adsRequestNetworkError → const AdErrorCode
-
There was a problem requesting ads from the server.
- adslotNotVisible → const AdErrorCode
-
The ad slot is not visible on the page.
- companionAdLoadingFailed → const AdErrorCode
-
There was a problem requesting ads from the server.
- contentPlayheadMissing → const AdErrorCode
-
Content playhead was not passed in, but list of ads has been returned from the server.
- failedToRequestAds → const AdErrorCode
-
There was a problem requesting ads from the server.
- failedLoadingAd → const AdErrorCode
-
There was an error loading the ad.
- internalError → const AdErrorCode
-
An error internal to the SDK occurred.
More information may be available in the details.
- invalidArguments → const AdErrorCode
-
Invalid arguments were provided to SDK methods.
- osRuntimeTooOld → const AdErrorCode
-
The version of the runtime is too old.
- overlayAdLoadingFailed → const AdErrorCode
-
An overlay ad failed to load.
- overlayAdPlayingFailed → const AdErrorCode
-
An overlay ad failed to render.
- playlistNoContentTracking → const AdErrorCode
-
Ads list was returned but ContentProgressProvider was not configured.
- playlistMalformedResponse → const AdErrorCode
-
Ads list response was malformed.
- requiredListenersNotAdded → const AdErrorCode
-
Listener for at least one of the required vast events was not added.
- streamInitializationFailed → const AdErrorCode
-
There was an error initializing the stream.
- unexpectedAdsLoadedEvent → const AdErrorCode
-
Ads loader sent ads loaded event when it was not expected.
- unknownAdResponse → const AdErrorCode
-
The ad response was not understood and cannot be parsed.
- unknownError → const AdErrorCode
-
An unexpected error occurred and the cause is not known.
Refer to the inner error for more information.
- vastAssetNotFound → const AdErrorCode
-
No assets were found in the VAST ad response.
- vastEmptyResponse → const AdErrorCode
-
A VAST response containing a single
- vastLinearAssetMismatch → const AdErrorCode
-
Assets were found in the VAST ad response for a linear ad, but none of them matched the video player's capabilities.
- vastLoadTimeout → const AdErrorCode
-
At least one VAST wrapper ad loaded successfully and a subsequent wrapper or inline ad load has timed out.
- vastMalformedResponse → const AdErrorCode
-
The ad response was not recognized as a valid VAST ad.
- vastMediaLoadTimeout → const AdErrorCode
-
Failed to load media assets from a VAST response.
The default timeout for media loading is 8 seconds.
- vastNonlinearAssetMismatch → const AdErrorCode
-
Assets were found in the VAST ad response for a nonlinear ad, but none of them matched the video player's capabilities.
- vastNoAdsAfterWrapper → const AdErrorCode
-
No Ads VAST response after one or more wrappers.
- vastTooManyRedirects → const AdErrorCode
-
The maximum number of VAST wrapper redirects has been reached.
- vastTraffickingError → const AdErrorCode
-
Trafficking error.
Video player received an ad type that it was not expecting and/or cannot display.
- vastInvalidUrl → const AdErrorCode
-
At least one VAST wrapper loaded and a subsequent wrapper or inline ad load has resulted in a 404 response code.
- videoPlayError → const AdErrorCode
-
There was an error playing the video ad.
- videoElementUsed → const AdErrorCode
-
Another VideoAdsManager is still using the video.
It must be unloaded before another ad can play on the same element.
- videoElementRequired → const AdErrorCode
-
A video element was not specified where it was required.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
AdErrorCode> - A constant List of the values in this enum, in order of their declaration.