VMAX
 
 
 
 
Show Sidebar

Additional Options – Windows Phone 8 Unity Plugin

Optional Callbacks

Prior to starting the Ad requests, setup the following callbacks in your unity script.

 

FailedToLoadAd Callback

The VMAX plugin offers this callback, in cases where an Ad is not served.

DidLoadAd Callback

The VMAX plugin offers this callback, in cases where an Ad is rendered successfully.

DidCacheAd Callback

The VMAX plugin offers this callback, in cases where an Ad is cached successfully.

FailedToCacheAd Callback

The VMAX plugin offers this callback, in cases where an Ad is not cached.

DidInteractWithAd Callback

The VMAX plugin offers this callback, in cases of a successful interaction with the Ad.

WillLeaveApp Callback

The VMAX plugin offers this callback, in cases of the Ad closing the current App and opening another App. For example, if the user interacts with an ad that opens a phone dialer or an SMS composer, so on.

WillPresentOverlay Callback

The VMAX plugin offers this callback, in cases where an interstitial/overlay is shown, on user interaction with the Ad.

WillDismissOverlay Callback

The VMAX plugin offers this callback, in cases where a user dismisses an Ad.

Sample Implementation

Advanced Methods

Set Requested Ad Timeout

Set the Request Timeout of Ads greater than the default Timeout of 20 seconds.
This can be done using the SetTimeOut() method, as shown below.
Note: The minimum Request Timeout is 20 seconds; setting a lower value will default to 20 seconds.

Set Requested Orientation For Interstitial Ad

To Request an Ad with Orientation use the SetRequestedOrientation() API and an Orientation enum value in the class VMAXWP8Plugin.

What would you like to do next?