I'm using storyboard, iOS7, xcode 5.1 I'm trying to add the iAD banner. When I try it by developer, testing the xcode project in device or simulator, that works well showing the Test Advertisement!
But when my app is on the App Store, it doesn't show any banner! And I had already enable iAd network in the itunes connect. In the overview: Live: This app is receiving live ads. What am I missing?
In my .h file:
#import <iAd/iAd.h>
@interface ViewController : UIViewController<SceneDelegate, ADBannerViewDelegate>
In my main file:
- (void)viewDidLoad
{
[super viewDidLoad];
self.canDisplayBannerAds = YES;
}
#pragma mark iAd Delegate Methods
-(void)bannerViewDidLoadAd:(ADBannerView *)banner
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[banner setAlpha:1];
[UIView commitAnimations];
}
-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[banner setAlpha:0];
[UIView commitAnimations];
}
In the storyboard, the delegate is connected!