google.ima. AdErrorEvent
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.
Enumeration
Type
string
Types of AdErrorEvents
Value |
|
---|---|
AD_ERROR |
Fired when an error occurred while the ad was loading or playing. |
Property
Type
string
Types of AdErrorEvents
Value |
|
---|---|
AD_ERROR |
Fired when an error occurred while the ad was loading or playing. |
Methods
getError
getError() returns AdError
- Returns
-
nullable AdError
The AdError that caused this event.
getUserRequestContext
getUserRequestContext() returns 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
-
nullable Object
that was provided during ads request.