Hello there, Im trying to put some ads in my game using admob. I followed this tutorial step by step but still cannot understand why the ads not showing, not even in testMode.
I get those 3 warning messages while running my project -
19:50:08.724 WARNING: CoronaProvider.ads.admob is not configured in build.settings 19:50:08.724 WARNING: The 'ads' provider (admob) is not available on the simulator 19:50:08.724 WARNING: The 'ads' library is not available on this platform.
build.settings -
plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, },
relevant code -
local ads = require( "ads" ) local adProvider = "admob"; local appID = "ca-app-pub-4025623736156768~1658930533"; local bannerAppID = "ca-app-pub-4025623736156768/5774085732"; 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 ) ads.show( "banner", { x = 0, y = 10000, appId = bannerAppID, testMode = true });
Itay,
thanks in advance