Hello!
There is some strange and frustrating problem with MS Adv in test mode:
I use this code to create banner:
String _ApplicationId = "test_client";
String _AdUnitId = "Image480_80";
Boolean _IsAutoRefreshEnabled = true;
AdControl ads = new AdControl();
ads.SetValue(Windows.UI.Xaml.Controls.Canvas.ZIndexProperty, 98);
ads.ApplicationId = _ApplicationId;
ads.AdUnitId = _AdUnitId;
ads.IsAutoRefreshEnabled = _IsAutoRefreshEnabled;
ads.AutoRefreshIntervalInSeconds = 60;
ads.HorizontalAlignment = HorizontalAlignment.Center;
ads.VerticalAlignment = VerticalAlignment.Top;
ads.Width = 480;
ads.Height = 80;
then I handle errors (in OnAdError) I show the error text in debug and show message "ERROR!" instead of banner, on it's place):
ads.ErrorOccurred += OnAdError;
and show my banner:
DXSwapChainPanel.Children.Add(ads);
and there is always no test ads, just error with connecting to web.
But web is connected.
I'm tired to wait and put my real banner and app ids and app (Unity Game) is in store and ads shows normal, everything is alright.
But still I will need testing in future, when will do not just a simple banner.
Is there any "magic" with test mode for MS Ads?
There is some strange and frustrating problem with MS Adv in test mode:
I use this code to create banner:
String _ApplicationId = "test_client";
String _AdUnitId = "Image480_80";
Boolean _IsAutoRefreshEnabled = true;
AdControl ads = new AdControl();
ads.SetValue(Windows.UI.Xaml.Controls.Canvas.ZIndexProperty, 98);
ads.ApplicationId = _ApplicationId;
ads.AdUnitId = _AdUnitId;
ads.IsAutoRefreshEnabled = _IsAutoRefreshEnabled;
ads.AutoRefreshIntervalInSeconds = 60;
ads.HorizontalAlignment = HorizontalAlignment.Center;
ads.VerticalAlignment = VerticalAlignment.Top;
ads.Width = 480;
ads.Height = 80;
then I handle errors (in OnAdError) I show the error text in debug and show message "ERROR!" instead of banner, on it's place):
ads.ErrorOccurred += OnAdError;
and show my banner:
DXSwapChainPanel.Children.Add(ads);
and there is always no test ads, just error with connecting to web.
But web is connected.
I'm tired to wait and put my real banner and app ids and app (Unity Game) is in store and ads shows normal, everything is alright.
But still I will need testing in future, when will do not just a simple banner.
Is there any "magic" with test mode for MS Ads?