PHPackages                             spassimeonov/cordova-plugin-dfp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. spassimeonov/cordova-plugin-dfp

ActiveLibrary

spassimeonov/cordova-plugin-dfp
===============================

02

Since Sep 25Compare

[ Source](https://github.com/spassimeonov/cordova-plugin-dfp)[ Packagist](https://packagist.org/packages/spassimeonov/cordova-plugin-dfp)[ RSS](/packages/spassimeonov-cordova-plugin-dfp/feed)WikiDiscussions Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

cordova-plugin-admob
====================

[](#cordova-plugin-admob)

DoubleClick for Publishers Cordova Plugin for Android and iOS compatible Phonegap 3.0 CLI

How to install plugin:

> cordova plugin add

\##Implementation:

There are two calls needed to get DFP Ads:

1. `createBannerView`

    Takes in a object containing a publisherId and adSize, as well as success and failure callbacks. An example call is provided below:

    ```
      admob.createBannerView(
          {
            'publisherId': 'INSERT_YOUR_PUBLISHER_ID_HERE',
            'adSize': admob.AD_SIZE.BANNER
          },
          successCallback,
          failureCallback
      );

    ```
2. `requestAd`

    Takes in an object containing an optional testing flag, and an optional list of extras. This method should only be invoked once createBannerView has invoked successCallback. An example call is provided below:

    ```
      admob.requestAd(
          {
            'isTesting': false,
            'extras': {
              'color_bg': 'AAAAFF',
              'color_bg_top': 'FFFFFF',
              'color_border': 'FFFFFF',
              'color_link': '000080',
              'color_text': '808080',
              'color_url': '008000'
            },
          },
          successCallback,
          failureCallback
      );

    ```

This plugin also allows you the option to listen for ad events. The following events are supported:

```
     document.addEventListener('onReceiveAd', callback);
     document.addEventListener('onFailedToReceiveAd', callback);
     document.addEventListener('onDismissScreen', callback);
     document.addEventListener('onPresentScreen', callback);
     document.addEventListener('onLeaveApplication', callback);

```

If you want to create an Interstitials sur `createInterstitialView`

```
     admob.createInterstitialView(
     {
       'publisherId': 'INSERT_YOUR_PUBLISHER_ID_HERE'
     },
     successCallback,
     failureCallback);

```

If you want Kill banner :

```
     admob.killAd(successCallback,failureCallback);

```

Based on:

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35485471?v=4)[Spas Simeonov](/maintainers/spassimeonov)[@spassimeonov](https://github.com/spassimeonov)

---

Top Contributors

[![rickgbw](https://avatars.githubusercontent.com/u/924158?v=4)](https://github.com/rickgbw "rickgbw (4 commits)")[![spassimeonov](https://avatars.githubusercontent.com/u/35485471?v=4)](https://github.com/spassimeonov "spassimeonov (2 commits)")

### Embed Badge

![Health badge](/badges/spassimeonov-cordova-plugin-dfp/health.svg)

```
[![Health](https://phpackages.com/badges/spassimeonov-cordova-plugin-dfp/health.svg)](https://phpackages.com/packages/spassimeonov-cordova-plugin-dfp)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
