npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tapsell-plus-cordova-plugin

v2.1.8

Published

Ultimate Cordova Plugin for Tapsell Plus to monetize hybrid apps. Show mobile Ad with single line of JavaScript. Compatible with Cordova CLI, PhoneGap Build, Ionic, etc.

Downloads

17

Readme

Tapsell Plus Plugin

Cordova / PhoneGap Plugin for Tapsell Plus.

Contents

  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

Description

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.

Features

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. :fire:
  • [x] Reward Video, highly recommended. :fire:
  • [ ] 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 plus demo with sample index.html
    plugin-verify tapsell-plus-cordova-plugin

Quick start

	# create a demo project
    cordova create test1 com.miladesign.tapsellplus Test1
    cd test1
    cordova platform add android

    # now add the plugin, cordova CLI will handle dependency automatically
    cordova plugin add tapsell-plus-cordova-plugin

    # now remove the default www content, copy the demo html file to www
    rm -r www/*;
    cp plugins/tapsell-plus-cordova-plugin/test/* www/;

	# now build and run the demo in your device or emulator
    cordova prepare; 
    cordova run android;
    # or import into eclipse

Installation

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

Notice:

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

Usage

Show Mobile Ad with single line of javascript code.

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

TapsellPlus.initialize('AppKey');

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

// it will display small banner at top center, using the default options
TapsellPlus.createBanner(zoneId, TapsellPlus.AD_POSITION.TOP_CENTER, TapsellPlus.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
TapsellPlus.requestInterstitial(zoneId);

// show the interstitial later, e.g. at end of game level
TapsellPlus.showInterstitial(responseId);

Step 4: Want rewarded video Ad to earn more money ? Easy, 2 lines of code.

// preppare and load ad resource in background, e.g. at begining of game level
TapsellPlus.requestRewardedVideo(zoneId);

// show the interstitial later, e.g. at end of game level
TapsellPlus.showRewardedVideo(responseId);

API

Methods:

// initialize plugin
initialize(appKey);

// use banner
createBanner(zoneId, position, size);
createBannerAtXY(zoneId, x, y, size);
removeBanner();
showBanner();
hideBanner();

// use interstitial
requestInterstitial(zoneId);
showInterstitial(responseId);

// use rewarded video
requestRewardedVideo(zoneId);
showRewardedVideo(responseId);

Events:

// response (on Ad Available)
// error (on NoAd Available)
// onError
// onOpened
// onClosed
// onRewarded
document.addEventListener('response', function(e){
    var data = e.detail || e.data || e;
	
	responseId = data.responseId;
	consoleLog("response. adType: " + data.adType);
});

Wiki and Docs

Quick start, simply copy & paste:

API Reference:

Other Documentations:

Screenshots

Android Banner | Android Interstitial | Android Rewarded Video -------|---------------|--------------- ScreenShot | ScreenShot | ScreenShot

License

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

Credits

This project is created and maintained by Milad Mohammadi Rezagah.

More Cordova/PhoneGap plugins by Milad Mohammadi Rezagah, 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.