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.41 to 1.0.43

src/android/AdBuddiz-3.1.3.jar

4

package.json
{
"name": "cordova-plugin-ad-adbuddiz",
"version": "1.0.41",
"description": "Show adbuddiz interstitial ad",
"version": "1.0.43",
"description": "Show adbuddiz interstitial ad and rewarded video ad.",
"cordova": {

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

@@ -10,4 +10,4 @@ Cordova AdBuddiz plugin

adbuddiz android SDK 3.0.9
adbuddiz ios SDK 2.5.6
adbuddiz android SDK 3.1.3
adbuddiz ios SDK 2.5.3

@@ -20,2 +20,5 @@ This is open source cordova plugin.

```c
1.0.42
Updated SDK (adbuddiz android SDK 3.1.3, adbuddiz ios SDK 2.5.3)
Supports rewarded video ad (android only)
```

@@ -32,7 +35,6 @@ # Install plugin #

## Xdk ##
https://software.intel.com/en-us/intel-xdk - Download XDK - XDK PORJECTS - [specific project] - CORDOVA HYBRID MOBILE APP SETTINGS - Plugins - Third Party Plugins - Add a Third Party Plugin - Get Plugin from the Web -
https://software.intel.com/en-us/intel-xdk - Download XDK - XDK PORJECTS - [specific project] - CORDOVA HYBRID MOBILE APP SETTINGS - Plugin Management - Add Plugins to this Project - Third Party Plugins -
```c
Name: adbuddiz
Plugin ID: com.cranberrygame.cordova.plugin.ad.adbuddiz
[v] Plugin is located in the Apache Cordova Plugins Registry
Plugin Source: Cordova plugin registry
Plugin ID: cordova-plugin-ad-adbuddiz
```

@@ -108,2 +110,18 @@

};
//
window.adbuddiz.onRewardedVideoAdPreloaded = function() {
alert('onRewardedVideoAdPreloaded');
};
window.adbuddiz.onRewardedVideoAdLoaded = function() {
alert('onRewardedVideoAdLoaded');
};
window.adbuddiz.onRewardedVideoAdShown = function() {
alert('onRewardedVideoAdShown');
};
window.adbuddiz.onRewardedVideoAdHidden = function() {
alert('onRewardedVideoAdHidden');
};
window.adbuddiz.onRewardedVideoAdCompleted = function() {
alert('onRewardedVideoAdCompleted');
};
}, false);

@@ -114,5 +132,10 @@

window.adbuddiz.preloadRewardedVideoAd();//option, download ad previously for fast show
window.adbuddiz.showRewardedVideoAd('Default');
alert(window.adbuddiz.loadedInterstitialAd());//boolean: true or false
alert(window.adbuddiz.loadedRewardedVideoAd());//boolean: true or false
alert(window.adbuddiz.isShowingInterstitialAd());//boolean: true or false
alert(window.adbuddiz.isShowingRewardedVideoAd());//boolean: true or false

@@ -132,3 +155,3 @@ ```

Plugins For Cordova<br>
Cordova Plugins<br>
http://cranberrygame.github.io?referrer=github

@@ -135,0 +158,0 @@

var adbuddiz = {
_loadedInterstitialAd: false,
_loadedRewardedVideoAd: false,
_isShowingInterstitialAd: false,
_isShowingRewardedVideoAd: false,
//

@@ -62,3 +64,31 @@ setLicenseKey: function(email, licenseKey) {

self.onInterstitialAdHidden();
}
//
else if (event == "onRewardedVideoAdPreloaded") {
if (self.onRewardedVideoAdPreloaded)
self.onRewardedVideoAdPreloaded();
}
else if (event == "onRewardedVideoAdLoaded") {
self._loadedRewardedVideoAd = true;
if (self.onRewardedVideoAdLoaded)
self.onRewardedVideoAdLoaded();
}
else if (event == "onRewardedVideoAdShown") {
self._loadedRewardedVideoAd = false;
self._isShowingRewardedVideoAd = true;
if (self.onRewardedVideoAdShown)
self.onRewardedVideoAdShown();
}
else if (event == "onRewardedVideoAdHidden") {
self._isShowingRewardedVideoAd = false;
if (self.onRewardedVideoAdHidden)
self.onRewardedVideoAdHidden();
}
else if (event == "onRewardedVideoAdCompleted") {
if (self.onRewardedVideoAdCompleted)
self.onRewardedVideoAdCompleted();
}
}

@@ -120,2 +150,20 @@ else {

},
preloadRewardedVideoAd: function(location) {
cordova.exec(
null,
null,
'AdBuddizPlugin',
'preloadRewardedVideoAd',
[location]
);
},
showRewardedVideoAd: function(location) {
cordova.exec(
null,
null,
'AdBuddizPlugin',
'showRewardedVideoAd',
[location]
);
},
//cranberrygame start; deprecated

@@ -135,2 +183,8 @@ loadedFullScreenAd: function() {

},
loadedRewardedVideoAd: function() {
return this._loadedRewardedVideoAd;
},
isShowingRewardedVideoAd: function() {
return this._isShowingRewardedVideoAd;
},
//cranberrygame start; deprecated

@@ -145,5 +199,11 @@ onFullScreenAdPreloaded: null,

onInterstitialAdShown: null,
onInterstitialAdHidden: null
onInterstitialAdHidden: null,
//
onRewardedVideoAdPreloaded: null,
onRewardedVideoAdLoaded: null,
onRewardedVideoAdShown: null,
onRewardedVideoAdHidden: null,
onRewardedVideoAdCompleted: 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

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