Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-ad-admob

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-ad-admob - npm Package Compare versions

Comparing version 1.0.113 to 1.0.114

src/wp8/AdMobOverlap.cs

4

package.json
{
"name": "cordova-plugin-ad-admob",
"version": "1.0.113",
"description": "Show admob banner and interstitial ad",
"version": "1.0.114",
"description": "Show admob banner, interstitial and rewarded interstitial ad",
"cordova": {

@@ -6,0 +6,0 @@ "id": "cordova-plugin-ad-admob",

@@ -95,3 +95,3 @@ Cordova AdMob plugin

Updated AdMob iOS SDK v7.10.0
Added rewarded video ad
Added rewarded interstitial ad

@@ -282,3 +282,3 @@ To-Do:

var interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT";
var rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT";
var rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT";
var isOverlap = true; //true: overlap, false: split

@@ -295,3 +295,3 @@ var isTest = true;

interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT";
rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT";
rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT";
}

@@ -302,3 +302,3 @@ //ios

interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT";
rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT";
rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT";
}

@@ -309,3 +309,3 @@ //wp8

interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT";
rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT";
rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT";
}

@@ -319,3 +319,3 @@ */

window.admob.setUp(bannerAdUnit, interstitialAdUnit, rewardedVideoAdUnit, isOverlap, isTest);
window.admob.setUp(bannerAdUnit, interstitialAdUnit, rewardedInterstitialAdUnit, isOverlap, isTest);

@@ -349,16 +349,16 @@ //

