Rob,
Thanks for your reply…
Here is my build settings:
[lua]
settings = {
plugins = {
– key is the name passed to Lua’s ‘require()’
[“CoronaProvider.ads.iads”] =
{
– required
publisherId = “com.coronalabs”,
},
},
orientation = {
default = “portrait”,
supported = { “portrait”, }
},
iphone = {
components = {},
plist = {
CFBundleDisplayName = “A-B Asteroids”,
UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = false,
UIPrerenderedIcon = true, – set to false for “shine” overlay
FacebookAppID = “xxxxxxxxxxxxxxxxxx”,
CFBundleURLTypes = {
{
CFBundleURLSchemes = {
“fbxxxxxxxxxxxx”,
}
}
},
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
“Icon-Small-50.png”,
“Icon-Small.png”,
“Icon-Small@2x.png”,
},
}
},
}
[/lua]
I am using storyboard. In createScene, I use this to init:
[lua]
ads.init(“iads”, myAppID, adsListener)
[/lua]
In willEnterScene…
[lua]
ads.show(“banner”, {x = 0, y = 0,})
[/lua]
I also tried the following with the same results…
-
I created a 3 line main.lua file with the require ads statement, the above init and the above show call.
-
I compiled Corona Labs’ iAds example and substituted my appID in the example code.
Both times, I get 1 ad, then the refresh appear to be attempted, the ad disappears, and no further ads are displayed. Ever. Unless I exit my scene (which calls ads.hide), and re-enter the scene (which calls ads.show). I then get 1 more ad and then nothing.
I understand the low fill rate, but 1 ad 1 time seems a bit abnormal.
I use Flurry for my analytics, and I log iAd’s error message when isError is true in my listener. I see the following entries over and over again.
[lua]
The operation couldn’t be completed. Ad inventory unavailable
The operation couldn’t be completed. Unknown error
[/lua]
It seems that when one of these errors occurs, no more ads are ever displayed.
I wrote to Apple, and their response was “We see that your app is generating few ad requests”, and then the standard text regarding volume, etc. Why is my app generating few requests? Not sure what that means. I need to ask them a follow-up question to clarify.
I am going to release an update to fall back on another ad network in the event of iAds failure, but this situation is very confusing to me.
I guess I am confused as to why there is no more inventory after 1 ad. I have no filters defined in iAds. There must be more than 1 ad in inventory.
I am also confused why this is happening in my app and your sample app.
Any ideas would be helpful. I am at a loss as to what to check next.
–John