Im having a little problem with ADBanner
's, I have 3 UIViewController
's and each one have an ADBanner
. I have set up the delegate methods like this:
-(void)bannerViewActionDidFinish:(ADBannerView *)banner {
[UIView beginAnimations:@"animateAdBannerOn" context:nil];
banner.frame = CGRectOffset(banner.frame, 0, 320);
[UIView commitAnimations];
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
NSLog(@"Error: %@", error);
[UIView beginAnimations:@"animateAdBannerOff" context:nil];
banner.frame = CGRectOffset(banner.frame, 0, 320+banner.frame.size.height);
[UIView commitAnimations];
}
In every UIViewController
class file, Im using UIStoryboard
. The delegate is connected properly.
Now the issue.
In the initial ViewController
the ADBanner
loads like it should, but when I click it it the ad loads in fullscreen, but when I click the x button to get out of the ad I get an error from the didFailToReceiveAdWithError
saying: NSLocalizedFailureReason=Loading throttled
and the ADBanner
disappears. This error happens for every ADBanner
. There is 1 more strange thing happening. If I dont click the ad in the initial ViewController
the ADBanners
in the other 2 ViewControllers
the ad doesnt load and gives me the same error from above but 2 times. If i click and dissmisses the ADBanner
in the initial ViewController
the other 2 loads without an error, but the one in the initial does.
To make it short, when the initial ViewControllers
ADBanner
loads the other 2 dont, and when the other 2 loads the initial doesnt
Why is this happening I find this very weird. I read the documentations but I didnt find anything if there was a limit of ADBanners
you can have.