AI-generated Key Takeaways
-
This documentation describes the
AdErrorEvent
, which is triggered when an error occurs during the loading of an ad from Google or DoubleClick servers. -
The
AdErrorEvent
extends theImaEvent
and can be registered onAdsLoader
andAdsManager
types. -
The
getError
method returns the specificAdError
that caused the event. -
The
getUserRequestContext
method retrieves an object that was provided during the ads load request, enabling correlation between the response and the request. -
Inherited methods such as
preventDefault
andstopPropagation
are available, along with inherited properties likecurrentTarget
,target
, andtype
.
Properties | |
---|---|
current
|
Deprecated.
Inherited from
|
target
|
The object on which the event was raised (and to which a listener was added).
Inherited from
|
type
|
Inherited from
|
Methods | |
---|---|
get
|
Returns the AdError that caused this event. |
get
|
During ads load request it is possible to provide an object that is available once
the ads load is complete or fails.
|
prevent
|
Deprecated.
Inherited from
|
Properties
Optional
currentTarget
currentTarget?: object
Optional
target
target?: object
type
type: string
Methods
getError
getUserRequestContext
getUserRequestContext(): object
Returns | |
---|---|
object
|
Object that was provided during ads request. |
preventDefault
preventDefault(): void