无法在Windows Universal应用中显示广告

时间:2015-12-08 10:07:55

标签: windows-phone windows-10 win-universal-app windows-10-universal

我使用Windows Universal(Windows 10)模板创建了一个应用程序,并在MainPage中集成了Microsoft Advertising 当我运行应用程序时,出现错误消息:

  

清单(AppxManifest.xml)中缺少必需的功能:internetClient

我确定在Package.AppxManifest中检查了Internet(客户端)和Internet(客户端和服务器),但在运行应用程序时仍显示上述错误

代码放在MainPage.xaml上:

<UI:AdControl Height="250" Width="300" VerticalAlignment="Top" Name="AdControl" ErrorOccurred="AdControl_ErrorOccurred" HorizontalAlignment="Right" ApplicationId="xxx" AdUnitId="xxx" /> 

1 个答案:

答案 0 :(得分:0)

您使用的是哪个版本的Microsoft Advertising SDK?建议使用Microsoft Universal Ad Client SDK v2.0.2: https://visualstudiogallery.msdn.microsoft.com/401703a0-263e-4949-8f0f-738305d6ef4b

相关问题