If you add an ADBannerView you can detect when it loads an AD from its delegate function:
- (void)bannerViewDidLoadAd:(ADBannerView *)banner {
This can be helpful if you have views below the banner that you need to move or resize when the banner loads.
I coudn't find any way to detect when the banner is disappearing to move back again all the views in place.
The delegate has only these functions:
Detecting When Advertisements Are Loaded
– bannerViewWillLoadAd:
– bannerViewDidLoadAd:
Detecting When a User Interacts With an Advertisement
– bannerViewActionShouldBegin:willLeaveApplication:
– bannerViewActionDidFinish:
Detecting Errors
– bannerView:didFailToReceiveAdWithError:
Nothings seems to get triggered when the banner unloads.
Any way to detect the banner unload or any workarounds? Thanks!
I use
bannerViewDidLoadAd
when a banner is load and so show this banner with an animationAnd I use
didFailToReceiveAdWithError
when the banner is unload (so here, you can add an animation to move your view for example) :