gpt4 book ai didi

windows-phone - 无法在 Windows 通用应用程序中显示广告

转载 作者:行者123 更新时间:2023-12-02 04:44:39 25 4
gpt4 key购买 nike

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

Required capabilities are missing from manifest (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" /> 

最佳答案

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

关于windows-phone - 无法在 Windows 通用应用程序中显示广告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34153093/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com