While showing a banner, I want the content to be regularly refreshed with new content so that it isn't always the same image shown.
Here is my code for showing and hiding banners:
if bannerView.canShowAd(){
bannerView.showAd(placement: "end_of_level" )
}
bannerView.hideAd()
One way of achieving the regular refreshing would be to create a timer that cyclically shows/hides/shows a banner, but that seems a bit clumsy. Is there a better way of doing this?
You don't have to do anything, the banners are automatically refreshed by the sdk every 30 seconds.