cordova-plugin-ad-admob
Advanced tools
Comparing version 1.0.92 to 1.0.93
{ | ||
"name": "cordova-plugin-ad-admob", | ||
"version": "1.0.92", | ||
"version": "1.0.93", | ||
"description": "Show admob banner and full screen ad", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -76,3 +76,3 @@ Cordova AdMob plugin | ||
Fixed Android cordova5 build error. | ||
1.0.92 | ||
1.0.93 | ||
Updated Admob SDK | ||
@@ -279,46 +279,35 @@ Windows Phone 8 - 6.5.13 | ||
document.addEventListener("deviceready", function(){ | ||
//if no license key, 2% ad traffic share for dev support. | ||
//you can get free license key from https://play.google.com/store/apps/details?id=com.cranberrygame.pluginsforcordova | ||
//window.admob.setLicenseKey("yourEmailId@yourEmaildDamin.com", "yourFreeLicenseKey"); | ||
if (typeof window["admob"] != 'undefined') { | ||
setUpPlugin(); | ||
} | ||
//wp8 | ||
else { | ||
setTimeout(setUpPlugin,600); | ||
} | ||
window.admob.setUp(bannerAdUnit, fullScreenAdUnit, isOverlap, isTest); | ||
// | ||
window.admob.onBannerAdPreloaded = function() { | ||
alert('onBannerAdPreloaded'); | ||
}; | ||
window.admob.onBannerAdLoaded = function() { | ||
alert('onBannerAdLoaded'); | ||
}; | ||
window.admob.onBannerAdShown = function() { | ||
alert('onBannerAdShown'); | ||
}; | ||
window.admob.onBannerAdHidden = function() { | ||
alert('onBannerAdHidden'); | ||
}; | ||
// | ||
window.admob.onFullScreenAdPreloaded = function() { | ||
alert('onFullScreenAdPreloaded'); | ||
}; | ||
window.admob.onFullScreenAdLoaded = function() { | ||
alert('onFullScreenAdLoaded'); | ||
}; | ||
window.admob.onFullScreenAdShown = function() { | ||
alert('onFullScreenAdShown'); | ||
}; | ||
window.admob.onFullScreenAdHidden = function() { | ||
alert('onFullScreenAdHidden'); | ||
}; | ||
}, false); | ||
function setUpPlugin() { | ||
//if no license key, 2% ad traffic share for dev support. | ||
//you can get free license key from https://play.google.com/store/apps/details?id=com.cranberrygame.pluginsforcordova | ||
//window.admob.setLicenseKey("yourEmailId@yourEmaildDamin.com", "yourFreeLicenseKey"); | ||
window.admob.setUp(bannerAdUnit, fullScreenAdUnit, isOverlap, isTest); | ||
// | ||
window.admob.onBannerAdPreloaded = function() { | ||
alert('onBannerAdPreloaded'); | ||
}; | ||
window.admob.onBannerAdLoaded = function() { | ||
alert('onBannerAdLoaded'); | ||
}; | ||
window.admob.onBannerAdShown = function() { | ||
alert('onBannerAdShown'); | ||
}; | ||
window.admob.onBannerAdHidden = function() { | ||
alert('onBannerAdHidden'); | ||
}; | ||
// | ||
window.admob.onFullScreenAdPreloaded = function() { | ||
alert('onFullScreenAdPreloaded'); | ||
}; | ||
window.admob.onFullScreenAdLoaded = function() { | ||
alert('onFullScreenAdLoaded'); | ||
}; | ||
window.admob.onFullScreenAdShown = function() { | ||
alert('onFullScreenAdShown'); | ||
}; | ||
window.admob.onFullScreenAdHidden = function() { | ||
alert('onFullScreenAdHidden'); | ||
}; | ||
} | ||
@@ -352,5 +341,5 @@ window.admob.preloadBannerAd();//option, download ad previously for fast show | ||
<a href="https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/basic/index.html">example/basic/index.html</a><br> | ||
<a href="https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/advanced/index.html">example/advanced/index.html</a> | ||
<a href="https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/basic_wp8/index.html">example/basic/index.html</a><br> | ||
<a href="https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/advanced_wp8/index.html">example/advanced/index.html</a> | ||
<a href="https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/advanced/index.html">example/advanced/index.html</a><br> | ||
<a href="https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/basic_wp8/index.html">example/basic_wp8/index.html</a><br> | ||
<a href="https://github.com/cranberrygame/cordova-plugin-ad-admob/blob/master/example/advanced_wp8/index.html">example/advanced_wp8/index.html</a> | ||
@@ -357,0 +346,0 @@ # Test # |
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
5889224
356