Git Product home page Git Product logo

emi-indo-cordova-plugin-unityads's Introduction

emi-indo-cordova-plugin-unityads

Welcome to Cordova Plugin Unity Ads

Unity Ads SDK (Android: 4.5.0)

Note

  • It's Not a fork, it's purely rewritten, clean of 3rd party code.

Note

  • No Ad-Sharing

  • No Remote Control

  • I guarantee 100% revenue for you.

  • Code source: - UnityAds:
UnityAds.mp4

Features

  • Banner Ads
  • Interstitial Ads
  • Video Ads

Coming soon

  • Set banner position
  • Set banner size

💰Sponsor this project

PayPal

Installation

cordova plugin add https://github.com/EMI-INDO/emi-indo-cordova-plugin-unityads

Remove

cordova plugin rm emi-indo-cordova-plugin-unityads

deviceready

New documentation - index.html:

Below is the old documentation

// Initializing the SDK in Android
// This needs to be done only once, ideally at app launch.

/////////////////////   Initializing the SDK
cordova.plugins.emiUnityAdsPlugin.unitySdkInitialize(unityGameID);

var unityGameID = "5215769"
var bannerPlacementId = "Banner_Android"
var InterstitialPlacementId = "Interstitial_Android"
var videoPlacementId = "Rewarded_Android"

////////////////////  Event Initializing the SDK

document.addEventListener('onInitializationComplete', () => {

alert("on Sdk Initialization Complete");

});

document.addEventListener('onInitializationFailed', () => {

alert("on Sdk Initialization Failed");

});

Banner ads

// Load a Show cordova.plugins.emiUnityAdsPlugin.showBannerAd(bannerPlacementId);
// Hide cordova.plugins.emiUnityAdsPlugin.hideBannerAd();

Interstitial ads

// Load a Show cordova.plugins.emiUnityAdsPlugin.showInterstitialAd(InterstitialPlacementId);

Vide ads

// Load a Show cordova.plugins.emiUnityAdsPlugin.showVideoAd(videoPlacementId);

Event | callback:

event code

document.addEventListener('onBannerLoaded', () => {

alert("on Banner Loaded");

});

( Banner Ads )

Event Show a load

  • onBannerLoaded
  • onBannerFailedToLoad
  • onBannerClick
  • onBannerLeftApplication

( Interstitial Ads )

Event Load a Show

  • onUnityAdsAdLoaded.Interstitial
  • onUnityAdsFailedToLoad.Interstitial
  • onUnityAdsShowFailure.Interstitial
  • onUnityAdsShowStart.Interstitial
  • onUnityAdsShowClick.Interstitial
  • onUnityAdsShowComplete.Interstitial

( Video Ads )

Event Load a Show

  • onUnityAdsAdLoaded.video
  • onUnityAdsFailedToLoad.video
  • onUnityAdsShowFailure.video
  • onUnityAdsShowStart.video
  • onUnityAdsShowClick.video
  • onUnityAdsShowComplete.video

Platform Support

  • Android

💰Sponsor this project

PayPal

Earn more money, with other ad networks.

  • emi-indo-cordova-plugin-fan

Facebook Audience Network: - Ads:

  • emi-indo-cordova-plugin-admob

Admob: - Ads:

emi-indo-cordova-plugin-unityads's People

Contributors

emi-indo avatar

Watchers

 avatar

emi-indo-cordova-plugin-unityads's Issues

Events

Can you please tell me if the onUnityAdsShowComplete.video event fires after the video has been fully watched or after it is closed? And if it's an award event, is there a video close event?

Add another placement type

It works only if you placement type is waterfall.
Please, change the behavior - take into and "bidding" too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.