1. sambahopkins's Avatar
    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:
    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?
    03-18-2016 09:09 AM
  2. carraig's Avatar
    I wonder, did you toggle the required app capabilities for the ad component to work?
    Possible both WMAppManifest.xml and Package.appxmanifest...
    03-20-2016 02:55 PM
  3. mbrdev's Avatar
    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.
    03-22-2016 04:51 PM
  4. sambahopkins's Avatar
    Yes, I did it, toggled it all on. And it works perfect with real ids, but not with the testing ones.
    03-28-2016 06:31 PM
  5. sambahopkins's Avatar
    Of couse it should be real IDs for real banner and App :) and it works just fine with the real ids.
    https://msdn.microsoft.com/en-us/lib...ml-markup.aspx - that is where "test_client" came from.
    03-28-2016 06:34 PM

Similar Threads

  1. Replies: 1
    Last Post: 05-25-2016, 06:15 AM
  2. Replies: 0
    Last Post: 03-18-2016, 08:45 AM
  3. Replies: 0
    Last Post: 03-18-2016, 07:35 AM
  4. Maps for Windows 10 Mobile updated with new drive mode, cleaner UI and better search
    By WindowsCentral.com in forum Windows Central News Discussion & Contests
    Replies: 0
    Last Post: 03-18-2016, 06:42 AM
  5. How can I fix my Lumia 1520 display problem?
    By Yash Parikh in forum Windows 10
    Replies: 1
    Last Post: 03-18-2016, 06:15 AM