我的AdMediatorControl对象没有Id属性 [英] My AdMediatorControl Objects Do Not Have An Id Property
问题描述
大家好。
我正在使用Community 2015,我正在尝试通过Windows Phone 8.1应用获利。
I am using Community 2015 and I am trying to monetize a Windows Phone 8.1 app.
这里是问题。当我将AdMediatorControl对象拖放到画布上时,XAML代码中没有Id属性。
Here is the issue. When I drag and drop an AdMediatorControl object onto the canvas, there is no Id property in the XAML code.
此外,当我尝试通过执行 配置广告网络时右键单击项目 - > 添加 - >连接服务 - >广告调解员 - >配置
会弹出以下错误消息: AM001:一个或多个Ad Mediator控件缺少Id属性。有关详细信息,请参阅广告调解文档。
Moreover, when I try to configure the ad networks by doing a Right-click on project -> Add -> Connected Service -> Ad Mediator -> Configure this error message pops up: AM001: One or more of the Ad Mediator controls is missing an Id property. For more info see the Ad Mediation Documentation.
之前我通过解决方案资源管理器从项目中删除了AdMediator.config文件。 (我想重新做整个过程作为练习)。这是导致此问题的原因吗?
Earlier I deleted the AdMediator.config file from my project through the Solution Explorer. (I wanted to re-do the whole process as practice). Is this what is causing the issue?
我已经完成的故障排除步骤包括重新启动笔记本电脑,尝试使用其他项目并卸载/重新安装Microsoft Universal Ad Client SDK。什么都没有用。
The troubleshooting steps I've done include restarting the laptop, having tried this with other projects and uninstalling/re-installing the Microsoft Universal Ad Client SDK. Nothing has worked.
对于应该做什么的任何想法?
Any thoughts on what should be done?
非常感谢,
迈克。
参考文章: https://msdn.microsoft.com/en-us/windows/uwp/monetize/add-and-use-the-ad-mediator-control
Reference article: https://msdn.microsoft.com/en-us/windows/uwp/monetize/add-and-use-the-ad-mediator-control
推荐答案
目前v2.0.5它在VS2015上没有生成Name和Id属性。因此,如果你正在使用2015,请尝试手动添加它们,并确保它的独特之处是你的应用程序。我希望他们能尽快解决。
At the moment v2.0.5 Its not generating Name and Id attributes on VS2015. So if you're using 2015 try to add them manually and make sure its unique insude your app. I hope they'll fix it soon.
这篇关于我的AdMediatorControl对象没有Id属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!