On February 29th at the Mobile World Congress in Barcelona, Microsoft announced the Consumer Preview of Windows 8. As I shared in my previous post, Windows 8 offers unprecedented reach and I am happy to say that the feedback we’ve had has been very positive thus far.
The technical preview of our Advertising SDK for Windows 8 was downloaded by numerous developers across the world that are eager to start integrating high-quality advertising in their apps. However it is important to note that there are breaking changes and that the technical preview of our Advertising SDK for Windows 8 will not work on the new Windows 8 Consumer Preview release.
Since the Technical Preview Ad SDK , we have been working to further simplify the developer experience, including posting the help content on MSDN, and extending our Ads SDK capabilities to support best-in-class consumer ad experiences. You can download the updated beta version of our Advertising SDK for Windows 8 here.
In my first blog, I discussed the Metro style apps using HTML so this time around I am going to do a walk through for Metro style apps using XAML.
Getting Started with Metro style apps using XAML
As mentioned we have worked to make integrating the SDK simpler. SDK.
- The first step is to download and the install the Ads SDK from here.
- If you have not done so before, in order to receive live ads from real advertisers, you need to register and setup your account at https://pubcenter.microsoft.com/ (figure 1).
- Integrate the SDK by adding a reference to the newly installed Microsoft Advertising SDK for Windows 8 (Xaml) Extension (figure 2).
- Define the namespace in your XAML app mlns:my="using:Microsoft.Advertising.WinRT.UI.
NOTE: The ad control requires that you declare the “Internet (Client)” capability in your application manifest which allows the ad control to fetch the ads over the internet.
Once you have signed up in PubCenter, you can replace the ApplicationID and AdUnitID with the values issued by PubCenter.
Figure 1. PubCenter Sign-up
Figure 2. Adding reference to the extension
You can expect to see the demo Gears of War™ 3 ads in the release too, but we will share more information about pay out and real advertiser ads in the near future so do stay tuned.
As an adopter of the beta Ads SDK you can participate in shaping the product and we are looking forward to your feedback and participation.
Ian Ferreira - Group Program Manager - Ads R&D at Microsoft