AdDuplex Universal SDK Interstitials can be used for standalone Windows Phone 8.1 XAML apps.
To add AdDuplex interstitial ads to your Windows Phone 8.1 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, and then Extensions. Select AdDuplex SDK for Windows Phone 8.1 (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
AdDuplex.Universal.Controls.WinPhone.XAML.AdDuplexClient.Initialize("YOUR_APP_KEY");
- Create an interstitial instance and show the ad
AdDuplex.Universal.Controls.WinPhone.XAML.InterstitialAd interstitialAd = new AdDuplex.Universal.Controls.WinPhone.XAML.InterstitialAd("YOUR_AD_UNIT_ID");
await interstitialAd.ShowAdAsync(); - In order to improve user experience you can pre-cache ads by calling
await interstitialAd.LoadAdAsync();
Great thanks for the update