cordova-plugin-ad-admob
Advanced tools
Comparing version 1.0.116 to 1.0.117
{ | ||
"name": "cordova-plugin-ad-admob", | ||
"version": "1.0.116", | ||
"description": "Show admob banner, interstitial and rewarded interstitial ad", | ||
"version": "1.0.117", | ||
"description": "Show admob banner, interstitial and rewarded video ad", | ||
"cordova": { | ||
@@ -6,0 +6,0 @@ "id": "cordova-plugin-ad-admob", |
@@ -5,3 +5,3 @@ Cordova AdMob plugin | ||
# Overview # | ||
Show admob banner and interstitial ad | ||
Show admob banner, interstitial and rewarded video ad. | ||
@@ -96,3 +96,3 @@ [android, ios, wp8] [cordova cli] [xdk] [cocoon] [phonegap build service] | ||
Updated AdMob iOS SDK v7.10.0 | ||
Added rewarded interstitial ad | ||
Added rewarded video ad | ||
@@ -283,3 +283,3 @@ To-Do: | ||
var interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT"; | ||
var rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT"; | ||
var rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT"; | ||
var isOverlap = true; //true: overlap, false: split | ||
@@ -296,3 +296,3 @@ var isTest = true; | ||
interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT"; | ||
rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT"; | ||
rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT"; | ||
} | ||
@@ -303,3 +303,3 @@ //ios | ||
interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT"; | ||
rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT"; | ||
rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT"; | ||
} | ||
@@ -310,3 +310,3 @@ //wp8 | ||
interstitialAdUnit = "REPLACE_THIS_WITH_YOUR_INTERSTITIAL_AD_UNIT"; | ||
rewardedInterstitialAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_INTERSTITIAL_AD_UNIT"; | ||
rewardedVideoAdUnit = "REPLACE_THIS_WITH_YOUR_REWARDED_VIDEO_AD_UNIT"; | ||
} | ||
@@ -320,3 +320,3 @@ */ | ||
window.admob.setUp(bannerAdUnit, interstitialAdUnit, rewardedInterstitialAdUnit, isOverlap, isTest); | ||
window.admob.setUp(bannerAdUnit, interstitialAdUnit, rewardedVideoAdUnit, isOverlap, isTest); | ||
@@ -350,16 +350,16 @@ // | ||
// | ||
window.admob.onRewardedInterstitialAdPreloaded = function() { | ||
alert('onRewardedInterstitialAdPreloaded'); | ||
window.admob.onRewardedVideoAdPreloaded = function() { | ||
alert('onRewardedVideoAdPreloaded'); | ||
}; | ||
window.admob.onRewardedInterstitialAdLoaded = function() { | ||
alert('onRewardedInterstitialAdLoaded'); | ||
window.admob.onRewardedVideoAdLoaded = function() { | ||
alert('onRewardedVideoAdLoaded'); | ||
}; | ||
window.admob.onRewardedInterstitialAdShown = function() { | ||
alert('onRewardedInterstitialAdShown'); | ||
window.admob.onRewardedVideoAdShown = function() { | ||
alert('onRewardedVideoAdShown'); | ||
}; | ||
window.admob.onRewardedInterstitialAdHidden = function() { | ||
alert('onRewardedInterstitialAdHidden'); | ||
window.admob.onRewardedVideoAdHidden = function() { | ||
alert('onRewardedVideoAdHidden'); | ||
}; | ||
window.admob.onRewardedInterstitialAdCompleted = function() { | ||
alert('onRewardedInterstitialAdCompleted'); | ||
window.admob.onRewardedVideoAdCompleted = function() { | ||
alert('onRewardedVideoAdCompleted'); | ||
}; | ||
@@ -387,12 +387,12 @@ }, false); | ||
window.admob.preloadRewardedInterstitialAd();//option, download ad previously for fast show | ||
window.admob.showRewardedInterstitialAd(); | ||
window.admob.preloadRewardedVideoAd();//option, download ad previously for fast show | ||
window.admob.showRewardedVideoAd(); | ||
alert(window.admob.loadedBannerAd());//boolean: true or false | ||
alert(window.admob.loadedInterstitialAd());//boolean: true or false | ||
alert(window.admob.loadedRewardedInterstitialAd());//boolean: true or false | ||
alert(window.admob.loadedRewardedVideoAd());//boolean: true or false | ||
alert(window.admob.isShowingBannerAd());//boolean: true or false | ||
alert(window.admob.isShowingInterstitialAd());//boolean: true or false | ||
alert(window.admob.isShowingRewardedInterstitialAd());//boolean: true or false | ||
alert(window.admob.isShowingRewardedVideoAd());//boolean: true or false | ||
``` | ||
@@ -399,0 +399,0 @@ # Examples # |
@@ -5,6 +5,6 @@ | ||
_loadedInterstitialAd: false, | ||
_loadedRewardedInterstitialAd: false, | ||
_loadedRewardedVideoAd: false, | ||
_isShowingBannerAd: false, | ||
_isShowingInterstitialAd: false, | ||
_isShowingRewardedInterstitialAd: false, | ||
_isShowingRewardedVideoAd: false, | ||
_fixCocoonIOCordovaAndroidAdMobIssue: false, | ||
@@ -22,5 +22,5 @@ // | ||
}, | ||
setUp: function(bannerAdUnit, interstitialAdUnit, rewardedInterstitialAdUnit, isOverlap, isTest) { | ||
setUp: function(bannerAdUnit, interstitialAdUnit, rewardedVideoAdUnit, isOverlap, isTest) { | ||
if (typeof isTest == 'undefined') { | ||
isOverlap=rewardedInterstitialAdUnit; | ||
isOverlap=rewardedVideoAdUnit; | ||
isTest=isOverlap; | ||
@@ -105,28 +105,28 @@ } | ||
// | ||
else if (event == "onRewardedInterstitialAdPreloaded") { | ||
if (self.onRewardedInterstitialAdPreloaded) | ||
self.onRewardedInterstitialAdPreloaded(); | ||
else if (event == "onRewardedVideoAdPreloaded") { | ||
if (self.onRewardedVideoAdPreloaded) | ||
self.onRewardedVideoAdPreloaded(); | ||
} | ||
else if (event == "onRewardedInterstitialAdLoaded") { | ||
self._loadedRewardedInterstitialAd = true; | ||
else if (event == "onRewardedVideoAdLoaded") { | ||
self._loadedRewardedVideoAd = true; | ||
if (self.onRewardedInterstitialAdLoaded) | ||
self.onRewardedInterstitialAdLoaded(); | ||
if (self.onRewardedVideoAdLoaded) | ||
self.onRewardedVideoAdLoaded(); | ||
} | ||
else if (event == "onRewardedInterstitialAdShown") { | ||
self._loadedRewardedInterstitialAd = false; | ||
self._isShowingRewardedInterstitialAd = true; | ||
else if (event == "onRewardedVideoAdShown") { | ||
self._loadedRewardedVideoAd = false; | ||
self._isShowingRewardedVideoAd = true; | ||
if (self.onRewardedInterstitialAdShown) | ||
self.onRewardedInterstitialAdShown(); | ||
if (self.onRewardedVideoAdShown) | ||
self.onRewardedVideoAdShown(); | ||
} | ||
else if (event == "onRewardedInterstitialAdHidden") { | ||
self._isShowingRewardedInterstitialAd = false; | ||
else if (event == "onRewardedVideoAdHidden") { | ||
self._isShowingRewardedVideoAd = false; | ||
if (self.onRewardedInterstitialAdHidden) | ||
self.onRewardedInterstitialAdHidden(); | ||
if (self.onRewardedVideoAdHidden) | ||
self.onRewardedVideoAdHidden(); | ||
} | ||
else if (event == "onRewardedInterstitialAdCompleted") { | ||
if (self.onRewardedInterstitialAdCompleted) | ||
self.onRewardedInterstitialAdCompleted(); | ||
else if (event == "onRewardedVideoAdCompleted") { | ||
if (self.onRewardedVideoAdCompleted) | ||
self.onRewardedVideoAdCompleted(); | ||
} | ||
@@ -147,3 +147,3 @@ } | ||
'setUp', | ||
[bannerAdUnit, interstitialAdUnit, rewardedInterstitialAdUnit, isOverlap, isTest] | ||
[bannerAdUnit, interstitialAdUnit, rewardedVideoAdUnit, isOverlap, isTest] | ||
); | ||
@@ -235,3 +235,3 @@ }, | ||
// | ||
preloadRewardedInterstitialAd: function() { | ||
preloadRewardedVideoAd: function() { | ||
cordova.exec( | ||
@@ -241,7 +241,7 @@ null, | ||
'AdMobPlugin', | ||
'preloadRewardedInterstitialAd', | ||
'preloadRewardedVideoAd', | ||
[] | ||
); | ||
}, | ||
showRewardedInterstitialAd: function() { | ||
showRewardedVideoAd: function() { | ||
cordova.exec( | ||
@@ -251,3 +251,3 @@ null, | ||
'AdMobPlugin', | ||
'showRewardedInterstitialAd', | ||
'showRewardedVideoAd', | ||
[] | ||
@@ -267,4 +267,4 @@ ); | ||
}, | ||
loadedRewardedInterstitialAd: function() { | ||
return this._loadedRewardedInterstitialAd; | ||
loadedRewardedVideoAd: function() { | ||
return this._loadedRewardedVideoAd; | ||
}, | ||
@@ -282,4 +282,4 @@ isShowingBannerAd: function() { | ||
}, | ||
isShowingRewardedInterstitialAd: function() { | ||
return this._isShowingRewardedInterstitialAd; | ||
isShowingRewardedVideoAd: function() { | ||
return this._isShowingRewardedVideoAd; | ||
}, | ||
@@ -303,7 +303,7 @@ onBannerAdPreloaded: null, | ||
// | ||
onRewardedInterstitialAdPreloaded: null, | ||
onRewardedInterstitialAdLoaded: null, | ||
onRewardedInterstitialAdShown: null, | ||
onRewardedInterstitialAdHidden: null, | ||
onRewardedInterstitialAdCompleted: null | ||
onRewardedVideoAdPreloaded: null, | ||
onRewardedVideoAdLoaded: null, | ||
onRewardedVideoAdShown: null, | ||
onRewardedVideoAdHidden: null, | ||
onRewardedVideoAdCompleted: 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6017073