Ads not showing up

I just tried to show some ads by using the code shown in the docs but nothing happened.
I thought i did the whole preparations, setup an inmobi account, register my app, got the appid to use, made the build and installed it on my device.
I tested on my ipad and nothing showed up, not a the banner of anything in resemblence, checked the ads location in the code and i dont think i did something wrong.

What am I supposed to see in my screen and how do i trace the ads code when testing on device? [import]uid: 76697 topic_id: 13573 reply_id: 313573[/import]

Could you share the relevant code? [import]uid: 52491 topic_id: 13573 reply_id: 49878[/import]

well, the code is basically what the docs says :

ads.init( “inmobi”, “xxxxxxx” ) --xxxxx is of course my correct appid i got from inmobi
ads.show( “banner728x90”, { x=0, y=0, interval=105, testMode=true } )

Is it because my app still hasnt been registered properly at inmobi? The status says : incomplete and it seems i need to enter the right itunes url to activate the app in inmobi. If that’s the case then how am I supposed to test functionality before i release the game?
[import]uid: 76697 topic_id: 13573 reply_id: 50127[/import]

Ah, I’m not certain but from what I’ve read, yes, they may need that first - see this thread; http://developer.anscamobile.com/forum/2011/08/03/how-test-inmobi

To get your app ID or URL before uploading you just need to create a page in iTunes Connect for it - then you get both and still have three months left to upload.

Make sense? :slight_smile: [import]uid: 52491 topic_id: 13573 reply_id: 50141[/import]

hmm, the inmobi guideline says that it’ll provide with a test ads while the app is still on incomplete or pending status. Also, from the link you gave me, it seems people are talking about testAppId that inmobi has but I couldn’t find it anywhere on their site.
Do you know what they’re talking about? [import]uid: 76697 topic_id: 13573 reply_id: 50333[/import]

Hey, it’s in their FAQ; http://www.inmobi.com/help/publisher/faqs/

Look for this, bolded; I am an App developer, my App is still under development. Can I register my app, integrate and test it?

It’s got the ID right below there.

Peach :slight_smile: [import]uid: 52491 topic_id: 13573 reply_id: 50385[/import]

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]