Hey everyone,
Lsat night, my first iOS game and first iAd application was approved, awesome!
I noticed that not a single ad is displayed when playing the game at all. My debug builds all properly display the test ads, so I presume the code is correct. The iAd module is showing that my app is "Live" and it shows it as having 0 requests.
I found a couple threads of other people with the same issue:
https://devforums.apple.com/message/951498#951498
https://devforums.apple.com/message/948020#948020
http://stackoverflow.com/questions/20894379/iad-banner-is-not-showing-in-the-approved-iphone-app
http://stackoverflow.com/questions/22314020/iad-no-requests-test-ads-displayed-fine-previously
The consensus is (not confirmed) that after your app is put in the store, the iAd team reviews your app, so it may take a few days longer. If that is the case, why does the iAd module say the app is receiving "Live Ads"? Does anyone have experience with iAds and can chime in?
I am just trying to figure out if I need to update my code because I didn't do something right or not....
In my ViewController, I have:
Then in viewDidLoad (ignore the non-constants, I forgot to pull them as constants before submitting). The game is landscape only and this just puts the add on the bottom:
Then my delegate methods:
Lsat night, my first iOS game and first iAd application was approved, awesome!
I noticed that not a single ad is displayed when playing the game at all. My debug builds all properly display the test ads, so I presume the code is correct. The iAd module is showing that my app is "Live" and it shows it as having 0 requests.
I found a couple threads of other people with the same issue:
https://devforums.apple.com/message/951498#951498
https://devforums.apple.com/message/948020#948020
http://stackoverflow.com/questions/20894379/iad-banner-is-not-showing-in-the-approved-iphone-app
http://stackoverflow.com/questions/22314020/iad-no-requests-test-ads-displayed-fine-previously
The consensus is (not confirmed) that after your app is put in the store, the iAd team reviews your app, so it may take a few days longer. If that is the case, why does the iAd module say the app is receiving "Live Ads"? Does anyone have experience with iAds and can chime in?
I am just trying to figure out if I need to update my code because I didn't do something right or not....
In my ViewController, I have:
Code:
@interface MainViewController()
@property (strong, nonatomic) ADBannerView *adView;
@end
Then in viewDidLoad (ignore the non-constants, I forgot to pull them as constants before submitting). The game is landscape only and this just puts the add on the bottom:
Code:
// setup iAd
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
self.adView = [[ADBannerView alloc] initWithFrame:CGRectMake(0, 288, 480, 32)];
} else {
self.adView = [[ADBannerView alloc] initWithFrame:CGRectMake(0, 702, 1024, 66)];
}
self.adView.delegate = self;
Then my delegate methods:
Code:
- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
[banner removeFromSuperview];
}
- (void)bannerViewActionDidFinish:(ADBannerView *)banner {
[self resumeGame];
}
- (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave {
[self pauseGame];
return YES;
}
- (void)bannerViewDidLoadAd:(ADBannerView *)banner {
[self.view addSubview:banner];
}
- (void)bannerViewWillLoadAd:(ADBannerView *)banner {
}
Last edited: