Type Function Return value Boolean Revision 2017.3060 Keywords ads, advertising, AdMob, isLoaded See also admob.show() admob.*
Returns a boolean indicating whether an ad is loaded and ready for display.
admob.isLoaded( adType )
local admob = require( "plugin.admob" )
-- AdMob listener function
local function adListener( event )
if ( event.phase == "init" ) then -- Successful initialization
print( event.provider )
end
end
-- Initialize the AdMob plugin
admob.init( adListener, { appId="YOUR_ADMOB_APP_ID" } )
-- Sometime later, check if an interstitial ad is loaded
print( admob.isLoaded( "interstitial" ) )