Interface AdErrorEvent


Extends ImaEvent
This event is raised when an error occurs when loading an ad from the Google or DoubleClick servers. The types on which you can register for the event are AdsLoader and AdsManager.
Properties
currentTarget?
target?
type
Methods
getError
Returns the AdError that caused this event.
getUserRequestContext
During ads load request it is possible to provide an object that is available once the ads load is complete or fails.
preventDefault
stopPropagation

Properties


Optional currentTarget

currentTarget?: null | object

Optional target

target?: null | object

type

type: string

Methods


getError

getError(): null | AdError
Returns the AdError that caused this event.
Returns
null | AdError The AdError that caused this event.

getUserRequestContext

getUserRequestContext(): null | object
During ads load request it is possible to provide an object that is available once the ads load is complete or fails. One possible use case: relate ads response to a specific request and use user request content object as the key for identifying the response. If an error occurred during ads load, you can find out which request caused this failure.
Returns
null | object Object that was provided during ads request.

preventDefault

preventDefault(): void

stopPropagation

stopPropagation(): void