IAd appears on the simulator, but not on the device

When I run the application on the simulator (4.0), iAd appears as a test ad. But when I deployed the application to ipod (4.0), iAd does not appear, even as test ads.

Please help me as soon as possible ... I'm from India ...

Yours faithfully...

0
source share
4 answers

Where are you from? Perhaps iAd is not available in your country!

Make sure your device is connected to the Internet (WiFi or 3G).

To implement iAd in your application, you need to import the iAd infrastructure into your project and # include it in the ".h" ViewController, where the ad will be displayed. For instance:

YourViewController.h

#import <UIKit/UIKit.h> #import <iAd/iAd.h> 
+2
source

IAds are currently not available in India.

IAd ads are currently serving apps in the US, USA, Germany, Italy, Spain, France, and Japan.

Src: https://developer.apple.com/iad/

+1
source

Is it possible that there are no advertisements that are available for display, or perhaps the device does not have an Internet connection?

0
source

In the simulator (and in development on the device) iAds will randomly load. They do this so you can check your iAd error handling. Deploy the iAd delegate methods and see what happens.

I created a UIButton / iAd replacement class that will automatically revert to the custom ad that you embedded in yourself. If you look at the code, you can see how to implement delegates. https://github.com/blladnar/RBAdView

0
source

All Articles