admob banner

I learn by seeing working code but in the admob I don’t see a working demo so I don’t really know how to correctly use it. I tried this

display.setStatusBar( display.HiddenStatusBar ) local composer = require "composer" local ads = require "ads" ads.init("admob","ca-app-pub-(some numbers)") ads.load("banner",{ testMode = true }) ads.show("banner",{ testMode = true }) local composer = require "composer" composer.gotoScene("menu")

I was hoping this would load a banner ad but it did not. 

I also did updated the plugins in the config along with the privledges it requires

I may note I did not build it as an app to test but I am unsure if I need to now

Did you search my archive?

I downloaded the folder and it did not work when I built it on my tablet?

I edited the bannerid variable to my app id also.

I downloaded it and put my admob id in and it works fine.
 
You can download and test my apk to verify this on your device.  If it doesn’t work, then you have a device or networking issue.
http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/06/admob.apk
 
If my APK does work, then dollars to donuts,  you put in the wrong id.  Your id should look something like this  (I obfuscated my ID):

ca-app-pub-????790293916744/45241?????

This line in the example,

local bannerID = "ADMOBIDGOESHERE" 

would then be:

local bannerID = "ca-app-pub-????790293916744/45241?????"

yours does work. hmm I guess I’ll have to find out why

edit: I found out that I was giving it my app id and not my banner id

Use logcat and see what messages you’re getting back from admob.

https://docs.coronalabs.com/guide/basics/debugging/index.html

Also be sure to re-read my responses above.  I frequently update after posting, so if you’re only reading the e-mailed summaries you’ll miss extra details.

I also did updated the plugins in the config along with the privledges it requires

I may note I did not build it as an app to test but I am unsure if I need to now

Did you search my archive?

I downloaded the folder and it did not work when I built it on my tablet?

I edited the bannerid variable to my app id also.

I downloaded it and put my admob id in and it works fine.
 
You can download and test my apk to verify this on your device.  If it doesn’t work, then you have a device or networking issue.
http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/06/admob.apk
 
If my APK does work, then dollars to donuts,  you put in the wrong id.  Your id should look something like this  (I obfuscated my ID):

ca-app-pub-????790293916744/45241?????

This line in the example,

local bannerID = "ADMOBIDGOESHERE" 

would then be:

local bannerID = "ca-app-pub-????790293916744/45241?????"

yours does work. hmm I guess I’ll have to find out why

edit: I found out that I was giving it my app id and not my banner id

Use logcat and see what messages you’re getting back from admob.

https://docs.coronalabs.com/guide/basics/debugging/index.html

Also be sure to re-read my responses above.  I frequently update after posting, so if you’re only reading the e-mailed summaries you’ll miss extra details.