- Home /
Microsoft ad not clickable in wp 8.1
Hi,
I'm using unity 4.6 beta 20 right now and just discovered that when I build Windows Store Universal 8.1 project, windows phone 8.1 ad control are not clickable.
Windows Store 8.1 ad controls works fine, and Windows phone 8.1 ad controls also loads ad fine, but my problem is that when i click (tap) the windows phone ad control, nothing happens.
Below are my mainPage.xaml code:
<SwapChainPanel x:Name="DXSwapChainPanel">
<Grid x:Name="ExtendedSplashGrid">
<Image x:Name="ExtendedSplashImage" Source="Assets/SplashScreen.png" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>
<ui:AdControl x:Name="AdCont"
AutoRefreshIntervalInSeconds="60"
ApplicationId="test_client"
AdUnitId="Image320_50"
HorizontalAlignment="Left"
Height="50"
IsAutoRefreshEnabled="True"
Margin="40,110,0,0"
VerticalAlignment="Top"
Width="320"
></ui:AdControl>
</SwapChainPanel>
I'm using empty unity project and didn't change anything in app.xaml.cs
P.S. I'm using Lumia 620 as my test device if that matters..
No solution yet. I got this answer from unity but didn't got it working yet:
In App.xaml.cs find this code:
var mainPage = new $$anonymous$$ainPage(args.SplashScreen);
Window.Current.Content = mainPage;
Window.Current.Activate();
and replace it with this:
rootFrame = new Frame();
rootFrame.CacheSize = 1;
Window.Current.Content = rootFrame;
Window.Current.Activate();
rootFrame.Navigate(typeof($$anonymous$$ainPage));
Did they say anything else? Doing what you suggested crashes the app for me here:
override public object ActivateInstance()
{
return Activator();
}
with a NullReferenceException.
Realy work: check $$anonymous$$as1856 answer and download the template. Just tested and clicking ad finally works for me too! $$anonymous$$IRACLE!!
Answer by MasoInar · Mar 03, 2015 at 09:31 PM
Hi, I found working template from here: http://forum.unity3d.com/threads/game-graphics-freeze-after-live-windows-8-1-store-ad-is-displayed-using-prime31-plugin.297778/
check Tomas1856 answer and download the template. Just tested and clicking ad finally works!