0% found this document useful (0 votes)
25 views1 page

In ST Alation

This document provides instructions for installing and using an ad manager for Unity. It explains how to import a Unity package, initialize the ad manager by passing ad IDs and positions, load and show banner ads, hide and show banner ads, load and show interstitial ads, and defines a delegate for when interstitial ads load successfully.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

In ST Alation

This document provides instructions for installing and using an ad manager for Unity. It explains how to import a Unity package, initialize the ad manager by passing ad IDs and positions, load and show banner ads, hide and show banner ads, load and show interstitial ads, and defines a delegate for when interstitial ads load successfully.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Installing

Download UnityPackage and import the package.

Demo Unity Project

A demo unity project can be found HERE

Documantation

AdManager.instance.Init ( bannerID, position, isTestAd, interstitialID )


bannerID : banner ad id
position : TOP / BOTTOM
isTestAd : if true, loads test ads.
interstitialID : interstitial ad id
AdManager.instance.Init ( "bannerID", AdManager.BannerPosition.TOP, true,
"interstitialID" );

AdManager.instance.LoadAndShowBanner ()
Loads and shows the banner Ad at position defined in Init function.
AdManager.instance.LoadAndShowBanner ();

AdManager.instance.HideBanner()
Hides the banner ad. Useful when you want to hide ad during some area of game.
AdManager.instance.HideBanner();

AdManager.instance.ShowBanner()
Use it after calling HideBanner() function.
Used to show it again on screen if hidden.
AdManager.instance.ShowBanner();
This function do not Load the ad, to show banner initially call LoadAndShowBanner();.

AdManager.instance.LoadInterstitial (); Loads the interstitialAd


to show use ShowInterstitial();
AdManager.instance.LoadInterstitial ();

AdManager.instance.ShowInterstitial (); Shows the interstitialAd.


AdManager.instance.ShowInterstitial ();
_interstitial must be loaded first to show proper ad
use LoadInterstitial (); to load the ad.

AdManager.instance.onInterstitialLoaded
This delegate is called when interstitial is loaded successfully.
AdManager.instance.onInterstitialLoaded = delegate {
Debug.Log("Interstitial Loaded"); }

You might also like