I’m working on my first iPhone game, and I’m in the process of incorporating banner ads to my build. I registered an account with InMobi, got App ID from InMobi, and followed all instructions the best I can, and I still don’t get the test ads to appear.
In other words, I went through the same process as @yanuar.
The last thing I tried is… modify SampleCode/Ads/InMobi by copying the InMobi folder, change the folder name to TestAds, and make the following changes to the original code block (and I used the test appID supplied by InMobi = Site/ App id: 4028cb962895efc50128fc99d4b7025b as per http://www.inmobi.com/help/publisher/faqs/ page)
EDIT:
When I generated a device build of TestAds and launched it on iPad, all I got was a blank screen. It turns out the reason why the build didn’t work was because I was using a daily build CoronaSDK 2011.605 (rather than the last stable build). Rob (a.k.a. robmiracle) pointed it out to me under this thread, which solved the problem:
http://developer.anscamobile.com/forum/2011/08/04/cant-make-inmobi-ads-work-my-honeycomb-tablet
Anyhow, here is the changes I made to the codeblock to make the sample code to work:
ORIGINAL CODE BLOCK:
-- Make Banner Ads features available under "ads" namespace
local ads = require "ads"
-- initialize ad network:
if appID then
ads.init( adNetwork, appID )
end
-- initial variables
local sysModel = system.getInfo("model")
local sysEnv = system.getInfo("environment")
MODIFIED CODE BLOCK:
[code]
– Make Banner Ads features available under “ads” namespace
local ads = require “ads”
– initial variables
local sysModel = system.getInfo(“model”)
local sysEnv = system.getInfo(“environment”)
– initialize ad network:
if sysEnv == “simulator” then
appID = nil
else
appID = “4028cb962895efc50128fc99d4b7025b” – test appID from InMobi
ads.init( adNetwork, appID )
end
[/code] [import]uid: 67217 topic_id: 13573 reply_id: 51198[/import]