inMobi and Corona SDK

Hello,

It was supposed that Corona SDK support inMobi Ads.

However, in the new build 2013.1100, inMobi Ads are working only on iPad!! 

When I try on iPhone or iPod, it does not show anything.

I only get iserror = true

I did try: 320x48, 320x50, 

Any help please!!!

Thanks,

LO

Hello @idea-factory,

Can you please post your code where you call/request the ad?

Thanks,

Brent

Hello,

Thanks for your reply. Here is the code that works fine on iPad and does not work on iPhone and iPod:

[lua]

– class  inmobi

local id=“xxxxxxxxxxxxxxxxxx”

local  test=false

local function adListener( event )

    if event.isError then

        print(“Error calling the banner”) – on iphone always return true for some reason

    end

end

function showBanner(xx,yy)

        

    ads.show( “banner320x48”, { x=xx, y=yy, interval=60, testMode=test } )

end

ads.init( “inmobi”,id, adListener )

– class Where call the banner

showBanner(_W/2,_H/2)

[/lua]

Hi LO,

Does this only occur with Build 1100 and above? What happens when you try with Build 1076?

Hello,

Using the version 1106 the banners are now appearing normally.

I think it was a problem with old versions of CoronaSDK or InMobi missing banners for my country. I only get iserror = true

In the 1076 it does work! But we need some features of posterior versions…

Thanks for all

LO

Hello @idea-factory,

Can you please post your code where you call/request the ad?

Thanks,

Brent

Hello,

Thanks for your reply. Here is the code that works fine on iPad and does not work on iPhone and iPod:

[lua]

– class  inmobi

local id=“xxxxxxxxxxxxxxxxxx”

local  test=false

local function adListener( event )

    if event.isError then

        print(“Error calling the banner”) – on iphone always return true for some reason

    end

end

function showBanner(xx,yy)

        

    ads.show( “banner320x48”, { x=xx, y=yy, interval=60, testMode=test } )

end

ads.init( “inmobi”,id, adListener )

– class Where call the banner

showBanner(_W/2,_H/2)

[/lua]

Hi LO,

Does this only occur with Build 1100 and above? What happens when you try with Build 1076?

Hello,

Using the version 1106 the banners are now appearing normally.

I think it was a problem with old versions of CoronaSDK or InMobi missing banners for my country. I only get iserror = true

In the 1076 it does work! But we need some features of posterior versions…

Thanks for all

LO

I am using 2013.1120 to build my app.

We do use inMobi in our app, before using 2013.1027. inMobi is OK.

But…

CoronaSDK 2013.1120

iOS: Removing iAds lib

iOS: Removing inMobi lib

When I build my app for testing, it shows

ERROR: Could not load provider (inmobi) due to the following reason: module ‘CoronaProvider.ads.inmobi’ not found:resource 

Why ???

What can we do now?

Hi @kc0001,

In the most recent builds, these libraries have been “detached” from the core of Corona SDK, and they are now being offered as part of Plugins. In the case of ad services, you basically use them the same, but you need to add the plugin to your build.settings.

Details are contained in the “daily build” documentation here:

http://docs.coronalabs.com/daily/api/library/ads/index.html

Let me know if you need further assistance with this. The concept here is that by detaching these and similar libraries from the core, it makes the core “lighter” for developers who don’t need those, and also makes it easier to maintain and diagnose issues with plugins that have been added to a specific build/project.

Sincerely,

Brent Sorrentino

Problem solved!

Thanks!

I am using 2013.1120 to build my app.

We do use inMobi in our app, before using 2013.1027. inMobi is OK.

But…

CoronaSDK 2013.1120

iOS: Removing iAds lib

iOS: Removing inMobi lib

When I build my app for testing, it shows

ERROR: Could not load provider (inmobi) due to the following reason: module ‘CoronaProvider.ads.inmobi’ not found:resource 

Why ???

What can we do now?

Hi @kc0001,

In the most recent builds, these libraries have been “detached” from the core of Corona SDK, and they are now being offered as part of Plugins. In the case of ad services, you basically use them the same, but you need to add the plugin to your build.settings.

Details are contained in the “daily build” documentation here:

http://docs.coronalabs.com/daily/api/library/ads/index.html

Let me know if you need further assistance with this. The concept here is that by detaching these and similar libraries from the core, it makes the core “lighter” for developers who don’t need those, and also makes it easier to maintain and diagnose issues with plugins that have been added to a specific build/project.

Sincerely,

Brent Sorrentino

Problem solved!

Thanks!