local ads=require("ads") local AppID local interstitialAppID="ca-app-pub-2417127176280491/9212230961" if(system.getInfo("platformName")=="Android") then interstitialAppID="ca-app-pub-2417127176280491/9212230961" end local adProvider="admob" local function adListenerr( event ) local msg=event.respone print("Message from the ads library: ", msg) if (event.isError) then print("Error buddy", msg) else ads.show("interstitial", {AppID=interstitialAppID}) print("Lets GOOO!") end end ads.init(adProvider,"ca-app-pub-2417127176280491/9212230961", adListenerr)
This is my code for my admob integration. I am trying to get an interstitial ad to show up. The name of my interstitial Ad unit is “TheMan300x250” , I did not include that in my code because I do not think the integration steps ask for the ad unit name. The ad unit id is already incorporated (it is not my actual id, changed it for privacy). For some reason my code is not working. Why is this?