Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
com-artemisoftnian-plugins-unityads3
Advanced tools
Monetize your cordova application using the UnityAds 3 API
Cordova / PhoneGap Plugin for UnityAds ver 3.x
This Cordova / PhoneGap plugin enables the integration of Unity Ads video ads into your cordova mobile games or apps in a way that both increases player engagement and puts more money in your pocket over the gamer’s lifetime. Unity Ads offers the highest Average Revenue Per User (ARPU) of any global rewarded video ad network.
A couple of years ago, and after a great mistake, I got banned from Google AdsMob network. After appels to the mercy of Google, explaining what happens... I remain banned for life. This put me on a very bad situation those days, with a very short list of good monetizing alternatives. This ends the day I learn about UnityAds
After the end of the UnityAds 1.x and 2.x Api era, I have to move forward and Implement UnityAds 3.x on my projects. Implement it on the Unity Game Engine was a breeze, But then I didn't found any solutions to implement version 3.x on my html5, cordova, construct 2 or 3 projects. That my friends, makes this cordova plugin a reality. Oh well, it was basically, necessity!
Platforms supported:
Ad Types:
# create a demo project
cordova create test1 com.yournamehere.test1 Test1
cd test1
cordova platform add android
cordova platform add ios
# now add the plugin, cordova CLI will handle dependency automatically
cordova plugin add com-artemisoftnian-plugins-unityads3
# now remove the default www content, copy the demo html file to www
rm -r www/*;
cp plugins/com-artemisoftnian-plugins-unityads3/example/basic/* www/;
# now build and run the demo in your device or emulator
cordova prepare;
cordova run android;
cordova run ios;
# or import into Xcode / eclipse
cordova plugin add com-artemisoftnian-plugins-unityads3
Step 1: Go and create a new project for the desire platform in UnityAds portal, Step 2: Write the specified id's in your javascript code.
// select the right Ad Id according to platform
var gameId = "Android or iOS Game ID";
var videoAdPlacementId = "Video Placement ID";
var rewardedVideoAdPlacementId = "Rewarded Placement ID";
var arAdPlacementId = "AR AD Placement ID";
After playing around and complete your tests, remember to put isTest = false
when building for production.
// Initialize UnityAds
UnityAdsInit(gameId, isTest, isDebug, fn);
// Video Ads Related (Regular Placement ID|Rewarded Placement ID)
ShowVideoAd(videoPlacementId, fn);
GetPlacementState(videoAdPlacementId, fn);
//Banner Related
ShowBannerAd(bannerAdPlacementId, bannerPosition, fn);
//Manually Set UnityAds Privacy and GDPR consent (true|false)
ManualGdprOpts( consent, fn);
anualCcpaOpts( consent, fn);
ManualCustomAgeGates( useroveragelimit, fn);
UnityAds SDK Allows AR Ads on Android, but for this to work You will need to manually add the following entries on the AndroidManifest.xml on your project.
Permissions:
<uses-permission android:name="android.permission.CAMERA" />
ARCore Entries inside the section
<application>
<meta-data android:name="com.google.ar.core.min_apk_version" android:value="24" />
<meta-data android:name="com.google.ar.core" android:value="optional" />
</application>
Note: Before You can use any Related AR Ads you need to ask to permissions to the Unity Teams. Use the following guide as reference: UnityAds AR Ads Documentation
This project is created and maintained by Waldemar Medina. Available for project outsourcing and or consulting services. Let me hear about it. I can help in your project.
Check Out my UnityAds addon for Construct 3
Unity, GDPR and Data Privacy – FAQ
Now that You end your reading, (I know You where curious) please consider supporting Artemisoftnian with a donation, a cup of coffee or maybe a slice of pizza :)
Forget Patreon, just buy me a cup of coffer!
FAQs
Monetize your cordova application using the UnityAds 4 API
The npm package com-artemisoftnian-plugins-unityads3 receives a total of 1 weekly downloads. As such, com-artemisoftnian-plugins-unityads3 popularity was classified as not popular.
We found that com-artemisoftnian-plugins-unityads3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.