新建的广告VS解决方案已被破坏 [英] Newly Created VS Solution with ads is broken

查看:51
本文介绍了新建的广告VS解决方案已被破坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次生成了一个新的App Studio应用程序,并在全新安装的Visual Studio 2015社区版Update 3中打开它。我安装Microsoft Services SDK(https://visualstudiogallery.msdn.microsoft.com/229b7858-2c6a-4073-886e-cbb79e851211/)
来投放广告,我收到错误


错误  找不到SDK" Microsoft.AdMediator.Universal,Version = 1.0"。 


这应该不是开箱即用的全新功能App Studio app?




C#Professional

解决方案




嗨Lars,

您能否告诉我们您使用的AD控件? AdControl或AdMediatorControl?

就我而言,你不能在UWP应用程序中使用AdMediatorControl,你可以参考


如果您在Windows和Windows Phone 8.x中使用过AdMediatorControl,请检查以下步骤:

1.请安装。


最诚挚的问候,


Neal Wang


I have generated a new App Studio app for the first time and opening it in a fresh install of Visual Studio 2015 Community edition Update 3 it is broken. I install Microsoft Services SDK (https://visualstudiogallery.msdn.microsoft.com/229b7858-2c6a-4073-886e-cbb79e851211/) to serve ads and I get the error

Error  Could not find SDK "Microsoft.AdMediator.Universal, Version=1.0". 

Should this not work out of the box for a brand new App Studio app?


C# Professional

解决方案


Hi Lars,
Could you please tell us which AD control are you using? The AdControl or AdMediatorControl ?
As far as I’m concerned, you cannot use AdMediatorControl in the UWP app and you can refer to this link.

If you used the AdControl in your UWP app, you can refer to the following steps:
1.Please install Microsoft Store Services SDK
2.In Visual Studio, open your project or create a new project
3.From the Solution Explorer window, right click References, and select Add Reference
4.In Reference Manager, Expand Universal Windows, click Extensions, and then select the check box next to Microsoft Advertising SDK for XAML (Version 10.0).

5.In Reference Manager, click OK
6.Add the namespace reference Microsoft.Advertising.WinRT.UI


For more details about AdControl you can refer here.

If you used AdMediatorControl in your windows and windows phone 8.x, please check the following steps:
1.Please install Microsoft Advertising SDK for windows and windows phone 8.x
2.In Visual Studio, open your project or create a new project
3.From the Solution Explorer window, right click References, and select Add Reference
4.In Reference Manager, Expand Windows 8.1, click Extensions, and then select the check box next to Ad Mediator SDK for Windows 8.1 XAML

5.In Reference Manager, click OK
6.Add the namespace reference Microsoft.AdMediator.Windows81

To configure the ad networks:
1.From the Solution Explorer window, right click References, and select Add connected service
2.click Ad Mediator and then click Configure to open the Ad Mediator window

3.click Select ad networks, select the ad networks you want to use, and click OK in the Select ad networks window.

4.In the Ad Mediator (Visual Studio 2015), click Configure to enter the configuration information for each network to use while testing the app.
More details about AdMediator you can refer to this .

Best Regards,

Neal Wang


这篇关于新建的广告VS解决方案已被破坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