Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Monetization.Ads.vxAdManager Class Reference

The engine ad manager for mobile releases. More...

Static Public Member Functions

static void Update ()
 
static void InitSettings (string adAppId, bool isTestMode=false, string testDeviceId="")
 Initialises the Ad Manager.
 
static void InitBanner (string adUnitID)
 Adds the banner with ad at the default position.
 
static void InitBanner (string adUnitID, Vector2 Location)
 Adds the banner.
 
static void InitInterstitialAd (string adUnitID)
 Adds the initerstialel ad.
 
static void LoadInterstitialAd ()
 Load an Interstitial ad.
 
static void ShowInterstitial ()
 Shows the initersial ad if there's one loaded.
 
static void InitRewardAd (string adUnitID)
 Initialise a Reward Ad.
 
static void LoadRewardVideo ()
 Load a reward ad.
 
static void ShowRewardAd ()
 Show a reward ad.
 
static void OnRewardReceived (string type, int amount)
 Called when ever a reward has been recieved.
 

Static Public Attributes

static vxIBannerAd BannerAd
 The Banner Ad Instance for this game. You can check if it's Initialised and / or if it's visible currently.
 
static vxIInterstitialAd InterstitialAd
 The Interstitiail Ad instance. This ad will show over top of the game when 'ShowAd' is called. Note you will need to call 'LoadNewAd' after each time you call 'ShowAd()'.
 
static vxIRewardAd RewardAd
 The reward Ad Instance.
 

Properties

static string AppAdId [get]
 The ad unit identifier.
 
static bool IsInTestMode [get]
 Is the Ad Manager in Testing Mode. If set to true it will serve ads using the test device id's that were set during the initialization.
 
static string TestDeviceId [get]
 The test device id. This is set only in Android.
 
static bool IsInitialised [get, set]
 Has this ad manager been initialised yet.
 

Events

static Action< string, int > RewardReceived
 Called when ever a reward is recevied from a reward ad.
 

Detailed Description

The engine ad manager for mobile releases.

Member Function Documentation

◆ InitBanner() [1/2]

static void VerticesEngine.Monetization.Ads.vxAdManager.InitBanner ( string adUnitID)
static

Adds the banner with ad at the default position.

Parameters
adUnitIDAd unit identifier.

◆ InitBanner() [2/2]

static void VerticesEngine.Monetization.Ads.vxAdManager.InitBanner ( string adUnitID,
Vector2 Location )
static

Adds the banner.

Parameters
adUnitIDAd unit identifier.
LocationLocation.

◆ InitInterstitialAd()

static void VerticesEngine.Monetization.Ads.vxAdManager.InitInterstitialAd ( string adUnitID)
static

Adds the initerstialel ad.

Parameters
adUnitIDAd unit identifier.

◆ InitRewardAd()

static void VerticesEngine.Monetization.Ads.vxAdManager.InitRewardAd ( string adUnitID)
static

Initialise a Reward Ad.

Parameters
adUnitID

◆ InitSettings()

static void VerticesEngine.Monetization.Ads.vxAdManager.InitSettings ( string adAppId,
bool isTestMode = false,
string testDeviceId = "" )
static

Initialises the Ad Manager.

Parameters
adAppId
isTestMode
testDeviceId

◆ LoadRewardVideo()

static void VerticesEngine.Monetization.Ads.vxAdManager.LoadRewardVideo ( )
static

Load a reward ad.

Parameters
adUnitID

◆ OnRewardReceived()

static void VerticesEngine.Monetization.Ads.vxAdManager.OnRewardReceived ( string type,
int amount )
static

Called when ever a reward has been recieved.

Parameters
type
amount

Member Data Documentation

◆ BannerAd

vxIBannerAd VerticesEngine.Monetization.Ads.vxAdManager.BannerAd
static

The Banner Ad Instance for this game. You can check if it's Initialised and / or if it's visible currently.

To Initialise the banner ad properly you will need to call the following in your code:

vxAdManager.InitBanner(string adUnitID)
The engine ad manager for mobile releases.
Definition vxAdManager.cs:35
static void InitBanner(string adUnitID)
Adds the banner with ad at the default position.
Definition vxAdManager.cs:217

The documentation for this class was generated from the following file: