Thursday 2 May 2013

Windows Store App - Online Advertising in your app


1. Download the Microsoft Advertising SDK for Windows 8
2. Add references in your project

3. Add refernce in your xaml
xmlns:UI="using:Microsoft.Advertising.WinRT.UI"
4. Add the control in your xaml, make sure you give the correct ApplicationID and AdUnitID created at the pubCentre against your hotmail account. give the correct width and height.
<UI:AdControl Visibility="Visible"  Width="500" Height="65"
                    x:Name="AdCntrl"
                  IsAutoRefreshEnabled="True"   ApplicationId="d25517cb-12d4-4699-8bdc-52040c712cab"  AdUnitId="10042999"
                  />
5. Build the project and run your app. It works!!!

No comments:

Post a Comment