onAdCached

abstract fun onAdCached(placementName: String, loadId: String, winningBidInfo: Map<String, String>, error: ChartboostMediationAdException?)

Called when an ad is cached or fails to cache.

Parameters

placementName

Indicates which placement cached the ad.

loadId

A unique identifier for this load request.

winningBidInfo

Map of winning bid information such as price.

error

null if the cache was successful, an error if it failed to cache.


open fun onAdCached(placementName: String, loadId: String, winningBidInfo: Map<String, String>, error: ChartboostMediationAdException?, bannerSize: Size)

Called when an ad is cached or fails to cache. By default this overload calls the function without the bannerSize parameter.

Parameters

placementName

Indicates which placement cached the ad.

loadId

A unique identifier for this load request.

winningBidInfo

Map of winning bid information such as price.

error

null if the cache was successful, an error if it failed to cache.

bannerSize

the size of banner in dp as provided by the partner. The requested size will be used as a fallback when a size is not available from the partner.