I just ran that code above (well I took out the call to the storyboard.gotoScene() since I didn’t have a scene setup. The first time I ran it I got this:
Mar 9 10:20:23 Rob-Miracles-iPhone AdSheet[1973] <Warning>: [AppDeveloper] Fill rate for development application ‘com.omnigeekmedia.omnitrivia’: 80.0%
Mar 9 10:20:23 Rob-Miracles-iPhone AdSheet[1973] <Warning>: [AppDeveloper] Simulating an inventory-unavailable server response due to development application fill rate. To change the fill rate, see the Developer panel in Settings.
Mar 9 10:20:23 Rob-Miracles-iPhone tmp[1971] <Warning>: The operation couldn’t be completed. Ad inventory unavailable
Mar 9 10:20:23 Rob-Miracles-iPhone tmp[1971] <Warning>: could not get iad
Of course I had to use an AdHoc profile so I’m getting developer ads and I had to use a bundle ID I own that is setup for iAds live. I killed and restarted it and got this:
Mar 9 10:20:45 Rob-Miracles-iPhone AdSheet[1973] <Warning>: [AppDeveloper] Fill rate for development application ‘com.omnigeekmedia.omnitrivia’: 80.0%
Mar 9 10:20:47 Rob-Miracles-iPhone tmp[1974] <Warning>: iad successfully init
And got an ad on my screen. So there are several possibilities:
-
Are you in a region that apple serves ads to?
-
Are you 100% sure everything is correct in iTunes Connect?
-
It’s a real possibility that your fill rate is really 0 and the message they give you is misleading.
Have you watched the console log of your live app to see what’s going on?