The delegate should implement the following methods:
var fullShow : BIDFullShow? = object : BIDFullShow {
override fun display(info: BIDAdInfo) {
print("Interstitial - didDisplayAd. AdInfo: $adInfo")
}
override fun click(info: BIDAdInfo) {
print("Interstitial - didClickAd. AdInfo: $adInfo")
}
override fun hide(info: BIDAdInfo) {
print("Interstitial - didHideAd. AdInfo: $adInfo")
}
override fun failToDisplay(info: BIDAdInfo, error: String) {
print("Interstitial - failToDisplay. All networks fail to display - error: $error")
}
override fun allNetworksFailedToDisplay() {
print("Interstitial - allNetworksDidFailToDisplayAd." )
}
}
Stopping and Starting Auto-Load
By default, Interstitials preload ads before any load attempt. So an Interstitial can use already preloaded ads instead of waiting on a manual load call to load new ads. To disable this feature you need to call the following method:
interstitial.setAutoload(false)
Once you disable autoload, you should load ads manually every time you need them to show: