I wanna put an add on my Windows Phone game, i can’t do it in the Visual Studio because i can’t acess the script C# imported from unity.
1 Like
Does it Works if i place this code in the Unity C# page?
using Microsoft.Advertising.Mobile.UI;
{
InitializeComponent();
// 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 = 480;
adControl.Height = 80;
Grid grid = (Grid)this.LayoutRoot.Children[1];
grid.Children.Add(adControl);
// Sample code to localize the ApplicationBar
//BuildLocalizedApplicationBar();
}
My computer doesn’t open WP8 emulator…