npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.triflesgames.elephantads

v2.1.3

Published

Elephant / Rollic Ads for Unity. Converted to Unity Package

Downloads

24

Readme

Elephant Ads

UPM Package for Elephant/Rollic Ads. This package contains both MoPub and Rollic SDKs.

Installation

Use the package manager UPM to install Elephant Ads.

com.triflesgames.elephantads

Setup

You can easily set up elephant ads by clicking "Configure Ads" from the "Elephant" menu on the top bar.

Usage

Add RollicAdsManager as a component to a persistant GameObject in the scene.

//You can call ad events from any one of the GameManager actors or from GameManager itself.
Push(RollicAdsEvents.ShowAd,RollicAdTypes.Rewarded);

/*
There are three types of ad you can call
RollicAdTypes.Banner,
RollicAdTypes.Interstitial,
RollicAdTypes.Rewarded
*/

/*
You can also listen ad status events from RollicAdsManager
There are three different of ad status events
RollicAdsEvents.OnRewardedVideoFinished
RollicAdsEvents.OnRewardedVideoSkipped
RollicAdsEvents.OnRewardedVideoFailed
*/

RollicAdsManager.Instance.Subscribe(RollicAdsEvents.OnRewardedVideoFinished,GiveReward);

Update The Package

Before updating the package you have to make some changes in the files.Please read down below for the necessary changes.

RollicGames/Editor/CodeControlUtils.cs

//change from
private const string AssetsPathPrefix ="Assets/"
//to
private const string AssetsPathPrefix = EnvVariables.PackagePath;

RollicGames/Editor/PostProcess.cs

//change from
 XElement[] elements = XDocument.Load(@"Assets/RollicGames/Resources/SkanIds.xml").Descendants("dict").ToArray();
//to
 XElement[] elements = XDocument.Load(EnvVariables.PackagePath+ @"/RollicGames/Resources/SkanIds.xml").Descendants("dict").ToArray();

TriflesGames/Rollic/EnvVariables.cs

//change from
public const string PackageVersion = "1.0.0"; (Old Version Number)
//to
public const string PackageVersion = "1.0.1"; (New Version Number - Please remember this version number 
must equal to the version number in the package.json file.)

In case of deletion of .asmdef files

For MoPub

Create one .asmdef file in the MoPub/Scripts folder with the name of MoPubSdk and leave it with default options.
Create one .asmdef file in the MoPub/Scripts/ThirdParty folder with the name of MoPubSdk.ThirdParty.Editor. Change its platform to Editor only.
Create one .asmdef file in the MoPub/Scripts/Editor folder with the name of MoPubSdk.Editor. Change its platform to Editor only. Also add references for the

  1. MoPubSdk,
  2. MoPubSdk.ThirdParty.Editor.

For TriflesGames

Create one .asmdef file in the TriflesGames/Rollic folder with the name of RollicAdsHelper and leave it with default options.
Create one .asmdef file in the TriflesGames/Scripts folder with the name of TGRollicAds and leave it with default options. Add references for

  1. TriflesGames.ManagerFramework.Runtime,
  2. RollicSdk,
  3. MoPubSdk,
  4. TriflesGames.Base.Runtime.

For RollicGames

Create one .asmdef file in the RollicGames folder with the name of RollicSdk and leave it with default options. Add references for

  1. ElephantSDK,
  2. MoPubSdk,
  3. AdjustSDK,
  4. RollicAdsHelper.

Create one .asmdef file in the RollicGames/Editor folder with the name of RollicSdk.Editor. Change its platform to Editor only. Add references for

  1. RollicSdk,
  2. ElephantSdk,
  3. MoPubSdk,
  4. RollicAdsHelper.