Microsoft pubCenter ads not showing in my WP8 app

前端 未结 2 998
攒了一身酷
攒了一身酷 2021-01-26 21:30

I can\'t get Microsoft pubCenter ads to work in my Windows Phone 8 App. When I run my app I only see white space instead of the ad Changing to test values doesn\'t seem to show

相关标签:
2条回答
  • 2021-01-26 21:42

    It takes PubCenter a couple of days to populate ads for a new App. To see how the ads look, use the default ad in debug mode. Once PubCenter has seeded Bing's ad delivery system, you'll start seeing ads in App.

    #if DEBUG
            return new AdControl()
            {
                AdUnitId = "Image480_80",
                ApplicationId = "test_client",
                Height = 80,
                IsAutoCollapseEnabled = autocollapse,
                IsAutoRefreshEnabled = true,
                Width = 480,
            };
    #endif
    
    0 讨论(0)
  • 2021-01-26 21:49

    Try this It Should Work fine

    Xaml:

    xmlns:UI="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
    
    <UI:AdControl ApplicationId="test_client" AdUnitId="Image480_80" Height="80" Width="480" VerticalAlignment="Bottom" ErrorOccurred="AdControl_ErrorOccurred"/>
    

    The following ID_CAP capabilities must be included in the manifest of the advertising-enabled app. ID_CAP_IDENTITY_USER

    ID_CAP_MEDIALIB_PHOTO

    ID_CAP_NETWORKING

    ID_CAP_PHONEDIALER

    ID_CAP_WEBBROWSERCOMPONENT

    0 讨论(0)
提交回复
热议问题