Design your Windows 8 app with ads in mind

Learn how to avoid design problems while adding ads to your half-ready app

surfaceCreating a game or app is fun! And the best part is getting that engine running, isn’t it? Everybody loves core functionality. But what about the rest? If you design for Windows 8, sooner or later you will have to think about charms, contracts, promotional images and maybe you want to make a few bucks with advertisement.

This post is about getting ads in your app as soon as possible. This way there will be less surprises when you submit the app.

For a new game I am developing I need to “fake” some ads in my design. The easiest way to do this is as follows:

Download the Microsoft Advertising SDK

references

Place a test ad on you XAML Page

<Page xmlns:UI="using:Microsoft.Advertising.WinRT.UI" ...
<UI:AdControl HorizontalAlignment="Left"
                     Height="600"
                     VerticalAlignment="Top"
                     Width="160"
                     Grid.Row="2"
                     Margin="60,160,0,0"
                     ApplicationId="d25517cb-12d4-4699-8bdc-52040c712cab"
                     AdUnitId="10043134"/>

Important!

During the design of your app or game, you probably don’t need real ads. To get mockup ads from microsoft, make sure to set the ApplicationId to d25517cb-12d4-4699-8bdc-52040c712cab

The AdUnitId determines the type of the ad. Here is a table with all possible values.

So if all goes well, you will see test ads appearing on your pages:

ads