Can't make InMobi ads work on my honeycomb tablet

Hi there

I tried a lot of options and i never got it working…

I submitted my app for reviewing (i was thinking it was because of that) and then i got my app approved on InMobi.

Now i try to put the code again and it still doesn’t show any ads on my tablet.

I will get tomorrow a phone to try it out, but right now i can’t see anything on the tablet (I have an Acer Iconia, with Honeycomb 3.1)

Any of you have the same problem? or got it working on the normal android phones?

I need it to be on the tablet because my app is better on a tablet and i want to have this feature on it.

I got my code as smallest as i could after trying out different stuff so finally i got this:
[lua]local sysEnv = system.getInfo(“environment”)
– Below is the ad network that will be used:
banner=“banner320x48”
ads = require “ads”
ads.init( “inmobi”, “MyAPP_APPROVED_ID” )
ads.show( banner, { x=0, y=0, interval=5} )[/lua] [import]uid: 75034 topic_id: 13271 reply_id: 313271[/import]

What about testing, shouldn’t there also be some dummy ads being served to get an idea of where and how it works? What about Ad-Hoc installations? What if there is no iTunes app link?

InMobi needs to add those things…

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 13271 reply_id: 48717[/import]

I’m trying to make it work with a game now. They have not approved it yet, but according to their docs I should be getting test ads. [import]uid: 19626 topic_id: 13271 reply_id: 48718[/import]

Update: I am now getting ADs from InMobi even in the xCode simulator and they animate quite well.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 13271 reply_id: 48724[/import]

Yes the problem seems to be in the honeycomb tablets… Haven’t tested yet on a phone (i have only a tablet right now), and don’t have a mac yet too

Can you tell me if i you put x = 0 and y = 0 it is top of the screen or middle of the screen?

I tried to set reference point to it but doesn’t work…

That way i can try other stuff [import]uid: 75034 topic_id: 13271 reply_id: 48729[/import]

I guess that the ads are working for the ID which is linked to another game that is live on iTunes. I wish it did work without approval and for testing purposes too.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 13271 reply_id: 48730[/import]

0, 0 seems to be the top left of the screen.
[import]uid: 19626 topic_id: 13271 reply_id: 48781[/import]

Hmm, well, now i tried to install the game on my brother’s tablet (a normal kyros tablet) and it doesn’t install at all…

I will have to look into another phone to test it [import]uid: 75034 topic_id: 13271 reply_id: 48814[/import]

Ok i tried again in my wife phone… after like 2 hrs downloading and updating her phone and it still doesn’t work at all…

  • How much time you have to wait to get your first ad?
  • I waited like 5 mins and never shows…
  • Does it have restrictions for countries? i am based on Venezuela so maybe that’s why i don’t get any ads?

It is frustating me here [import]uid: 75034 topic_id: 13271 reply_id: 49136[/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.

@syscobra – were you able to make it work?

@robmiracle – were you able to get the test ads to appear since you made your post?

EDIT:

I found another post related very much like what I am dealing with, so I’ll follow up there too:
http://developer.anscamobile.com/forum/2011/08/09/ads-not-showing [import]uid: 67217 topic_id: 13271 reply_id: 51190[/import]

I never got test ads to work on my appID, but I did get ads on their test ID.

I’ll have to wait until I’m live in the app store before I’ll know more.

Rob [import]uid: 19626 topic_id: 13271 reply_id: 51191[/import]

I ended up putting the admob hack found on the forums, it had the same problem but Kam helped me out by email, so i ended up putting the admob on the game…

I think it should be related with my connection because i am on Venezuela. I have troubles to get admob stuff here too on the game…

I think i will retest with latest build when i go to the iOS version. [import]uid: 75034 topic_id: 13271 reply_id: 51192[/import]

Thanks, Rob. I tried using InMobi’s test ID, but I’m still unable to get it to work on device. (See http://developer.anscamobile.com/forum/2011/08/09/ads-not-showing#comment-51198 )

I’m wondering if something is wrong with the code I’m using or if it’s nothing to do with the code, but rather, it’s something to do with the way I set up my developer account. The thing is, I don’t have any problem generating device build that runs on my registered devices, but if there’s nothing wrong with the code, then maybe my developer account setup is interfering with the third-party service – or something weird like that. Any thoughts? [import]uid: 67217 topic_id: 13271 reply_id: 51200[/import]

Well based on the other thread, and this may be a dumb question

Do you ever call ad.show()

[lua] local adX, adY = 0, 60
if _G.appID then
ads.show( “banner320x48”, { x=adX, y=adY, interval=60, testMode=_G.adTestMode } )
end[/lua]

Note: I’ve put my appID in the global _G table. so I can init in main.lua and be able to know if the stuff was inited.

[import]uid: 19626 topic_id: 13271 reply_id: 51201[/import]

No, it’s not a dumb question. (Simple error like that plagues me often enough – the last one was the trouble with json save/load process where I didn’t place the save/load file name inside “” – and it took a day and a half to track down. Yikes).

Anyway, yeah, in line 104 of the modified sample code, I have:

ads.show( adsTable[currentAdIndex], { x=adX, y=adY, interval=5, testMode=true } )

It’s the same line from line 102 of the original sample code of SampleCode/Ads/InMobi/main.lua file.

[import]uid: 67217 topic_id: 13271 reply_id: 51203[/import]

Well I scrapped all that indexed look up stuff. I’m only using the 320x48’s so there was no reason for the over head.

Are you getting any messages on the console?
[import]uid: 19626 topic_id: 13271 reply_id: 51204[/import]

I see tons of messages on the console…

One thing that caught my attention is:

TestAds[0x3d08][148] : Lua Runtime Error: lua_pcall failed with status: 2, error message is: ERROR: ads.init() requires a listener as the last argument.

You know, it might be time for me to reach out to Ansca support staff… [import]uid: 67217 topic_id: 13271 reply_id: 51214[/import]

I was helping someone else with my rss code today and encountered that. It seems that in build 605 ad.init() now takes a third optional parameter. A listener callback for when the ad system finishes loading. But it looks like a bug and the parameter is required.

I’m building with daily build 600. Can you go bac to that or the stable release and try it? [import]uid: 19626 topic_id: 13271 reply_id: 51219[/import]

I downloaded the last stable release, which is “Corona SDK on Mac OS X Build 2011.591”, and generated a device build – and it worked!

I guess I’ll just have to keep using the stable release until I figure out how to use ads.init() with “optional 3rd listener argument” – or until the optional (vs. required parameter) bug/inconsistency is fixed.

THANK YOU SO MUCH FOR YOUR HELP! [import]uid: 67217 topic_id: 13271 reply_id: 51229[/import]

In another thread I asked about the new, third parameter that causes an error if you don’t include it but no one from Ansca replied yet. It believe it is supposed to fix a crash bug related to closing an ad before it has completed loading. It would be great if someone from Ansca could at least reply to this or the other thread to describe how to use it correctly since the docs are not updated to reflect the new parameter.

In the mean time to get it to work with the latest build you can do what I did an create a dummy third parameter that does nothing:

local adEventListener
ads.init( adNetwork, appID, adEventListener ) [import]uid: 9422 topic_id: 13271 reply_id: 51491[/import]