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

cordova-plugin-pangleads

v1.0.4

Published

Pangleads sdk for cordova android

Downloads

10

Readme

cordova-plugin-pangleads

If you are earning more than USD$200 monthly from using this plugin, please consider buy me a coffee or paypal

Installation

cordova plugin add cordova-plugin-pangleads
cordova plugin add https://github.com/4quarenta/cordova-plugin-pangleads.git

IMPORTANT! there is currently a bug that I couldn't think of a way to solve (import the icons in a way that uses the default package), this happens because for the app open it is necessary to import the icon. If you have a solution for this let me know!

To avoid it, right after adding the plugin:

On line 33, replace

import com.example.app.R;

for your package

import com.yourpackage.app.R;

You can also do this substitution above inside

but this way you should run cordova prepare after.

done, just be happy! :)

Pangle SDK version

I will try to keep the latest version, current version is 'com.pangle.global:ads-sdk:4.6.0.4'

Usage

1. Create Ad Unit ID for your banner, app open and interstitial.

Go to the Pangle and add your app (if you haven't done so already), once your app is added to your Pangle account, create a new ad unit for it.

2. Init SDK


function success(result){
    console.log(result);
},
  
function error(result){
    console.log(result);
};
  
cordova.plugins.pangleads.initialize('YOU_APP_ID', success, error);

Now the plugin is ready to show ads

3. App Open Ads

cordova.plugins.pangleads.showAppOpen("SLOT_ID");

OR


function success(result){
    console.log(result);
},
  
function error(result){
    console.log(result);
};
  
cordova.plugins.pangleads.showAppOpen("SLOT_ID", 3000, success, error);

Note that 3000 is the timeout recommended by pangle, but with the plugin you are free to change it. Running the first way, 3000 is set by default.

4. Interstitial Ads


function success(result){
    console.log(result);
},
  
function error(result){
    console.log(result);
};

cordova.plugins.pangleads.showInterstitial("SLOT_ID", success, error);

5. Banner Ads

5.1 to show


function success(result){
    console.log(result);
},
  
function error(result){
    console.log(result);
};

cordova.plugins.pangleads.showBanner("SLOT_ID", success, error);

5.1 to destroy


function success(result){
    console.log(result);
},
  
function error(result){
    console.log(result);
};

cordova.plugins.pangleads.destroyBanner("SLOT_ID", success, error);

Note that to hide the banner it will be necessary to destroy it, to show it again it will be necessary to recreate it. soon i will add a function to just hide it