views:

352

answers:

1

I'm having a bit of a problem testing iAd on the iPhone and on the simulator. The methods that are called when the ad is loaded or failed don't seem to be called when testing and Apple doesn't want apps to show empty frames when there are no ads to display.

Basically, what I did was to hide the AdView and show it only when the bannerViewDidLoadAd: is called (if the view isn't being shown already). I've placed some NSLogs on both the bannerViewDidLoadAd: and bannerView:didFailToReceiveAdWithError:, but when I run on both the simulator or on the device, nothing is ever logged.

Is this the normal behavior when simulating/testing an app with iAds? Is there any way of making sure it's actually working properly?

Thanks for your time.

A: 

Are you sure you've set the delegate on your iAd to point to the ViewController or class containing the bannerViewDidLoadAd and bannerView:didFailToReceiveAdWithError methods?

jkilbride
Great... couldn't have been more obvious, lol. Thanks.
Tiago