Corona Labs is pleased to announce the availability of our new RevMob plugin. Previously, Corona users accessed RevMob through a RESTful API. Now, it’s available as an official plugin.
RevMob is a popular advertising platform that offers a full range of ad types such as banners, interstitial ads, video, and rewarded video ads. They are known for high fill rates, worldwide reach, and engaging content.
Gustavo Goldenberg, Head of Publisher Relations at RevMob, says of the partnership, “we have thousands of publishers in our network that have Corona as their platform of choice. By working closely with Corona Labs to create an even more seamless integration, we are sure that even more developers will join in to build amazing experiences with Corona’s versatile and easy-to-use engine.”
This version of the plugin initially supports banner, full screen, interstitial video, and rewarded video ad types on iOS and Android.
Getting started
You must first sign up with RevMob at their website. From their dashboard, visit the Media tab and create various media entries. A media entry is basically an item for each app and platform you want to put ads in. If you want to have both an Android and iOS app, you will need two media entries: one for Android and one for iOS. RevMob will generate a unique Media ID for each version of your app and you will use those IDs in your code.
After you have an app added to the dashboard, you need to create Placements. You will get a unique Placement ID for each ad type and ad position you wish to support in your app, and those Placement IDs can be used in your Corona code.
Including the plugin
You must modify your build.settings
file to enable loading the plugin:
settings = { plugins = { ["plugin.revmob"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true } }, }, }
If building for iOS, you must also bypass App Transport Security (ATS) by adding the following to the plist
table of build.settings
. For more information on ATS, please see the Managing App Transport Security guide.
settings = { iphone = { plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, }, }, }
Session management
RevMob needs to have their session started. As a convenience, calling revmob.init() will start your session for you. However, if you did not have Internet connectivity when your app started or if your app resumes from being suspended, you may need to start the session manually. See the documentation on how to do this.
Improving performance
RevMob supports targeting ads to a finer-grained audience. To do so, they need to know some demographic data about your app’s user. Once you know that data, you can inform RevMob using the revmob.setUserDetails() API call. For example, you can provide the app user’s gender, age range, birthday and/or user interests to RevMob so they can provide better ads. However, keep in mind that you will have to collect this information from the user for it to be useful, and users may be reluctant to provide it.
Limitations
We do not currently support popup or link type ads. We also do not support their mobile website platform.
Conclusion
RevMob is a very popular ad choice. It’s easy to implement and provides good fill rates and high quality ads. To learn more please read our documentation. If you have questions, please visit the Corona Labs forums.