admob banner was not showing but the instertitials was working fine. I was using admob-v2
here’s my code
- local ads = require “ads”
- local banner_id = “ca-app-pub-xxxxxxxxxxxxxx/xxxxxxx”
- local function adListener( event )
- if ( event.isError ) then
- native.showAlert(“Admob”,event.isError , {“OK”})
- end
- end
- endads.init(“admob”, banner_id , adListener )
- ads.show(“banner”, {x=0,y=display.contentHeight-70,testMode = false} )
also I tried it in test mode and it was working fine to but if testmode was false, no banner ads was not working.
any problems? app was not yet publish.