I'm trying to implement iAd on my app using Ads Interface, but running on my device from Xcode crashes after a few seconds. I get this error:
main.lua:49: attempt to index global 'Ads' (a nil value)
stack traceback:
main.lua:49: in main chunk
on main.lua:49: I have this:
iad = Ads.new("iad")
which is what I should have according to the instructions on
http://docs.giderosmobile.com/interface/adsattached my Ads Interface's implementation.
what am I doing wrong?
Comments
Ads = require("ads")
--require plugin
require "ads"