//
window.admob.onRewardedVideoAdPreloaded = function() {
alert('onRewardedVideoAdPreloaded');
window.admob.onRewardedInterstitialAdPreloaded = function() {
alert('onRewardedInterstitialAdPreloaded');
};
window.admob.onRewardedVideoAdLoaded = function() {
alert('onRewardedVideoAdLoaded');
window.admob.onRewardedInterstitialAdLoaded = function() {
alert('onRewardedInterstitialAdLoaded');
};
window.admob.onRewardedVideoAdShown = function() {
alert('onRewardedVideoAdShown');
window.admob.onRewardedInterstitialAdShown = function() {
alert('onRewardedInterstitialAdShown');
};
window.admob.onRewardedVideoAdHidden = function() {
alert('onRewardedVideoAdHidden');
window.admob.onRewardedInterstitialAdHidden = function() {
alert('onRewardedInterstitialAdHidden');
};
window.admob.onRewardedVideoAdCompleted = function() {
alert('onRewardedVideoAdCompleted');
window.admob.onRewardedInterstitialAdCompleted = function() {
alert('onRewardedInterstitialAdCompleted');
};

@@ -386,12 +386,12 @@ }, false);

window.admob.preloadRewardedVideoAd();//option, download ad previously for fast show
window.admob.showRewardedVideoAd();
window.admob.preloadRewardedInterstitialAd();//option, download ad previously for fast show
window.admob.showRewardedInterstitialAd();
alert(window.admob.loadedBannerAd());//boolean: true or false
alert(window.admob.loadedInterstitialAd());//boolean: true or false
alert(window.admob.loadedRewardedVideoAd());//boolean: true or false
alert(window.admob.loadedRewardedInterstitialAd());//boolean: true or false
alert(window.admob.isShowingBannerAd());//boolean: true or false
alert(window.admob.isShowingInterstitialAd());//boolean: true or false
alert(window.admob.isShowingRewardedVideoAd());//boolean: true or false
alert(window.admob.isShowingRewardedInterstitialAd());//boolean: true or false
```

@@ -398,0 +398,0 @@ # Examples #

@@ -5,6 +5,6 @@

_loadedInterstitialAd: false,
_loadedRewardedVideoAd: false,
_loadedRewardedInterstitialAd: false,
_isShowingBannerAd: false,
_isShowingInterstitialAd: false,
_isShowingRewardedVideoAd: false,
_isShowingRewardedInterstitialAd: false,
_fixCocoonIOCordovaAndroidAdMobIssue: false,

@@ -22,5 +22,5 @@ //

},
setUp: function(bannerAdUnit, interstitialAdUnit, rewardedVideoAdUnit, isOverlap, isTest) {
setUp: function(bannerAdUnit, interstitialAdUnit, rewardedInterstitialAdUnit, isOverlap, isTest) {
if (typeof isTest == 'undefined') {
isOverlap=rewardedVideoAdUnit;
isOverlap=rewardedInterstitialAdUnit;
isTest=isOverlap;

@@ -105,28 +105,28 @@ }

//
else if (event == "onRewardedVideoAdPreloaded") {
if (self.onRewardedVideoAdPreloaded)
self.onRewardedVideoAdPreloaded();
else if (event == "onRewardedInterstitialAdPreloaded") {
if (self.onRewardedInterstitialAdPreloaded)
self.onRewardedInterstitialAdPreloaded();
}
else if (event == "onRewardedVideoAdLoaded") {
self._loadedRewardedVideoAd = true;
else if (event == "onRewardedInterstitialAdLoaded") {
self._loadedRewardedInterstitialAd = true;
if (self.onRewardedVideoAdLoaded)
self.onRewardedVideoAdLoaded();
if (self.onRewardedInterstitialAdLoaded)
self.onRewardedInterstitialAdLoaded();
}
else if (event == "onRewardedVideoAdShown") {
self._loadedRewardedVideoAd = false;
self._isShowingRewardedVideoAd = true;
else if (event == "onRewardedInterstitialAdShown") {
self._loadedRewardedInterstitialAd = false;
self._isShowingRewardedInterstitialAd = true;
if (self.onRewardedVideoAdShown)
self.onRewardedVideoAdShown();
if (self.onRewardedInterstitialAdShown)
self.onRewardedInterstitialAdShown();
}
else if (event == "onRewardedVideoAdHidden") {
self._isShowingRewardedVideoAd = false;
else if (event == "onRewardedInterstitialAdHidden") {
self._isShowingRewardedInterstitialAd = false;
if (self.onRewardedVideoAdHidden)
self.onRewardedVideoAdHidden();
if (self.onRewardedInterstitialAdHidden)
self.onRewardedInterstitialAdHidden();
}
else if (event == "onRewardedVideoAdCompleted") {
if (self.onRewardedVideoAdCompleted)
self.onRewardedVideoAdCompleted();
else if (event == "onRewardedInterstitialAdCompleted") {
if (self.onRewardedInterstitialAdCompleted)
self.onRewardedInterstitialAdCompleted();
}

@@ -147,3 +147,3 @@ }

'setUp',
[bannerAdUnit, interstitialAdUnit, rewardedVideoAdUnit, isOverlap, isTest]
[bannerAdUnit, interstitialAdUnit, rewardedInterstitialAdUnit, isOverlap, isTest]
);

@@ -235,3 +235,3 @@ },

//
preloadRewardedVideoAd: function() {
preloadRewardedInterstitialAd: function() {
cordova.exec(

@@ -241,7 +241,7 @@ null,

'AdMobPlugin',
'preloadRewardedVideoAd',
'preloadRewardedInterstitialAd',
[]
);
},
showRewardedVideoAd: function() {
showRewardedInterstitialAd: function() {
cordova.exec(

@@ -251,3 +251,3 @@ null,

'AdMobPlugin',
'showRewardedVideoAd',
'showRewardedInterstitialAd',
[]

@@ -267,4 +267,4 @@ );

},
loadedRewardedVideoAd: function() {
return this._loadedRewardedVideoAd;
loadedRewardedInterstitialAd: function() {
return this._loadedRewardedInterstitialAd;
},

@@ -282,4 +282,4 @@ isShowingBannerAd: function() {

},
isShowingRewardedVideoAd: function() {
return this._isShowingRewardedVideoAd;
isShowingRewardedInterstitialAd: function() {
return this._isShowingRewardedInterstitialAd;
},

@@ -303,7 +303,7 @@ onBannerAdPreloaded: null,

//
onRewardedVideoAdPreloaded: null,
onRewardedVideoAdLoaded: null,
onRewardedVideoAdShown: null,
onRewardedVideoAdHidden: null,
onRewardedVideoAdCompleted: null
onRewardedInterstitialAdPreloaded: null,
onRewardedInterstitialAdLoaded: null,
onRewardedInterstitialAdShown: null,
onRewardedInterstitialAdHidden: null,
onRewardedInterstitialAdCompleted: null
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc