I downloaded the latest public build (1135) and ran the sample admob code in github. It displayed the admob ads and no error message on the console.
if sysEnv ~= “simulator” then
showAd( “interstitial” )
end
But if I just use the showAd without the sysEnv’s if statement:
showAd( “interstitial” )
it will show the warning message: The ‘ads’ library is not available on this platform. I built the apk and the ads didn’t show up.
BTW, do I include the ads init in the main.lua, and can call the ads.show in different scene file (page_1.lua, page_2.lua…)? Do I need to ‘release’ it or just call ads.hide() to hide the ads?