It looks like you're new here. If you want to get involved, click one of these buttons!
require("ads") ad = Ads.new("adsense") ad:addEventListener(Event.AD_INITIALIZED,function() ad:setKey("ca-pub-XXXX", "YYYY") ad:showAd("auto") ad:setX(100) end) ad:addEventListener(Event.AD_RECEIVED,function(evt) print("Ad loaded") -- ad:showAd(evt.type) (not necessary) end)
Likes: oleg
Comments
Here is the lua code I used for my tests:
Likes: oleg