Type Function Return value Boolean Revision Release 2024.3703 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 )
String. One of the following values:
"interstitial"
"banner"
"rewardedVideo"
"rewardedInterstitial"
"appOpen"
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" ) )