[RESOLVED] iads Get plugin failed

So i’ve finished my App and am now trying to implement iads to it and when i got to build it it says:

BuildID: 51dcd2675957d 

Error: Get plugin failed. 

Publisher: com.coronalabs 

Plugin: CoronaProvider.ads.iads

2013-07-09 20:18:42.675 Corona Simulator[1700:f03] 

here’s the plugin part under settings in the build.setting file

    plugins =     {         -- key is the name passed to Lua's 'require()'         ["CoronaProvider.ads.iads"] =         {             -- required             publisherId = "com.coronalabs",         },     },             

    

and here’s my main.lua that talks about the iads

    

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…

Can you post your build.settings file?

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft", }, }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.inneractive"] = { -- required publisherId = "com.inner-active", }, }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", -- example scheme for facebook "coronasdkapp", -- example second scheme } } } --]] } }, --[[-- Android permissions androidPermissions = { "android.permission.INTERNET", },]]-- }

Hopefully you can help both of us  :slight_smile: .

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = {          orientation = {         default = "landscapeRight",         supported = { "landscapeRight", }     },          plugins =     {         -- key is the name passed to Lua's 'require()'         ["CoronaProvider.ads.iads"] =         {             -- required             publisherId = "com.coronalabs",         },     },                     iphone = {         plist = {             UIAppFonts= {"Think\_Thick.ttf"},             UIStatusBarHidden = false,             UIPrerenderedIcon = true, -- set to false for "shine" overlay             UIApplicationExitsOnSuspend = false, -- uncomment to quit app on suspend                 --[[            -- iOS app URL schemes:             CFBundleURLTypes =             {                 {                     CFBundleURLSchemes =                     {                         "fbXXXXXXXXXXXXXX", -- example scheme for facebook                         "coronasdkapp", -- example second scheme                     }                 }             }             --]]         }     },          --[[    -- Android permissions     androidPermissions = {           "android.permission.INTERNET",       },     ]]-- }  

Let me try downloading the latest version of corona, i’ll see if that helps at all. I’ll let you know how that works in a bit.

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.  

iAds are only available on iOS so getting an error building for Android with iAds is expected and the right thing to do is to comment out the plugin.

Inneractive, however should run on both platforms. 

Inneractive doesn’t work at all for me.

Neither iOS or Android - Any ideas?

Corey, did the latest build work?
 

Just FYI, I’m running: Version 2013.1076 (2013.4.3)

 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.

-Corey

You need to be on 1137 for public builds or later than 1154 for dailies.

Cheers guys!

(y) - That is meant to be a thumbs up by the way

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…

Can you post your build.settings file?

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft", }, }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.ads.inneractive"] = { -- required publisherId = "com.inner-active", }, }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", -- example scheme for facebook "coronasdkapp", -- example second scheme } } } --]] } }, --[[-- Android permissions androidPermissions = { "android.permission.INTERNET", },]]-- }

Hopefully you can help both of us  :slight_smile: .

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = {          orientation = {         default = "landscapeRight",         supported = { "landscapeRight", }     },          plugins =     {         -- key is the name passed to Lua's 'require()'         ["CoronaProvider.ads.iads"] =         {             -- required             publisherId = "com.coronalabs",         },     },                     iphone = {         plist = {             UIAppFonts= {"Think\_Thick.ttf"},             UIStatusBarHidden = false,             UIPrerenderedIcon = true, -- set to false for "shine" overlay             UIApplicationExitsOnSuspend = false, -- uncomment to quit app on suspend                 --[[            -- iOS app URL schemes:             CFBundleURLTypes =             {                 {                     CFBundleURLSchemes =                     {                         "fbXXXXXXXXXXXXXX", -- example scheme for facebook                         "coronasdkapp", -- example second scheme                     }                 }             }             --]]         }     },          --[[    -- Android permissions     androidPermissions = {           "android.permission.INTERNET",       },     ]]-- }  

Let me try downloading the latest version of corona, i’ll see if that helps at all. I’ll let you know how that works in a bit.

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.  

iAds are only available on iOS so getting an error building for Android with iAds is expected and the right thing to do is to comment out the plugin.

Inneractive, however should run on both platforms. 

Inneractive doesn’t work at all for me.

Neither iOS or Android - Any ideas?

Corey, did the latest build work?
 

Just FYI, I’m running: Version 2013.1076 (2013.4.3)