Windows Phone Silverlight AdDuplex Interstitial Ad Installation and Usage

Follow

To add AdDuplex Interstitial Ads to your Windows Phone Silverlight project do the following:

  1. Go to Tools -> NuGet Package Manager -> Package Manager Console (or Tools -> Library Package Manager -> Package Manager Console when in Visual Studio 2012 or below)
  2. Run the Install-Package command:
    PM> Install-Package AdDuplexWP8

To start participating in the exchange:

  1. Register your Windows Phone app in AdDuplex system and write down your Ad unit ID and App key.
  2. Add the following line to the Application_Launching method in the App.xaml.cs file
    AdDuplex.AdDuplexClient.Initialize("YOUR_APP_KEY");
  3. Create an insterstitial instance and show the ad
    AdDuplex.InterstitialAd interstitialAd = 
    new AdDuplex.InterstitialAd("YOUR_AD_UNIT_ID");
    interstitialAd.ShowAd();
  4. In order to improve the user experience you can pre-cache ads by calling
    interstitialAd.LoadAd();
Have more questions? Submit a request

Comments

Powered by Zendesk