Search code examples
iphonesdkimplementationiadads

Correct practice for iAd integration?


I've recently been implementing the iAd framework into my app and although it all works fine and it displays the test ads as it should, I was just wondering whether or not the method of implementation I've been using is the best practice as I've seen several people do this in different ways and in my personal opinion - unnecessarily complex.

Currently I just have an adbannerview as an outlet and then using the following code I load it or hide it depending on whether the ad is fulfilled, as Apple require.

-(void)bannerViewDidLoadAd:(ADBannerView *)banner {
    adView.hidden = FALSE;
}

-(void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
    adView.hidden = TRUE;
}

I know it's nothing fancy in terms of animation but from what I've read of the 'interface guidelines' there's no need to animate the ads as they appear or disappear.


Solution

  • As far as I know, you don't need to do anything more when presenting an ADBannerView. Of course, as you said, animating it is fancier, but there is no problem on presenting it as you do.

    If you want to present it animated on future versions of your app, here you can find a great tutorial.

    Hope this helps you!