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-flurry

v5.3.3

Published

Cordova Plugin for Yahoo Flurry Ads to monetize hybrid apps.

Downloads

3

Readme

Cordova Plugin for Flurry Ads

Present Flurry Ads in Mobile App/Games natively with single line of JavaScript.

Highlights:

  • [x] Easy-to-use APIs. Display Ad with single line of Js code.
  • [x] Support Banner, Interstitial Ad, and Video Ad.
  • [x] One plugin supports both Android and iOS platform.
  • [x] Fixed and overlapped mode.
  • [x] Auto fit on orientation change.
  • [x] Same API with other RjFun Ad Plugins, easily to switch to other Ad.
  • [x] Actively maintained, prompt support.

Compatible with:

  • [x] Cordova CLI, v3.5+
  • [x] Intel XDK and Crosswalk, r1095+
  • [x] IBM Worklight, v6.2+
  • [x] Google Mobile Chrome App
  • [x] Adobe PhoneGap Build, since 2014/12/9
  • [x] Ionic

How to use?

cordova plugin add cordova-plugin-flurry
<gap:plugin name="com.rjfun.cordova.flurryads" source="plugins.cordova.io"/>
  • If use with Intel XDK: Project -> CORDOVA 3.X HYBRID MOBILE APP SETTINGS -> PLUGINS AND PERMISSIONS -> Third-Party Plugins -> Add a Third-Party Plugin -> Get Plugin from the Web, input:
Name: FlurryAdsPluginPro
Plugin ID: com.rjfun.cordova.flurryads
[x] Plugin is located in the Apache Cordova Plugins Registry

Quick Start Example Code

Step 1: Prepare your Flurry Id for your app, create it in Flurry Developers website

var ad_units = {
	ios : { 
		banner:"2DYY249X5G798HMF3MTH",
		interstitial:"2DYY249X5G798HMF3MTH"
	},
	android : {
		banner:"G56KN4J49YT66CFRD5K6",
		interstitial:"G56KN4J49YT66CFRD5K6"
	}
};

// select the right Ad Id according to platform
var adid = (/(android)/i.test(navigator.userAgent)) ? ad_units.android : ad_units.ios;

Step 2: Create a banner with single line of javascript

// it will display smart banner at top center, using the default options
if(FlurryAds) FlurryAds.createBanner( adid.banner );

Or, show the banner Ad in some other way:

// or, show a default banner at bottom
if(FlurryAds) FlurryAds.createBanner( {
	adId: adid.banner, 
	position:FlurryAds.AD_POSITION.BOTTOM_CENTER, 
	autoShow:true} );

Step 3: Prepare an interstitial, and show it when needed

// preppare and load ad resource in background, e.g. at begining of game level
if(FlurryAds) FlurryAds.prepareInterstitial( {adId:adid.interstitial, autoShow:false} );

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

Check the example code [test/index.html] (https://github.com/floatinghotpot/cordova-plugin-flurry/blob/master/test/index.html)

Javascript API Overview

Methods:

// set default value for other methods
setOptions(options, success, fail);

// for banner
createBanner(adId/options, success, fail);
removeBanner();
showBanner(position);
showBannerAtXY(x, y);
hideBanner();

// for interstitial
prepareInterstitial(adId/options, success, fail);
showInterstitial();

// for native ad
createNativeAd(adId, success, fail);
removeNativeAd(adId);
setNativeAdClickArea(adId,x,y,w,h);

Detailed Documentation

The APIs, Events and Options are detailed documented.

Read the detailed API Reference Documentation English.

FAQ

If encounter problem when using the plugin, please read the FAQ first.

Full Example Code

This FlurryAds Plugin Pro offers the most flexibility and many options.

Check the [test/index.html] (https://github.com/floatinghotpot/cordova-plugin-fllurry/blob/master/test/index.html).

Screenshots

iPhone Banner | iPhone Interstitial -----|----------- ScreenShot | ScreenShot

Impressive Video Ad

ScreenShot

Ad PluginPro series for the world leading Mobile Ad services:

More Cordova/PhoneGap plugins by Raymond Xie, find them in plugin registry.

If use in commercial project or need prompt support, please buy a license, you will be served with high priority.

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