Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@azerion/cordova-ads
Advanced tools
Execute the following command to integrate the plugin:
cordova plugin add @azerion/cordova-ads
Add the AdMob APPLICATION_ID
into /platforms/android/app/src/AndroidManifest.xml
<application>
...
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy" />
...
</application>
Update your app's Info.plist
file to add a GADApplicationIdentifier
key with a string value of your AdMob app ID.
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-XXXXXXXXXXXXXXXX~YYYYYYYYYY</string>
// Initiate SDK initialization
// App should use its own machanism to get user consent to use personal data (such as AdID) to serve ads
// If isDebugModeEnabled is true then SDK will log network call operation
azerionAds.initialise(gdprConsentString, isCOPPACompliant, withUserConsent, isTestModeEnabled, isDebugModeEnabled);
// Recive the initialization status
azerionAds.on('InitializationCompleted', (initializationStatus) => {
console.log(initializationStatus);
});
Sample initializationStatus
response:
{
// AdMob
"com.google.android.gms.ads.MobileAds": {
"description": "",
"name": "com.google.android.gms.ads.MobileAds",
"state": "READY"
},
"ImproveDigital": {
"description": "",
"name": "ImproveDigital",
"state": "READY"
}
}
isTestModeEnabled
and isDebugModeEnabled
should be false
.// Request banner ad
azerionAds.requestBanner("azerionAdUnitId", AzerionAds.AdBannerPosition.BOTTOM, AzerionAds.AdBannerSize.BANNER);
// Show the banner and start refresh timer
azerionAds.showBanner();
// Hide the banner and stop refresh timer
azerionAds.hideBanner();
// Listening Banner Events
azerionAds.on('BannerOnReceiveAd', () => {
});
azerionAds.on('BannerOnFailedToReceiveAd', (error) => {
});
azerionAds.on('BannerOnDisplay', () => {
});
azerionAds.on('BannerOnHide', () => {
});
azerionAds.on('BannerOnLeftApplication', () => {
});
// Request Interstitial Ad
azerionAds.requestInterstitial("adUnitId");
// Listening Interstitial Ad Events
azerionAds.on('InterstitialOnAdLoaded', () => {
azerionAds.showInterstitial();
});
azerionAds.on('InterstitialOnAdFailedToLoad', (error) => {
// If you want to load another ad
azerionAds.requestInterstitial("adUnitId");
});
azerionAds.on('InterstitialOnAdDisplayed', () => {
});
azerionAds.on('InterstitialOnAdFailedToDisplay', (error) => {
// If you want to load another ad
azerionAds.requestInterstitial("adUnitId");
});
azerionAds.on('InterstitialOnAdClosed', () => {
// If you want to load another ad
azerionAds.requestInterstitial("adUnitId");
});
azerionAds.on('InterstitialOnAdLeavingApplication', () => {
});
azerionAds.requestRewardVideo("azerionAdUnitId");
// Listening Rewarded Ad Events
azerionAds.on('RewadedVideoOnAdLoaded', () => {
azerionAds.showRewardVideo();
});
azerionAds.on('RewadedVideoOnAdFailedToLoad', (error) => {
// If you want to load another ad
azerionAds.requestRewardVideo("azerionAdUnitId");
});
azerionAds.on('RewadedVideoOnAdDisplayed', () => {
});
azerionAds.on('RewadedVideoOnAdFailedToDisplay', (error) => {
// If you want to load another ad
azerionAds.requestRewardVideo("azerionAdUnitId");
});
azerionAds.on('RewadedVideoOnAdClosed', () => {
// If you want to load another ad
azerionAds.requestRewardVideo("azerionAdUnitId");
});
azerionAds.on('RewadedVideoOnAdLeavingApplication', () => {
});
azerionAds.on('RewadedVideoOnUserRewardEarned', (rewardItem) => {
console.log("rewarde amount: " + rewardItem.amount);
});
Kotlin module issue
More than one file was found with OS independent path 'META-INF/annotation-experimental_release.kotlin_module'
Please add the following config into .../platforms/android/app/build.gradle
android {
...
packagingOptions {
exclude("META-INF/*.kotlin_module")
}
...
}
If you are using firebase-analytics
please update it version to 21.0.0
FAQs
Cordova plugin for Azerion Ads SDK
We found that @azerion/cordova-ads 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.