i am trying to make ads.isLoaded(“interstitial”) works on android but it seems to be not working . or may be return false all the time .
here is my code
AdmobShown=0 VungleShown=0 charboot=0 ShowAds = function () ga.event("Ads Function") ads:setCurrentProvider( "vungle" ) if ads.isAdAvailable() then ads.show( "interstitial" ) ga.event("Vungel Ads Shown") VungleShown=1 else ads:setCurrentProvider( "admob" ) if ( ads.isLoaded("interstitial") ) then print("AdMob Set Provider") ads.show("interstitial") ga.event("AdMob Ads Shown") print("AdMob SHow be showned now Ads") AdmobShown=1 end if AdmobShown==0 and VungleShown==0 then ga.event("Ads chartboost Shown") chartboost.show( "interstitial", "Main Menu" ) end end end
i tried it alone and still not working . i mean like
if ( ads.isLoaded("interstitial") ) then ads.show("interstitial") ga.event("AdMob Ads Shown") end
when i directly show the ads it show without any problem
build is 2016.2929