Hi,
I’m trying to embed inMobi ads in my Android app, but they just aren’t showing up.
I’ve used the app id code I’ve been given by InMobi (the game is already live on Google Play). That didn’t work, so I used the test code instead, still not working (I’ve set test mode both false and true):
local ads = require “ads”
ads.init( “inmobi”, “4028cb962895efc50128fc993f9f025a” )
– Set the ads (updates every 60 seconds)
ads.show( “banner320x48”, { x=0, y=100, interval=20, testMode=true } )
I also set the permissions:
androidPermissions = {
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.READ_PHONE_STATE”,
},
I am testing on device, not the simulator. When on simulator it is throwing the following warnings:
WARNING: The ‘ads’ provider (inmobi) is not available on the simulator
WARNING: The ‘ads’ library is not available on this platform.
…not sure what the ‘not available on platform’ is all about…
Is anyone able to assist? No luck after 3 hours of trying different options.
Many thanks,
Andy