Integrating 3rd party SDKs (e.g. Ad Networks) into Corona using Native API?

Hi Folks,

your help is more than appreciated!

I am coming from native world, already with more than 20 apps/games in Android and iOS.

yet, I am new to Corona world.

In our native Apps we already integrated many Ad Networks  (adcolony, vungle, admob, falcon, many others) for both platforms Android and iOS.

Now we think to move to Corona platform, but we want to keep all Ad Networks,

So the question:

Given that we already have the native implementation for some network for both platforms, is there a clean/“official” way to use these implementations in Corona? and wrap them with lua code?

if possible, can you please guide us how to do that?

  • Is native API limited for Android API level?

  • are there any concern we need to know?

This is a big and crucial question for our business.

Thanks a lot,

Adam

Corona Labs offers three products:

  1. Corona SDK – This is where you program in Lua only.  There is no access to native code.  Corona Labs offers plugins for various advertisers who have provided them to us.  Vungle and AdMob are included.  This is available to Starter, Basic and Pro subscribers.
  2. Corona Enterprise – This product lets you build a native app that has a Lua/Corona SDK instance inside of it.  With this, you can pretty much use any native SDK available to you.
  3. Corona Cards – This product lets you include a Corona View in your native app.  Enterprise is more about the Corona App that can reach into native space.  Cards is the opposite philosophy.

Just to be clear, for Starter, Basic and Pro subscribers, you cannot link to 3rd party libraries unless it’s a Corona provided plugin.  If you need to do anything in native space, you will need Enterprise or Cards.

Rob

Thanks Rob,

Is there sample or guide to do such stuff using Corona Enterprise.

I see there is Corona Enterprise Quickstart , is it close enough? or there should be something more helpful?

Thanks,

I believe you can also get a 30-day trial of Corona Enterprise.

http://coronalabs.com/products/contact/

The main issue when linking Corona and Native libraries is understanding the Lua<->C-API and the Lua stack.

I highly recommend getting the following book if you decide to venture into the realm of Corona Enterprise:

http://www.lua.org/pil/

There are a couple of other Enterprise tutorials:

http://coronalabs.com/blog/2014/03/18/tutorial-corona-enterprise-quickstart-ios/

http://coronalabs.com/blog/2014/04/22/tutorial-image-printing-via-corona-enterprise-ios/

These are were written for SDK users in mind who don’t now much about native development.  The Enterprise download page links to several quick start guides that should get a skilled native developer going.

Rob

Thank you guys, wheels start moving.

one more small question :slight_smile:

What is required to make code (which includes the plugin) to “compile and run” on simulator with dummy implementation.

I see there should be dummy implementation as:

https://github.com/coronalabs/plugins-submission-template/blob/master/plugins/VERSION/mac-sim/plugin_PLUGIN_NAME.lua

seems not enough,

can you please direct me what else is needed?

Thanks a lot,

Corona Labs offers three products:

  1. Corona SDK – This is where you program in Lua only.  There is no access to native code.  Corona Labs offers plugins for various advertisers who have provided them to us.  Vungle and AdMob are included.  This is available to Starter, Basic and Pro subscribers.
  2. Corona Enterprise – This product lets you build a native app that has a Lua/Corona SDK instance inside of it.  With this, you can pretty much use any native SDK available to you.
  3. Corona Cards – This product lets you include a Corona View in your native app.  Enterprise is more about the Corona App that can reach into native space.  Cards is the opposite philosophy.

Just to be clear, for Starter, Basic and Pro subscribers, you cannot link to 3rd party libraries unless it’s a Corona provided plugin.  If you need to do anything in native space, you will need Enterprise or Cards.

Rob

Thanks Rob,

Is there sample or guide to do such stuff using Corona Enterprise.

I see there is Corona Enterprise Quickstart , is it close enough? or there should be something more helpful?

Thanks,

I believe you can also get a 30-day trial of Corona Enterprise.

http://coronalabs.com/products/contact/

The main issue when linking Corona and Native libraries is understanding the Lua<->C-API and the Lua stack.

I highly recommend getting the following book if you decide to venture into the realm of Corona Enterprise:

http://www.lua.org/pil/

There are a couple of other Enterprise tutorials:

http://coronalabs.com/blog/2014/03/18/tutorial-corona-enterprise-quickstart-ios/

http://coronalabs.com/blog/2014/04/22/tutorial-image-printing-via-corona-enterprise-ios/

These are were written for SDK users in mind who don’t now much about native development.  The Enterprise download page links to several quick start guides that should get a skilled native developer going.

Rob

Thank you guys, wheels start moving.

one more small question :slight_smile:

What is required to make code (which includes the plugin) to “compile and run” on simulator with dummy implementation.

I see there should be dummy implementation as:

https://github.com/coronalabs/plugins-submission-template/blob/master/plugins/VERSION/mac-sim/plugin_PLUGIN_NAME.lua

seems not enough,

can you please direct me what else is needed?

Thanks a lot,