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

cordova-plugin-ad-adbuddiz

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.0.37 to 1.0.38

4

package.json
{
"name": "cordova-plugin-ad-adbuddiz",
"version": "1.0.37",
"description": "Show adbuddiz full screen ad",
"version": "1.0.38",
"description": "Show adbuddiz interstitial ad",
"cordova": {

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

Cordova AdBuddiz plugin
====================
# Overview #
Show adbuddiz full screen ad
Show adbuddiz interstitial ad

@@ -53,9 +53,15 @@ [android, ios] [cordova cli] [xdk] [cocoon]

# Server setting #
## android ##
<img src="https://raw.githubusercontent.com/cranberrygame/cordova-plugin-ad-adbuddiz/master/doc/publisher_key1.png"><br>
<img src="https://raw.githubusercontent.com/cranberrygame/cordova-plugin-ad-adbuddiz/master/doc/publisher_key2.png"><br>
```c
[android]
AdBuddiz - Apps - [specific app] - get Publisher Key:
```
[ios]
## ios ##
```c
itunes - Manage Your Apps - [specific app] - get Apple ID

@@ -66,5 +72,2 @@

<img src="https://raw.githubusercontent.com/cranberrygame/cordova-plugin-ad-adbuddiz/master/doc/publisher_key1.png"><br>
<img src="https://raw.githubusercontent.com/cranberrygame/cordova-plugin-ad-adbuddiz/master/doc/publisher_key2.png"><br>
# API #

@@ -92,22 +95,22 @@ ```javascript

window.adbuddiz.onFullScreenAdPreloaded = function() {
alert('onFullScreenAdPreloaded');
window.adbuddiz.onInterstitialAdPreloaded = function() {
alert('onInterstitialAdPreloaded');
};
window.adbuddiz.onFullScreenAdLoaded = function() {
alert('onFullScreenAdLoaded');
window.adbuddiz.onInterstitialAdLoaded = function() {
alert('onInterstitialAdLoaded');
};
window.adbuddiz.onFullScreenAdShown = function() {
alert('onFullScreenAdShown');
window.adbuddiz.onInterstitialAdShown = function() {
alert('onInterstitialAdShown');
};
window.adbuddiz.onFullScreenAdHidden = function() {
alert('onFullScreenAdHidden');
window.adbuddiz.onInterstitialAdHidden = function() {
alert('onInterstitialAdHidden');
};
}, false);
window.adbuddiz.preloadFullScreenAd();//option, download ad previously for fast show
window.adbuddiz.showFullScreenAd();
window.adbuddiz.preloadInterstitialAd();//option, download ad previously for fast show
window.adbuddiz.showInterstitialAd();
alert(window.adbuddiz.loadedFullScreenAd());//boolean: true or false
alert(window.adbuddiz.loadedInterstitialAd());//boolean: true or false
alert(window.adbuddiz.isShowingFullScreenAd());//boolean: true or false
alert(window.adbuddiz.isShowingInterstitialAd());//boolean: true or false

@@ -114,0 +117,0 @@ ```

var adbuddiz = {
_loadedFullScreenAd: false,
_isShowingFullScreenAd: false,
_loadedInterstitialAd: false,
_isShowingInterstitialAd: false,
//

@@ -23,31 +23,49 @@ setLicenseKey: function(email, licenseKey) {

if (typeof result == "string") {
if (result == "onFullScreenAdPreloaded") {
if (result == "onInterstitialAdPreloaded") {
//cranberrygame start; deprecated
if (self.onFullScreenAdPreloaded)
self.onFullScreenAdPreloaded();
//cranberrygame end
if (self.onInterstitialAdPreloaded)
self.onInterstitialAdPreloaded();
}
else if (result == "onFullScreenAdLoaded") {
self._loadedFullScreenAd = true;
else if (result == "onInterstitialAdLoaded") {
self._loadedInterstitialAd = true;
//cranberrygame start; deprecated
if (self.onFullScreenAdLoaded)
self.onFullScreenAdLoaded();
//cranberrygame end
if (self.onInterstitialAdLoaded)
self.onInterstitialAdLoaded();
}
else if (result == "onFullScreenAdShown") {
self._loadedFullScreenAd = false;
self._isShowingFullScreenAd = true;
else if (result == "onInterstitialAdShown") {
self._loadedInterstitialAd = false;
self._isShowingInterstitialAd = true;
//cranberrygame start; deprecated
if (self.onFullScreenAdShown)
self.onFullScreenAdShown();
//cranberrygame end
if (self.onInterstitialAdShown)
self.onInterstitialAdShown();
}
else if (result == "onFullScreenAdHidden") {
self._isShowingFullScreenAd = false;
else if (result == "onInterstitialAdHidden") {
self._isShowingInterstitialAd = false;
//cranberrygame start; deprecated
if (self.onFullScreenAdHidden)
self.onFullScreenAdHidden();
//cranberrygame end
if (self.onInterstitialAdHidden)
self.onInterstitialAdHidden();
}
}
else {
//if (result["event"] == "onXXX") {
// //result["message"]
//var event = result["event"];
//var location = result["message"];
//if (event == "onXXX") {
// if (self.onXXX)
// self.onXXX(result);
// self.onXXX(location);
//}

@@ -64,2 +82,3 @@ }

},
//cranberrygame start; deprecated
preloadFullScreenAd: function() {

@@ -83,14 +102,47 @@ cordova.exec(

},
//cranberrygame end
preloadInterstitialAd: function() {
cordova.exec(
null,
null,
'AdBuddizPlugin',
'preloadInterstitialAd',
[location]
);
},
showInterstitialAd: function() {
cordova.exec(
null,
null,
'AdBuddizPlugin',
'showInterstitialAd',
[location]
);
},
//cranberrygame start; deprecated
loadedFullScreenAd: function() {
return this._loadedFullScreenAd;
return this._loadedInterstitialAd;
},
isShowingFullScreenAd: function() {
return this._isShowingFullScreenAd;
return this._isShowingInterstitialAd;
},
//cranberrygame end
loadedInterstitialAd: function() {
return this._loadedInterstitialAd;
},
isShowingInterstitialAd: function() {
return this._isShowingInterstitialAd;
},
//cranberrygame start; deprecated
onFullScreenAdPreloaded: null,
onFullScreenAdLoaded: null,
onFullScreenAdShown: null,
onFullScreenAdHidden: null
onFullScreenAdHidden: null,
//cranberrygame end
onInterstitialAdPreloaded: null,
onInterstitialAdLoaded: null,
onInterstitialAdShown: null,
onInterstitialAdHidden: null
}
module.exports = adbuddiz;

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