﻿Read the tutorial over here:
Unified Ad for Windows Phone - Part 1 - Introduction: http://mark.mymonster.nl/2012/02/07/windows-phone-unified-ad-part-1-introduction
Unified Ad for Windows Phone - Part 2 - Basic Usage: http://mark.mymonster.nl/2012/02/08/unified-ad-for-windows-phone-part-2-basic-usage

- Add the Unified Ad for Windows Phone in your Xaml like this:

<Ads:AdControl x:Name="AdBasic"
                FallbackAdProviderName="AdDuplex"
                IsTest="True"
                xmlns:Ads="clr-namespace:MC.Phone.Ads;assembly=MC.Phone.Ads"
                xmlns:PubCenter="clr-namespace:MC.Phone.Ads.PubCenter;assembly=MC.Phone.Ads.PubCenter"
                xmlns:Smaato="clr-namespace:MC.Phone.Ads.Smaato;assembly=MC.Phone.Ads.Smaato"
                xmlns:MobFox="clr-namespace:MC.Phone.Ads.MobFox;assembly=MC.Phone.Ads.MobFox"
                xmlns:AdMob="clr-namespace:MC.Phone.Ads.AdMob;assembly=MC.Phone.Ads.AdMob"
                xmlns:Provider="clr-namespace:MC.Phone.Ads.Provider;assembly=MC.Phone.Ads"
                xmlns:AdDuplex="clr-namespace:MC.Phone.Ads.AdDuplex;assembly=MC.Phone.Ads.AdDuplex">
    <Ads:AdControl.AdProviders>
        <Provider:GenericAdProviderForXaml XamlUri="http://remoteurlontheinternet.com/Ad.xaml?appid={0}" />
        <Provider:NoneAdProvider />
        <AdDuplex:AdDuplexAdProvider App="" />
        <AdMob:AdMobAdProvider AdUnit="" />
        <MobFox:MobFoxAdProvider Publisher="test" />
        <Smaato:SmaatoAdProvider AdSpace="0"
                                    Publisher="0" />
        <PubCenter:PubCenterAdProvider Application=""
                                        AdUnit="" />
        <!--InnerActive is not really suitable for the Ad Rotation because it doesn't have any events to react on.-->
        <!--<InnerActive:InnerActiveAdProvider App="" />-->
    </Ads:AdControl.AdProviders>
</Ads:AdControl>

- Remove the ad providers that you don't want to use and fill in the details of the chosen ad providers.

- Optionally you can change the AdProviderStrategy to the RemoteAdProviderStrategy or a custom AdProviderStrategy. Insert below Xaml inside the Ads:AdControl Xaml element. 


<Ads:AdControl.AdProviderStrategy>
    <Strategy:RemoteAdProviderStrategy LocalProviderSettingsUri="Ads/AdSettings.xml"
                                       RemoteProviderSettingsUri="http://someurlinthewild.com/ads.xml" />
</Ads:AdControl.AdProviderStrategy>

- Change the Remote/LocalProviderSettingsUri properties and create the Ad Settings xml file according to the documentation: http://wpunifiedad.codeplex.com/