Microsoft Advertising test mode problem

sambahopkins

New member
Mar 18, 2016
13
0
0
Visit site
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?
 

carraig

New member
Jul 5, 2015
29
0
0
Visit site
Hi,
I wonder, did you toggle the required app capabilities for the ad component to work?
Possible both WMAppManifest.xml and Package.appxmanifest...
 

mbrdev

New member
Aug 9, 2015
53
0
0
Visit site
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.
 

Members online

Forum statistics

Threads
323,276
Messages
2,243,561
Members
428,053
Latest member
JoshRos