PreloadCallbackV2

abstract class PreloadCallbackV2


Callback for receiving preloading lifecycle events.

Summary

Public constructors

Public functions

Unit
onAdFailedToPreload(preloadId: String!, adError: AdError!)

Called when an ad failed to load for a given preload ID.

Unit
onAdPreloaded(preloadId: String!, responseInfo: ResponseInfo?)

Called when a new ad is available for the given preload ID.

Unit
onAdsExhausted(preloadId: String!)

Called when the last available ad is exhausted for the given preload ID.

Public constructors

PreloadCallbackV2

PreloadCallbackV2()

Public functions

onAdFailedToPreload

fun onAdFailedToPreload(preloadId: String!, adError: AdError!): Unit

Called when an ad failed to load for a given preload ID.

Parameters
preloadId: String!

The ads's preload ID.

adError: AdError!

The error that occurred while loading the ad.

onAdPreloaded

fun onAdPreloaded(preloadId: String!, responseInfo: ResponseInfo?): Unit

Called when a new ad is available for the given preload ID.

Parameters
preloadId: String!

The ads's preload ID.

responseInfo: ResponseInfo?

The ad's response info.

onAdsExhausted

fun onAdsExhausted(preloadId: String!): Unit

Called when the last available ad is exhausted for the given preload ID.

Parameters
preloadId: String!

The ads's preload ID.