AdErrorEvent

interface AdErrorEvent


An event raised when there is an error loading or playing ads.

Summary

Nested types

Interface for classes that will listen to AdErrorEvents.

Public functions

AdError!

The AdError that caused this event.

Any!

Returns the user-provided object that is associated with the ads request.

Public functions

getError

fun getError(): AdError!

The AdError that caused this event.

getUserRequestContext

fun getUserRequestContext(): Any!

Returns the user-provided object that is associated with the ads request. During ad loading request, it is possible to provide an object that is available once the ad load is complete or fails. This should be provided using AdsRequest.setUserRequestContext at ad request time. This object can be used to identify the request that caused the error.