advertisingId.*

Type Library
Revision Release 2024.3703
Keywords advertising, ID
Platforms Android, iOS

Overview

Provides access to the advertising identifier.

Syntax

local advertisingId = require( "plugin.advertisingId" )

Functions

advertisingId.getAdvertisingId()

advertisingId.isTrackingEnabled()

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