what is “YOUR_ADMOB_AD_UNIT_ID” and “YOUR_ADMOB_APP_ID” ?
Can anyone tell me ?
local admob = require( “plugin.admob” )
– AdMob listener function
local function adListener( event )
if ( event.phase == “init” ) then – Successful initialization
– Load an AdMob interstitial ad
admob.load( “interstitial”, { adUnitId=“YOUR_ADMOB_AD_UNIT_ID” } )
end
end
– Initialize the AdMob plugin
admob.init( adListener, { appId=“YOUR_ADMOB_APP_ID” } )
– Sometime later, show the interstitial ad
if ( admob.isLoaded( “interstitial” ) ) then
admob.show( “interstitial” )
end