Class: AdErrorEvent

Enumeration

Type

constant   static

string

Types of AdErrorEvents

Value

AD_ERROR

Fired when an error occurred while the ad was loading or playing.

Property

Type

constant   static

string

Types of AdErrorEvents

Value

AD_ERROR

Fired when an error occurred while the ad was loading or playing.

Methods

getError

getError() returns (null or tsickle_ad_error_2.AdError)

Returns

(null or non-null tsickle_ad_error_2.AdError) The AdError that caused this event.

getUserRequestContext

getUserRequestContext() returns (null or 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 or non-null Object) Object that was provided during ads request.