To add AdDuplex interstitial ads to your Windows 10 XAML project do the following:
- Install the SDK via the Visual Studio Gallery web page.
- From the Solution Explorer window, right click References…, and select Add New Reference…
- Click Windows Universal, and then Extensions. Select AdDuplex SDK for Windows 10 (XAML). Then click OK.
To start participating in the exchange:
- Register your Windows Phone app in AdDuplex system and write down your Ad unit ID and App key.
- Add the following line at the beginning of the OnLaunched method in the App.xaml.cs file
- Create an interstitial instance and show the ad
AdDuplex.InterstitialAd interstitialAd = new AdDuplex.InterstitialAd("YOUR_AD_UNIT_ID");
- In order to improve user experience you can pre-cache ads by calling