Windows 10 SDK for XAML apps installation and usage

Follow

AdDuplex SDK for Windows 10 XAML based apps (both C#/VB.NET and C++) is distributed via the Visual Studio extension gallery. 

To add AdDuplex AdControl to your XAML (C#/VB.NET/C++) project do the following:

  1. Install the SDK via the Visual Studio Gallery
  2. From the Solution Explorer window, right click References…, and select Add New Reference…
  3. Click Windows Universal, and then Extensions. Select AdDuplex SDK for Windows 10 (XAML). Then click OK.
  4. Open the MainPage.xaml file (or other xaml file as appropriate for your project).
  5. Modify the pages to include AdDuplex.Controls namespace:

xmlns:ad="using:AdDuplex"

  1. Add AdControl to your page:

<ad:AdControl x:Name="adDuplexAd"

AdUnitId="YOUR_AD_UNIT_ID"

AppKey="YOUR_APP_KEY"

/>

  1. Make sure the whole AdControl is visible by verifying that it's not obstructed by any other objects on your page. We recommend setting the Canvas.ZIndex property to a high value to make sure the AdControl is not being covered.
  2. You can preview your own exchange ad by setting IsTest property to true.
  3. App installation tracking without the ad control (or with an ad control which is not placed on the first page) can be achieved by adding the following line of code to your App.xaml.cs OnLaunched method

AdDuplex.AdDuplexClient.Initialize("YOUR_APP_KEY");

Have more questions? Submit a request

Comments

Powered by Zendesk