Microsoft Advertising test mode problem

sambahopkins

New member
Mar 18, 2016
13
0
0
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?
 
Hi,
I wonder, did you toggle the required app capabilities for the ad component to work?
Possible both WMAppManifest.xml and Package.appxmanifest...
 
Shouldn't the applicationId be an ID rather than "test_client"? It's been a few months since I worked with the SDK so can't remember.
 
Yes, I did it, toggled it all on. And it works perfect with real ids, but not with the testing ones.
 

Members online

No members online now.

Forum statistics

Threads
339,346
Messages
2,262,366
Members
428,752
Latest member
Skoryy