i use this code to integrate admob ads
local ads = require( “ads” )
local platformName = system.getInfo( “platformName” )
local AdsBanners="ca-app-pub-xxxx "
local AdsInterstitials=“ca-app-pub-xxxx”
if platformName == “Android” then
print(“android”)
AdsBanners=“ca-app-pub-xxxx”
AdsInterstitials=“ca-app-pub-xxxx”
end
function adListener( event )
local msg = event.response
if ( event.isError ) then
print( “Error, no ad received”, msg )
else
ads.show( “interstitial”, { x=0, y=0, appId=AdsInterstitials } )
end
end
ads.init(“admob”, AdsBanners, adListener)
ads.load( “interstitial”, { appId=AdsInterstitials, testMode=false } )
ads.show( “banner”, { x=0, y=100000, appId=AdsBanners } )
the problem is interstitial ads shows many times and i just call show one time