I am trying to put an iAd banner on my iPhone app. Here is where I declare the banner ad:
- (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];
}
When I test on the simulator, the test ad shows up straight away. When I test on my device, nothing shows up.
I have recently registered with Apple's iAd system, but when I try look look at the iAd section of iTunes Connect, it tells me that the iAd network is currently unavailable. Is this why the test ad won't show up on my device? If so, why is it still showing up on the simulator?