Microsoft pubCenter 广告未显示在我的 WP8 应用程序中 [英] Microsoft pubCenter ads not showing in my WP8 app
问题描述
我无法在我的 Windows Phone 8 应用中使用 Microsoft pubCenter 广告.当我运行我的应用程序时,我只看到空白而不是广告更改为测试值似乎也不会显示广告你能帮助我吗?提前致谢
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 an ad neither Can you help me? Thanks in advance
这就是我在 pubCenter 帐户中看到的
That's what I see in my pubCenter account
这是我的 XAML 和我的应用程序的引用
That's my XAML and my app's references
推荐答案
试试这个应该没问题
XML:
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"/>
以下 ID_CAP 功能必须包含在启用广告的应用的清单中.ID_CAP_IDENTITY_USER
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_MEDIALIB_PHOTO
ID_CAP_NETWORKING
ID_CAP_NETWORKING
ID_CAP_PHONEDIALER
ID_CAP_PHONEDIALER
ID_CAP_WEBBROWSERCOMPONENT
ID_CAP_WEBBROWSERCOMPONENT
这篇关于Microsoft pubCenter 广告未显示在我的 WP8 应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!