on Ad Cached
abstract fun onAdCached(placementName: String, loadId: String, winningBidInfo: Map<String, String>, error: ChartboostMediationAdException?)
Called when an ad is cached or fails to cache.
Parameters
placement Name
Indicates which placement cached the ad.
load Id
A unique identifier for this load request.
winning Bid Info
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
placement Name
Indicates which placement cached the ad.
load Id
A unique identifier for this load request.
winning Bid Info
Map of winning bid information such as price.
error
null if the cache was successful, an error if it failed to cache.
banner Size
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.