appnext.*

Type Library
Revision Current Public Release (2017.3135)
Keywords ads, advertising, Appnext
Platforms Android, iOS
Sample https://www.appnext.com/plugins/coronaTestApp.zip

Overview

Appnext is a leading mobile discovery platform, helping millions of users experience apps at the right moments throughout the day. Our platform provides mobile publishers and app marketers with end-to-end technology solutions for premium monetization and app growth.

Leading mobile and in-app video advertising since 2012, Appnext has partnered with the top app, game, mobile web publishers, as well as OEMs and mobile operators to help them grow their mobile businesses by promoting apps.

With a growing community of over 70,000 developers and 500M users worldwide, we've created a marketplace that connects publishers and advertisers directly and transparently, amplifying their monetization and advertising efforts.

Registration

To begin, please register with Appnext.

Note

A unique ID called a placement ID is required for all inbound requests. This is a 32-character string generated by Appnext for every registered app. To get started, add a new app via the Appnext Self-Service Platform, then obtain the placement ID in your account at:

Apps[Settings Icon]Settings & PlacementsPlacement ID

If you're developing for both Android and iOS, copy the appropriate placement ID for each platform.

Syntax

local appnext = require( "plugin.appnext" )

Functions

Events

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["plugin.appnext"] =
        {
            publisherId = "com.appnext",
        },
    },      
}

Important

If building for iOS, you must bypass App Transport Security (ATS) by adding the following to the plist table of build.settings. While Corona Labs does not blindly encourage this approach for all developers and projects, bypassing ATS is required in certain cases. For more information on ATS, please see the Managing App Transport Security guide.

settings =
{
    iphone =
    {
        plist =
        {
            NSAppTransportSecurity = { NSAllowsArbitraryLoads=true },
        },
    },
}
Note

For Android, the following permissions/features are automatically added when using this plugin:

  • "android.permission.INTERNET"
  • "android.permission.ACCESS_NETWORK_STATE"