VMAX
 
 
 
 
Show Sidebar

Requesting Banner Ads – Windows Phone 8 Unity Plugin

Maaf, entri ini hanya tersedia dalam bahasa English. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

To request for a Banner Ad

  1. Construct an object of the Class VMAXWP8Plugin.
  2. Using the SetAdspotId() API, set an appropriate Adspot
  3. Using the SetAdUXType() API and the enum AdUXType to pass a parameter, set the Ad type as Banner.
  4. Using the SetAdPosition() API, set the banner position.
  5. After initialization, request for an Interstitial Ad, in any of the following 2 ways:
    Managed
    For a managed banner ad request, call the LoadAd() API.
    The example below is set up to show a Banner Ad. VMAX recommends to call this function from the OnGUI () function.
    Unmanaged
    For an unmanaged banner ad request, call the CacheAd() API.
    Show the cached ad whenever you wish to, using the showAd() API. Using the SetAdPosition() API, set the banner position.
    The example below is set up to show a Banner Ad using CacheAd() and ShowAd() APIs combination. VMAX recommends to call these functions from the OnGUI () function.

Managing Refresh Rate for Banner Ads

You can manage the the frequency at which the Banner Ads are refreshed using the SetRefreshRate() method. The minimum Ad Refresh rate is 30 seconds. Setting a lower value will default to 30 seconds.

Here is the example to SetRefreshRate():

Additionally, you can also call the APIs PauseRefresh(), StopRefresh() and ResumeRefresh() to carry out functions like pausing, stopping and resuming refresh.

What would you like to do next?