Navel Pondering Mantra


    4.7.4 • Public • Published

    Tapsell Plugin

    Cordova / PhoneGap Plugin for Tapsell.


    1. Description
    2. Features
    3. Demo
    4. Quick Start
    5. Installation
    6. Usage
    7. API
    8. Wiki and Docs
    9. Screenshots
    10. License
    11. Credits


    This Cordova / PhoneGap plugin enables displaying mobile Ads with single line of javascript code. Designed for the use in HTML5-based cross-platform hybrid games and other applications.


    Platforms supported:

    • [ ] Amazon-FireOS, via Android SDK (part of Google Play service)
    • [x] Android, via Android SDK (part of Google Play service)
    • [ ] iOS
    • [ ] Windows Phone

    Ad Types:

    • [x] Banner
    • [x] Interstitial (picture, video), highly recommended. 🔥
    • [x] Reward Video, highly recommended. 🔥
    • [ ] Native Ads (on roadmap)
    • [ ] Native Ads Advanced (on roadmap)

    Quick Demo

    Wanna quickly see the mobile ad on your simulator or device? Try the following commands.

        # install cordova CLI
        [sudo] npm install cordova -g
        # install a small utility to run all the commands for you
        [sudo] npm install plugin-verify -g
        # Demo: run tapsell demo with sample index.html
        plugin-verify tapsell-cordova-plugin

    Quick start

    	# create a demo project
        cordova create test1 com.miladesign.masterofadd Test1
        cd test1
        cordova platform add android
        # now add the plugin, cordova CLI will handle dependency automatically
        cordova plugin add tapsell-cordova-plugin
        # now remove the default www content, copy the demo html file to www
        rm -r www/*;
        cp plugins/tapsell-cordova-plugin/test/* www/;
    	# now build and run the demo in your device or emulator
        cordova prepare; 
        cordova run android;
        # or import into eclipse


    • If use with Cordova CLI:
    cordova plugin add tapsell-cordova-plugin
    • If use with PhoneGap Build:
    <plugin name="tapsell-cordova-plugin" source="npm"></plugin>


    • If build locally using tapsell-cordova-plugin, to avoid build error, you need install some extras in Android SDK manager (type android sdk to launch it): android extra


    Show Mobile Ad with single line of javascript code.

    Step 1: Create new application, in Tapsell portal, then write it in your javascript code.


    Step 2: Want cheap and basic banner? single line of javascript code.

    // it will display small banner at top center, using the default options
    Tapsell.createBanner(zoneId, Tapsell.AD_POSITION.TOP_CENTER, Tapsell.AD_SIZE.BANNER_320x50);

    Step 3: Want interstitial Ad to earn more money ? Easy, 2 lines of code.

    // preppare and load ad resource in background, e.g. at begining of game level
    Tapsell.requestAd(zoneId, Tapsell.CACHE_TYPE.STREAMED);
    // show the interstitial later, e.g. at end of game level
    Tapsell.showAd(false, false, Tapsell.AD_ROTATION.UNLOCKED, false);



    // initialize plugin
    // use banner
    createBanner(zoneId, position, size);
    createBannerAtXY(zoneId, x, y, size);
    // use interstitial/reward video
    requestAd(zoneId, cacheType);
    showAd(backDisabled, immersiveMode, rotationMode, showDialog);


    // onAdAvailable
    // onNoAdAvailable
    // onError
    // onNoNetwork
    // onExpiring
    // onOpened
    // onClosed
    // onAdShowFinished
    // onRequestFilled
    // onHideBannerView
    // onShowFailed
    document.addEventListener('onAdAvailable', function(e){
        // handle the event

    Wiki and Docs

    Quick start, simply copy & paste:

    API Reference:

    Other Documentations:


    Android Banner Android Interstitial
    ScreenShot ScreenShot


    You can use the plugin for free, or you can also pay to get a license. IMPORTANT!!! Before using the plugin, please read the following content and accept the agreement. THIS WILL AVOID POTENTIAL PROBLEM AND DISPUTE.

    There are 3 license options, fully up to you:

    1. Free and Open Source, no support
    2. Commercial, with email/skype support
    3. Win-win partnership, with forum support


    This project is created and maintained by Milad Mohammadi.

    More Cordova/PhoneGap plugins by Milad Mohammadi, find them in plugin registry, or find them in npm.

    Project outsourcing and consulting service is also available. Please contact us if you have the business needs.


    npm i tapsell-cordova-plugin

    DownloadsWeekly Downloads






    Unpacked Size

    1.13 MB

    Total Files


    Last publish


    • miladesign