Skip to content

Instantly share code, notes, and snippets.

@fengyuanyang
Created May 10, 2013 07:59
Show Gist options
  • Save fengyuanyang/5553045 to your computer and use it in GitHub Desktop.
Save fengyuanyang/5553045 to your computer and use it in GitHub Desktop.
local ads = require "ads"
local function adListener(event)
-- 當要求到廣告時會呼叫這裡
end
-- 以下a14f8ef7162ae18為小島的APPID,請置換成你的
-- 如果沒有,也可以直接用這個測試,錢就算我的:D
--ads.init( "admob", apid, adListener )
ads.init( "admob", "a14f8ef7162ae18", adListener )
ads.show( "banner", { x=0, y=0 } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment