Builds don't work on device.

Hi all,

I’m trying to add ADV to my game my for sure I’m doing some mistakes…

I have a Basic subscription.

I’ve added the plugin in the build.properties:

    plugins =

    {

        – key is the name passed to Lua’s ‘require()’

        [“CoronaProvider.ads.inmobi”] =

        {

            – required

            publisherId = “com.coronalabs”,

        },

        

    },

I’m trying to test the example found here: http://github.com/coronalabs/plugins-sample-ads-InMobi/blob/master/main.lua so on my scene I’ve put:

    local adNetwork = “inmobi”

    local appID = “*************”

    local ads = require “ads”

    – initialize ad network:

    if appID then

        ads.init( adNetwork, appID )

    end

Create simple build with inmodi. I get an error when running:

Apr 18 12:19:47 iPhone-di-massimiliano kernel[0] <Debug>: launchd[920] Container: /private/var/mobile/Applications/96565305-0D9F-4BE6-AB2F-6717DD23A655 (sandbox)

Apr 18 12:19:47 iPhone-di-massimiliano backboardd[28] <Error>: HID: The ‘Passive’ connection ‘Brainstorm’ access to protected services is denied.

Apr 18 12:19:47 iPhone-di-massimiliano Brainstorm[920] <Warning>: Platform: iPhone / iPhone5,4 / 7.1 / PowerVR SGX 543 / OpenGL ES 2.0 IMGSGX543-97.7

Apr 18 12:19:47 iPhone-di-massimiliano Brainstorm[920] <Warning>: Runtime error

    module ‘plugin.inmobi’ not found:resource (plugin.inmobi.lu) does not exist in archive

        no field package.preload[‘plugin.inmobi’]

        no file ‘/var/mobile/Applications/96565305-0D9F-4BE6-AB2F-6717DD23A655/Brainstorm.app/plugin.inmobi.lua’

        no file ‘/var/mobile/Applications/96565305-0D9F-4BE6-AB2F-6717DD23A655/Brainstorm.app/plugin.inmobi.lua’

        no file ‘./plugin.inmobi.so’

        no file ‘/var/mobile/Applications/96565305-0D9F-4BE6-AB2F-6717DD23A655/Brainstorm.app/plugin.inmobi.so’

        no file ‘./plugin.so’

        no file '/var/mobile/Applications/96565305-0D9F-4BE6-AB2F-6717DD23A655/Brainstorm.app/plugin.so’plugin.inmobi

    stack traceback:

        [C]: in function ‘require’

        ?: in function ‘require’

Can someone help in finding the problem? Thanks

Max

Hi @bertolini.max,

Which version of Corona are you using for these builds?

Brent

Hi Brent,

I’m using Version 2014.2189 (2014.3.6) and I have a Basic Subscription.

Thanks

      Max

Hi Max,

Did you test the entire sample project, including all supporting files? Nothing in your pasted code looks incorrect, so I’m not sure what’s happening here.

Brent

Hi @bertolini.max

I am Naresh from InMobi.

It looks like you are trying to use CoronaProvider.ads.inmobi Plugin. However, somewhere in your code you are trying to load “plugin.inmobi” by calling

require ‘plugin.inmobi’

Please ensure that you remove require ‘plugin.inmobi’ from your code. 

We are working to fix the documentation issues. Essentially there are two plugins from InMobi, please go through the following link to know more about them.

http://forums.coronalabs.com/topic/46465-important-sohan-from-inmobi-here-please-read-this-before-using-the-inmobi-plugin/

Thanks a lot Naresh.

You’re right there was the require line that you specified. Now the errors is no more present, but I see the following line in the logs:

Apr 29 15:30:42 iPhone-di-massimiliano Brainstorm[578] <Warning>: Showing Banner: banner300x250

Apr 29 15:30:42 iPhone-di-massimiliano Brainstorm[578] <Warning>: [INFO]: Make sure you have enabled TestMode for the siteId. DeviceID: <__NSConcreteUUID 0x145bee80> F2B50536-6A70-4DB7-AF6E-F757C24CB7E3 for your siteId. 

For more visit: https://www.inmobi.com/properties/index#/configure/1c5315d672904a14a65fb2e950de1ba6

The test mode is activated and I have also added the test device specifying as DeviceID what I see in the log: F2B50536-6A70-4DB7-AF6E-F757C24CB7E3

Is it correct?

Thanks

     Max

Hey Max,

That is correct. You need to register the Device ID to get the test Ad.

Hope you are seeing the test Ads.

Thanks

Naresh Kapse

I’ve registered it but as I wrote when I call the ads.show I see in the log :

May  2 10:31:02 iPhone-di-massimiliano Brainstorm[1246] <Warning>: Showing Banner: banner320x48

May  2 10:31:02 iPhone-di-massimiliano Brainstorm[1246] <Warning>: [INFO]: Make sure you have enabled TestMode for the siteId. DeviceID: <__NSConcreteUUID 0x17634fa0> 9B69D08A-61D2-4D09-BF66-A17B8A426D94 for your siteId. 

For more visit: https://www.inmobi.com/properties/index#/configure/1c5315d672904a14a65fb2e950de1ba6/product/diagnostics. 

http://www.inmobi.com/support/art/23382291/21894911/setting-up-publisher-diagnostics/#settestmode

and no AD is showed…

my code is exactly the one of the example excepted for the background.

The Device ID is 9B69D08A-61D2-4D09-BF66-A17B8A426D94

and the AppId is 1c5315d672904a14a65fb2e950de1ba6

Regards

   Max

Hey Max,

You are seeing the INFO as you are passing testMode=true while requesting Ad!   You can safely ignore it. 

InMobi’s older version of SDKs used to take boolean to display InMobi test ads.

With new SDKs, you need to register Device ID in the InMobi portal to get test ads. The message is just giving information on how to get test ads from InMobi.

If you do not pass   testMode=true param, then you will not see this message.

Thanks

Naresh Kapse

Hi @bertolini.max,

Which version of Corona are you using for these builds?

Brent

Hi Brent,

I’m using Version 2014.2189 (2014.3.6) and I have a Basic Subscription.

Thanks

      Max

Hi Max,

Did you test the entire sample project, including all supporting files? Nothing in your pasted code looks incorrect, so I’m not sure what’s happening here.

Brent

Hi @bertolini.max

I am Naresh from InMobi.

It looks like you are trying to use CoronaProvider.ads.inmobi Plugin. However, somewhere in your code you are trying to load “plugin.inmobi” by calling

require ‘plugin.inmobi’

Please ensure that you remove require ‘plugin.inmobi’ from your code. 

We are working to fix the documentation issues. Essentially there are two plugins from InMobi, please go through the following link to know more about them.

http://forums.coronalabs.com/topic/46465-important-sohan-from-inmobi-here-please-read-this-before-using-the-inmobi-plugin/

Thanks a lot Naresh.

You’re right there was the require line that you specified. Now the errors is no more present, but I see the following line in the logs:

Apr 29 15:30:42 iPhone-di-massimiliano Brainstorm[578] <Warning>: Showing Banner: banner300x250

Apr 29 15:30:42 iPhone-di-massimiliano Brainstorm[578] <Warning>: [INFO]: Make sure you have enabled TestMode for the siteId. DeviceID: <__NSConcreteUUID 0x145bee80> F2B50536-6A70-4DB7-AF6E-F757C24CB7E3 for your siteId. 

For more visit: https://www.inmobi.com/properties/index#/configure/1c5315d672904a14a65fb2e950de1ba6

The test mode is activated and I have also added the test device specifying as DeviceID what I see in the log: F2B50536-6A70-4DB7-AF6E-F757C24CB7E3

Is it correct?

Thanks

     Max

Hey Max,

That is correct. You need to register the Device ID to get the test Ad.

Hope you are seeing the test Ads.

Thanks

Naresh Kapse

I’ve registered it but as I wrote when I call the ads.show I see in the log :

May  2 10:31:02 iPhone-di-massimiliano Brainstorm[1246] <Warning>: Showing Banner: banner320x48

May  2 10:31:02 iPhone-di-massimiliano Brainstorm[1246] <Warning>: [INFO]: Make sure you have enabled TestMode for the siteId. DeviceID: <__NSConcreteUUID 0x17634fa0> 9B69D08A-61D2-4D09-BF66-A17B8A426D94 for your siteId. 

For more visit: https://www.inmobi.com/properties/index#/configure/1c5315d672904a14a65fb2e950de1ba6/product/diagnostics. 

http://www.inmobi.com/support/art/23382291/21894911/setting-up-publisher-diagnostics/#settestmode

and no AD is showed…

my code is exactly the one of the example excepted for the background.

The Device ID is 9B69D08A-61D2-4D09-BF66-A17B8A426D94

and the AppId is 1c5315d672904a14a65fb2e950de1ba6

Regards

   Max

Hey Max,

You are seeing the INFO as you are passing testMode=true while requesting Ad!   You can safely ignore it. 

InMobi’s older version of SDKs used to take boolean to display InMobi test ads.

With new SDKs, you need to register Device ID in the InMobi portal to get test ads. The message is just giving information on how to get test ads from InMobi.

If you do not pass   testMode=true param, then you will not see this message.

Thanks

Naresh Kapse