admob-v2.*

Type CoronaProvider
Library ads.*
Revision Current Public Release (2014.2189)
Keywords ads, advertising, admob
Availability Starter, Basic, Pro, Enterprise
Platforms Android, iOS

Overview

The AdMob "v2" plugin offers easy integration of AdMob ads using the ads library and ads.init().

This version of the plugin uses the latest version of the AdMob SDK and only works with build 2014.2264 or later.

Functions

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.google.play.services"] =
        {
            publisherId = "com.coronalabs"
        },
    },      
}

Android

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

    android =
    {
        usesPermissions =
        {
            "android.permission.INTERNET",
            "android.permission.ACCESS_NETWORK_STATE",
        },
    },

Support