November 18, 2015 7:33 am

Vungle SDK for Windows 10 Released

Microsoft is proud to announce our partnership with Vungle, the leading in-app video ad platform at Connect (); //2015. Vungle has released the Vungle SDK for Windows 10 apps, which powers monetization for apps across Windows 10 desktops, tablets, and phones.

About 35% of game developers currently use mobile video ads, and many find it a great source of revenue that can actually enhance UX. With this partnership, Microsoft now offers easy integration with one of the leading global monetization platforms for Windows developers.

If you’re ready to give in-app video ads a try, this guide will show you how to quickly integrate the Vungle SDK into your app so you can start earning revenue – in five easy steps. The code samples in this guide are in C#, but we provide sample app files in C#, C++, Visual Basic, and DirectX+XAML.

A few notes before you get started…

  • The integration requires a Vungle account, so create a Vungle account if you don’t have one handy.
  • If you haven’t already done so, head over to our dashboard and add your app to your account. You need to do this so that you can get your App ID, which you’ll be adding to your app with our SDK. It’s in red on your app’s page.
  1. Download the SDK
    Download the Vungle Windows SDK from the Vungle Dashboard. Extract the archive once it’s finished downloading.
  2. Add VungleSDK to your project
    1. In Visual Studio 2015, create a new project using the template appropriate for your application and programming language.
    2. Add a reference for your project to the Vungle Windows SDK file you downloaded.
    3. Make sure that your project has the “internetClient” capability in the package.appxmanifest file, as shown:
          <Capability Name="internetClient" />
    4. Import the VungleSDK namespace. For example:
      using VungleSDK;
  3. Obtain a VungleAd instance
    For example:

    VungleAd sdkInstance;
    // additional code if you need
    sdkInstance = AdFactory.GetInstance("yourAppId");

    In the above example, replace yourAppId with your app id that you got when you added your app to your account.

  4. Create and register an event handler
    Create event handler for OnAdPlayableChanged event. For example:

    //Event handler for OnAdPlayableChanged event
    private async void SdkInstance_OnAdPlayableChanged(object sender, AdPlayableEventArgs e)
      //Run asynchronously on the UI thread
      await CoreApplication.MainView.Dispatcher.RunAsync(
        new DispatchedHandler(() => myRadMethod()));

    Register this event handler for OnAdPlayableChanged event. For example:

    sdkInstance.OnAdPlayableChanged += SdkInstance_OnAdPlayableChanged;

    Check out our Advanced Settings Guide to subscribe to play events. These can be used to unpause audio, resume gameplay, etc.

  5. Play an ad with your desired options selected (learn how to set options in the Advanced Settings Guide); for example:
    private async void IncentivizedConfigButton_Click(object sender, RoutedEventArgs e)
      await sdkInstance.PlayAdAsync(
        new AdConfig { Incentivized = true , SoundEnabled = false});

See below for an example of an in-app video ad. For more information, visit or [help page link for windows SDK).

Updated June 28, 2018 10:51 am

Join the conversation

  1. After adding SDK, Error
    Manifest references file ‘xxxx’ which is not part of the payload.

    • Did you remember to copy the SDK into your project folder and then also add it as a reference? If you have and it’s still not working correctly, feel free to email and I can take a look at your project to see what’s wrong.

  2. I can not add the reference VungleSDK. winmd into project Windows Phone Silverlight 8.1.
    Error: the reference to the higher version or incompatible assembly cannot be added to the project.
    The reference is already unlocked

  3. Hi,
    I tried to integrate Vungle in my UWP app but I have this error message:
    System.UnauthorizedAccessException: Access is denied.
    Your App does not have permission to access location data. Make sure you have defined ID_CAP_LOCATION in the application manifest and that on your phone, you have turned on location by checking Settings > Location.
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at VungleSDK.LocationManager.d__9.MoveNext()
    Can not update location

    How to fix this error? and why Vungle need a location permission?!