local ads = require("ads") local function adListener(event) local msg = event.response if event.isError then -- Failed to receive an ad, we print the error message returned from the library. print(msg) end end ads.init( "iads", "com.yourcompany.yourappid", adListener ) ads.show( "banner", { x=0, y=0 } )
also i was wondering since i am using director for the scene changes and i only have 1 other scene should i have the ads stuff in the only scene or is there something that has to be in the main.lua file
I’m getting the same problem but with Inneractive.
Using the sample stuff from the Corona Docs
Build.settings:
settings = { plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.inneractive"] = { -- required publisherId = "com.inner-active", }, }, }
Code in app:
local ads = require "ads" local function adListener( event ) if event.isError then -- Failed to receive an ad. print(event.error) local showError = display.new Test(event.error, 20, 20, native.systemFont, 20) end end ads.init( "inneractive", "Tarzender\_KYM\_iPad", adListener ) ads.show( "banner", { x=0, y=0, interval=60 } )
All I get when I attempt to build it is:
following message: [A device build error occurred on the server. BuildID: 51dd34cf7d62e Error: lowing message: [A device build error occurred on the server. BuildID: 51dd34cf7d62e Error:
Anybody got any ideas?
EDIT: I think its something to do with the build.settings file. When I take it out of my main app the app works and builds properly. When it is included, the build fails…
I get this error when I build for Android and have the iads plugin in my build.settings. I have to comment it out when I build for Android and uncomment it when i build for iOS which is kind of annoying but i’ve been too lazy to look into it.
I just downloaded the latest public build 2013.1137 and if you look at the release features it shows that it now supports iads and all the other ad plugins and more. So downloaded it and didn’t change a single line of code and it all worked out! I tested on the device and the xcode simulator and the iads were showing properly.
So thanks for all the help, and for future reference make sure that people have the latest build if they are getting this error.
I’m getting the same problem but with Inneractive.
Using the sample stuff from the Corona Docs
Build.settings:
settings = { plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.inneractive"] = { -- required publisherId = "com.inner-active", }, }, }
Code in app:
local ads = require "ads" local function adListener( event ) if event.isError then -- Failed to receive an ad. print(event.error) local showError = display.new Test(event.error, 20, 20, native.systemFont, 20) end end ads.init( "inneractive", "Tarzender\_KYM\_iPad", adListener ) ads.show( "banner", { x=0, y=0, interval=60 } )
All I get when I attempt to build it is:
following message: [A device build error occurred on the server. BuildID: 51dd34cf7d62e Error: lowing message: [A device build error occurred on the server. BuildID: 51dd34cf7d62e Error:
Anybody got any ideas?
EDIT: I think its something to do with the build.settings file. When I take it out of my main app the app works and builds properly. When it is included, the build fails…
I get this error when I build for Android and have the iads plugin in my build.settings. I have to comment it out when I build for Android and uncomment it when i build for iOS which is kind of annoying but i’ve been too lazy to look into it.