【发布时间】:2014-06-08 22:47:48
【问题描述】:
我无法让 Microsoft pubCenter 广告在我的 Windows Phone 8 应用程序中运行。 当我运行我的应用程序时,我只看到空白而不是广告 更改为测试值似乎也没有显示广告 你能帮助我吗?提前致谢
这就是我在 pubCenter 帐户中看到的内容
这是我的 XAML 和我的应用的引用
【问题讨论】:
标签: c# windows-phone-8 ads
我无法让 Microsoft pubCenter 广告在我的 Windows Phone 8 应用程序中运行。 当我运行我的应用程序时,我只看到空白而不是广告 更改为测试值似乎也没有显示广告 你能帮助我吗?提前致谢
这就是我在 pubCenter 帐户中看到的内容
这是我的 XAML 和我的应用的引用
【问题讨论】:
标签: c# windows-phone-8 ads
试试这个应该可以的
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"/>
以下 ID_CAP 功能必须包含在启用广告的应用的清单中。 ID_CAP_IDENTITY_USER
ID_CAP_MEDIALIB_PHOTO
ID_CAP_NETWORKING
ID_CAP_PHONEDIALER
ID_CAP_WEBBROWSERCOMPONENT
【讨论】:
PubCenter 需要几天时间才能为新应用填充广告。要查看广告的外观,请在调试模式下使用默认广告。在 PubCenter 植入 Bing 的广告投放系统后,您将开始在应用中看到广告。
#if DEBUG
return new AdControl()
{
AdUnitId = "Image480_80",
ApplicationId = "test_client",
Height = 80,
IsAutoCollapseEnabled = autocollapse,
IsAutoRefreshEnabled = true,
Width = 480,
};
#endif
【讨论】: