Silverlight Feeds - All your Silverlight feeds in one place.

Sponsors

Wednesday, March 16, 2011

A quick tip for those working with the Windows Phone 7 AD SDK.

by mbcrump via Michael Crump on 3/16/2011 11:46:03 AM

One thing that I’ve noticed in several apps in the Windows Phone 7 marketplace is the ad chopping off on the right hand side. I decided that my next Windows Phone 7 app will be ad supported so why not sign up for the Advertising SDK and investigate this issue. *Note: If you want to see this in an actual app then download the free app called “Road Rage”.

So here is an example of what I am talking about:

SNAGHTMLc5e07

You will notice that the right hand side of the AD is chopped off using the default ad banner. You can see the border on the left hand side clearly. So, what exactly is going on? Let’s take a look at this in the designer.

image

From this image we can see it clearer, the margin of the grid that the ad is contained in needs to be removed.

By default, the ContentPanel in a Windows Phone Page has a margin already set on it. See below for an example of this:

<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
</Grid>

If you simply remove that margin then your ad will display properly as shown below.

SNAGHTML245512

It’s strange that I’ve seen this in multiple WP7 applications in the marketplace. If you are trying to make money off Ads, you would probably want to make sure the full ad is displayed. I am hoping this short post helped someone. 

alt Subscribe to my feed

email it!bookmark it!digg it!

Original Post: A quick tip for those working with the Windows Phone 7 AD SDK.

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. Silverlight Feeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on Silverlight Feeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us