startapp.*

Type Library
Revision Release 2024.3703
Keywords ads, advertising, StartApp
Platforms Android

Overview

The StartApp plugin allows developers to monetize users through StartApp static interstitial ads, video interstitial ads, rewarded video ads, splash ads, return ads and banner ads.

Registration

Before you can use this plugin, you must register with StartApp.

Syntax

local startapp = require( "plugin.startapp" )

Functions

startapp.init()

startapp.load()

startapp.show()

startapp.hide()

startapp.showSplash()

startapp.isLoaded()

startapp.setUserConsent()

Events

adsRequest

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

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

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