Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
cordova-plugin-ironsource
Advanced tools
Ads support for ironSource ads to Cordova and Phonegap apps
Add support for IronSource Ads to your Cordova and Phonegap based mobile apps.
If you're like me and using CLI:
cordova plugin add cordova-plugin-ironsource
or
cordova plugin add https://github.com/blakgeek/cordova-plugin-ironSource
or
phonegap local plugin add https://github.com/blakgeek/cordova-plugin-ironSource
document.addEventListener('deviceready', function() {
var isAds = new IronSourceAds("yo_app_key", "some_unique_userid");
// show a rewarded ad
isAds.showRewardedAd();
// show a rewarded ad for placement RightHere
isAds.showRewardedAd("RightHere");
// show an offerwall
isAds.showOfferWall();
// show an interstitial
isAds.showInterstitial();
// launch in Android Studio/Xcode mediation integration verification
isAds.validateIntegration();
// Check is a rewarded video is available to show
isAds.isRewardedVideoAvailable(function () {
alert('Yes');
}, function () {
alert('No');
});
// Check is an interstitial is available to show
isAds.isInterstitialAdAvailable(function () {
alert('Yes');
}, function () {
alert('No');
});
// give em some credit
window.addEventListener("offerwallCreditReceived", function(e) {
var credit = e.credit;
// The number of credits the user has earned.
console.log(credit.amount);
// The total number of credits ever earned by the user.
console.log(credit.total):
// estimated flag is the same as totalCreditsFlag
// In some cases, we won’t be able to provide the exact
// amount of credits since the last event (specifically if the user clears
// the app’s data). In this case the ‘credits’ will be equal to the ‘totalCredits’,
// and this flag will be ‘true’.
console.log(credit.estimated);
}, false);
// reward your users
window.addEventListener("rewardedVideoRewardReceived", function(e) {
var placement = e.placement;
console.log(placement.id); // only available on android
console.log(placement.name);
console.log(placement.reward);
console.log(placement.amount);
}, false);
}, false);
Yep. Check out the demo project. It runs on both Android and iOS.
FAQs
Ads support for ironSource ads to Cordova and Phonegap apps
The npm package cordova-plugin-ironsource receives a total of 0 weekly downloads. As such, cordova-plugin-ironsource popularity was classified as not popular.
We found that cordova-plugin-ironsource demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.