Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iAd interstitial not working on device

I am setting up my iAd interstitial like mentioned here.

When I run my app on simulator, the interstitial runs fine. But when I try it on my test device (iPhone 4s), I get this error:

Domain=ADErrorDomain 
Code=3 
"The operation couldn’t be completed. Ad inventory unavailable"

First I thought the iAd network may be down or something, but then I have tried this maybe like a 1000 times now over the last 2/3 weeks. Every single time, I get the exact same error on device, but it works just fine on the simulator. This is definitely not a coincidence, or Apple iAd network issue.

I searched online and found similar questions like this, this, this and this, but none helped. What am I doing wrong? Is this expected? Are test interstitial ads not served on test devices? iAd test banner ads are working fine on simulator and device. On my itunes-connect I have accepted all the agreements, etc so all is good over there. Also, on my test device the Settings > Debug > Fill Rate is set to 100%.

like image 706
rgamber Avatar asked Jul 22 '15 20:07

rgamber


1 Answers

This will happen occasionally, if it works in simulator then your ads will be just fine. You can make this happen less often by going into Settings -> Developer and changing this setting to 100%

Developer settings

like image 156
Swinny89 Avatar answered Oct 31 '22 15:10

Swinny89