Trouble With Banner Ads

Interstitials are working fine. Here’s my code

local ads = require( “ads” )
local adProvider = “admob”
local adNum=1
local bannerAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnnn”  --for your iOS banner
local interstitialAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnn”  --for your iOS interstitial
if ( system.getInfo( “platformName” ) == “Android” ) then
    bannerAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnnnn”  --for your Android banner
    interstitialAppID = “ca-app-pub-nnnnnnnnnnn/nnnnnnnnn”  --for your Android interstitial
end

function adListener( event )
    – The ‘event’ table includes:
    – event.name: string value of “adsRequest”
    – event.response: message from the ad provider about the status of this request
    – event.phase: string value of “loaded”, “shown”, or “refresh”
    – event.type: string value of “banner” or “interstitial”
    – event.isError: boolean true or false

    if ( event.type==“interstitial” and event.phase==“shown” ) then
        start() --go back to title screen
    end
end

ads.init( adProvider, interstitialAppID, adListener )
ads.init( adProvider, bannerAppID, adListener )

function onDeath()

adNum=adNum+1
  if adNum % 3 ==0 then ads.load( “interstitial”, { appID=interstitialAppID } ) end
  ads.show( “banner”, { x=0, y=10000, appID=bannerAppID } )

if (adNum%3==0) then ads.show( “interstitial”, { appID=interstitialAppID } )
  else start()  end

end

Should I be using ads.init like that? Or is there another issue?

Not sure if this is the problem but 

ads.show( "banner", { x=0, y=10000, appID=bannerAppID } )

should probably be

ads.show( "banner", { x=0, y=10000} )

I don’t think you need to define the appID again in ads.show

Maybe that will fix it?!?

Apparently the “appID = bannerAppID” should actually be “app Id = bannerAppID”.  The tutorial has been updated.

Rob

Not sure if this is the problem but 

ads.show( "banner", { x=0, y=10000, appID=bannerAppID } )

should probably be

ads.show( "banner", { x=0, y=10000} )

I don’t think you need to define the appID again in ads.show

Maybe that will fix it?!?

Apparently the “appID = bannerAppID” should actually be “app Id = bannerAppID”.  The tutorial has been updated.

Rob