I tested in the device android
I have this log ,
No app id was supplied to ads.init .Using test app id() instead for ad network admob
I see this tutorial
http://coronalabs.com/blog/2014/07/15/tutorial-implementing-admob-v2/
[lua]
local ads = require( “ads” )
local bannerAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnnn” --for your iOS banner
local interstitialAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnn” --for your iOS interstitial
if ( system.getInfo( “platformName” ) == “Android” ) then
bannerAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnnn” --for your Android banner I place my admobID
interstitalAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnnn” --for your Android interstitial–I place my admobId
end
local adProvider = “admob”
local function adListener( event )
– The ‘event’ table includes:
– event.name: string value of “adsRequest”
– event.response: message from the ad provider about the status of this request
– event.phase: string value of “loaded”, “shown”, or “refresh”
– event.type: string value of “banner” or “interstitial”
– event.isError: boolean true or false
local msg = event.response
– Quick debug message regarding the response from the library
print( "Message from the ads library: ", msg )
if ( event.isError ) then
print( “Error, no ad received”, msg )
else
print( “Ah ha! Got one!” )
end
end
ads.init( adProvider, appID, adListener )
if ( ads.isLoaded(“interstitial”) ) then
ads.show(“interstitial”)
end
testMode=true
ads.show( “interstitial”, { appID=interstitialAppID,testMode = true } )
[/lua]