you do it like shown above:
ads.show( adType, { x=adX, y=adY, testMode=false, appId=appId[adType] } )
you have to create the to types on the admob page and then you use the appid you want to show
example:
local banner = "ca-app-pub-xxxxxxxxxxxxxxxxx/xxxxxxxxxxxx" local interstitial = "ca-app-pub-xxxxxxxxxxxxxxxxx/xxxxxxxxxxxx" function adListener( event ) if event.isError then -- Failed to receive an ad else -- loaded ad sucess end end ads.init( "admob", banner, adListener ) --fullscreen: ads.show( "interstitial", { x=display.screenOriginX, y=display.screenOriginY, appId=interstitial} ) --or banner: ads.show( "banner", { x=display.screenOriginX, y=display.screenOriginY, appId=banner} )