Hello, I am new here.
I am trying to put ads on my app, but I don’t seem to get it work. It didn’t appear in the simulator, nor on my device.
The biggest problem is, for some reason, when I put any ads code in my project, it stops working on my device (but still works on my corona simulator)
Please see below is my build setting (the plugin part):
plugins =
{
[“CoronaProvider.ads.iads”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, [“iphone-sim”]=true },
},
},
and below is the few codes I put in my main.lua:
local ads = require(“ads”)
ads.init( “iads”, “com.xxxx.xxxx” )
ads.show( “banner”, {x=centerX, y=centerY} )
only with or without this 3 lines will make my app stop working on my iphone5. Any idea why this happen?
Thanks in advance for your help!