Vungle SDK for Windows 10 Released

Windows

Windows
Microsoft is proud to announce our partnership with Vungle, the leading in-app video ad platform
Please, Log in or Register to view URLs content!
. Vungle has released the Vungle SDK for Windows 10 apps, which powers monetization for apps across Windows 10 desktops, tablets, and phones.

Please, Log in or Register to view URLs content!

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
Please, Log in or Register to view URLs content!
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
    Please, Log in or Register to view URLs content!
    if you don’t have one handy.
  • If you haven’t already done so, head over to our
    Please, Log in or Register to view URLs content!
    and
    Please, Log in or Register to view URLs content!
    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
    Please, Log in or Register to view URLs content!
    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:
      <Capabilities>
      ...
      <Capability Name="internetClient" />
      ...
      </Capabilities>
    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(
    CoreDispatcherPriority.Normal,
    new DispatchedHandler(() => myRadMethod()));
    }


    Register this event handler for OnAdPlayableChanged event. For example:

    sdkInstance.OnAdPlayableChanged += SdkInstance_OnAdPlayableChanged;

    Check out our
    Please, Log in or Register to view URLs content!
    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
    Please, Log in or Register to view URLs content!
    ); 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 vungle.com or [help page link for windows SDK).

Please, Log in or Register to view URLs content!


Please, Log in or Register to view URLs content!
 

Users who are viewing this thread

Top