• English
  • Hindi
  • Bahasa
  • Vietnemese
  • Malay
  • Thai
Show Sidebar

VMAX SDK for Windows 10 Mobile

Sorry, this entry is only available in 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.

Step 1: Download the SDK

Before proceeding, ensure that you have downloaded the latest version of the VMAX SDK for Windows 10 Mobile from here.

Step 2: Set up the SDK

Extract all the files from the SDK archive into a separate folder. It consists of the following folders and files:


This folder contains the VMAX SDK and its dependencies.


This folder contains a Sample UWP project source code that demonstrates the VMAX SDK integration. By default, this project has all the mediation partners integrated.

Step 3: Integrate the SDK

  1. Include the <packages> folder in your project’s folder structure.
  2. Add a nuget package in your universal app project for Newtonsoft.JSON version 8.0.2 as it is an sdk dependency. You can obtain it from here.
  3. Choose Project >> Add Reference >> Browse, and add the files com.vmax.windows.ads.wp10.dll and com.vmax.windowsPhone.ads.mediation.dll to your project.
  4. Ensure that your project has the following capabilities in the appxmanifest package:
    • internetclientserver
    • musiclibrary
    • pictureslibrary
    • videoslibrary
    • appointments
    • location

Step 4: Preliminary Steps for Requesting Ads

Universal Windows 10 apps are composed of UI elements. VMAXAdView is simply another element displaying ads that respond to user interactions.

To display an ad, you need to first create a VMAXAdView and then specify the AdspotId and UX type (Banner/Interstitial/Frame/Native) and then request an ad. Before starting using the SDK you have to import the namespaces for the same. You can refer to the VMAX namespace in your code by using either of the directives mentioned below.

Using code-behind in C#

Using XAML

  1. Import the declared namespace.
  2. Copy the following statement to the start of your XAML page (where other XAML namespaces are declared).

You can just define the VMAXAdView using the markup below directly in your XAML markup file.

Replace MY_ADSPOT_ID with the actual VMAX Adspot id and MY_AD_UX_TYPE with the UX type constant you wish to request.
Note: Currently, only Banners, Interstitials, Frames, and Native ads are supported.

Define a VMAXAdView with code

You can also create the VMAXAdView in code. The following C# example constructs a banner ad by declaring a VMAXAdView and configuring it:

You can also check the version of the sdk that you are using in case of any version specific support needed. VMAX sdk has an api GetSDKVersion(). It returns a string value that will give you the exact sdk version that has been integrated.

View the process of requesting ads here.