Hey all,
Build my game and have it running on my windows phone.
Trying to incorporate the adds into the game (windows seems to allow this)
I am having a problem with the final part.
I have found the MainPage.xaml.cs and at the top I put
using Microsoft.Advertising.Mobile.UI;
I then added inside the MainPage() constructor
// ApplicationID = "test_client", AdUnitID = "Image480_80",
AdControl adControl = new AdControl("test_client", // ApplicationID
"Image480_80", // AdUnitID
true); // isAutoRefreshEnabled
// Make the AdControl size large enough that it can contain the image
adControl.Width = 640;
adControl.Height = 100;
Grid grid = (Grid)this.LayoutRoot.Children[0];
grid.Children.Add(adControl);
// Sample code to localize the ApplicationBar
// BuildLocalizedApplicationBar();
When I run the game I get an error saying LayoutRoot is not defined.
So I went into the MainPage.xaml and added this line of code for the grid
However I get an error saying content can only be set onece.