Banner Ads
fun createBanner_320x50(activity : Any?) {
banner = BIDBanner(activity, BIDAdFormat.banner_320x50)
banner.setBannerViewDelegate(bannerShowDelegate)
}
fun createBanner_300x250(activity : Any?) {
banner = BIDBanner(activity, BIDAdFormat.banner_300x250)
banner.setBannerViewDelegate(bannerShowDelegate)
}
fun createBanner_728x90(activity : Any?) {
banner = BIDBanner(activity, BIDAdFormat.banner_728x90)
banner.setBannerViewDelegate(bannerShowDelegate)
}//BIDBannerShow protocol methods
var bannerShow: BIDBannerShow? = object : BIDBannerShow {
override fun load(info: BIDAdInfo, adView: BIDBanner) {
print("Banner - adViewDidLoadAd. AdView: $adView, AdInfo: $info")
}
override fun display(info: BIDAdInfo, adView: BIDBanner) {
print("Banner - didDisplayAd. AdView: $adView, AdInfo: $info")
}
override fun failToDisplay(info: BIDAdInfo, adView: BIDBanner, error: String) {
print("Banner - didFailToDisplayAd. AdView: $adView, Error:$errors")
}
override fun click(info: BIDAdInfo, adView: BIDBanner) {
print("Banner - didClicked. AdView: $adView, AdInfo: $info")
}
override fun allNetworksFailedToDisplay(error: String) {
print("Banner - allNetworksFailedToDisplayAd - error: $error")
}
}Stopping and Starting Auto-Refresh
Destroying Banners
Last updated