Hey everyone,
Im having trouble getting my adbannerview to hide when a ad fails to load. I've added the banner in IB and linked its delegate to files owner and conformed that class to ADBannerViewDelegate. Im also implementing this delegate method
Code:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
if (self.bannerIsVisible)
{
[UIView beginAnimations:@"animateAdBannerOff" context:NULL];
banner.frame = CGRectOffset(banner.frame, 0, 50);
[UIView commitAnimations];
self.bannerIsVisible = NO;
}
}
This works on the simulator when i turn off my internet connection but on my iphone when i go into aeroplane mode this method never even gets called. Im also finding that bannerViewDidLoadAd doesnt get called either.
anyone else experiencing this? anyone know how to fix it?