tapfortap.*

Type library
Revision 2014.2483
Keywords TapForTap
Sample code Sample code
See also
Availability Starter, Basic, Pro, Enterprise

Overview

Tap for Tap is a cross-promotion and monetization network for iOS and Android apps. Drive installs by swapping clicks on our free tap exchange or by purchasing CPI, CPC or CPM traffic. Make money with our monetization platform by showing ads. Use the Earning Preference slider to determine what kind of ads you want to show and how you want to be paid. Choose "Get Users" to display Tap Exchange ads and be paid in Tap Credits; Choose "Make Money" to display ads on a revenue share basis and watch your app business grow! Visit tapfortap.com for more information.

Sign Up

To use Tap for Tap please sign up for a free account.

Platforms

The following platforms are supported:

Syntax

local tapfortap = require "plugin.tapfortap"

Functions

tapfortap.initialize(apiKey)
tapfortap.setYearOfBirth(year)
tapfortap.setGender(gender)
tapfortap.setLocation(latitude, longitude)
tapfortap.setUserAccountId(accountId)
tapfortap.getVersion()
tapfortap.createAdView(verticalAlignment, horizontalAlignment, xOffset, yOffset, scale)
tapfortap.removeAdView()
tapfortap.setAdViewListener(function)
tapfortap.prepareInterstitial()
tapfortap.showInterstitial()
tapfortap.setInterstitialListener(function)
tapfortap.interstitialIsReady()
tapfortap.prepareAppWall()
tapfortap.showAppWall()
tapfortap.setAppWallListener(function)
tapfortap.appWallIsReady()

Project Settings

SDK

When you build using the Corona Simulator, the server automatically takes care of downloading the plugin for your project.

All you need to do is add an entry into a plugins table of your build.settings. The following is an example of a minimal build.settings file:

settings =
{
    plugins =
    {
        -- key is the name passed to Lua's 'require()'
        ["plugin.tapfortap"] =
        {
            -- required
            publisherId = "com.tapfortap",
        },
    },
}

Enterprise

The source for the Tap for Tap plugin is available in the Tap for Tap github Corona repository.

Sample Code

A sample project can be found in the Tap for Tap github Corona repository.

Support

More support is available from the Tap for Tap team:

Tap for Tap Corona Forum

Tap for Tap Homepage