[UWP10] [C#]与AdDuplex和Microsoft Advertising进行广告调解的奇怪行为 [英] [UWP10][C#] Strange behaviour of Ad Mediation with AdDuplex and Microsoft Advertising
问题描述
您好
我最近在我的UWP 10应用中添加了广告调解。
I recently added Ad Mediation to my UWP 10 app.
我正在使用两个受支持的广告网络 - AdDuplex和AdMediation。
I am using two supported ad networks - AdDuplex and AdMediation.
问题是,即使我已完全按照文档(https://msdn.microsoft.com/en-us/library/windows/apps/xaml/mt219691.aspx),即:
The problem is, that even though I have configured everything exactly as stated in the docs (https://msdn.microsoft.com/en-us/library/windows/apps/xaml/mt219691.aspx), that is:
1。我已将Universal Ad Mediator控件拖到XAML DESIGNER(不是代码)上。广告中介引用自动添加到项目中,添加的控件自动生成ID。
1. I have dragged Universal Ad Mediator control onto XAML DESIGNER (not code). Ad Mediator reference automatically was added to the project and the added control had its ID auto generated.
2。我已添加已连接服务并已配置:
2. I have added Connected Service and configured:
- AdDuplex的应用ID和广告单元ID
- AdDuplex's App ID and Ad Unit IDs
- Microsoft广告左侧自动生成的平板电脑应用的VS标识符ID,广告单元ID和移动应用ID以及广告单元ID。
- Microsoft Advertising left auto generated by VS identifiers for Tablet App ID, Ad unit id and Mobile App ID and AD unit id.
3。在发布设置上测试应用程序。在这一点上,一些东西已经很奇怪了,但我起初认为它可能不适用于从Store下载的unitl。它很有效,但很奇怪。
3. Tested the app on Release Settings. At this point something was already weird, but I thought at first that it might not work unitl downloaded from Store. It worked, but in weird way.
4。所以我将应用程序提交给开发中心,后者成功通过了认证。
4. So I submitted the app to Dev Center, which succesfully passed the certification.
5。在Microsoft发送有关Ad Mediation的电子邮件后,我使用开发中心门户网站为Microsoft广告手动生成了新的平板电脑和移动广告ID以及广告单元。
5. After e-mail from Microsoft about Ad Mediation, I have manually generated new Tablet and Mobile Ad IDs and AD units for Microsoft Advertising using the Dev Center Portal.
当我在Windows 10 PC上下载应用程序时,我注意到与我的开发PC上的Release版本相同的怪异:
When I downloaded the app on my Windows 10 PC I have noticed the same weirdness as on Release build on my dev PC:
- 首先,AD控件完全空白
- at first, the AD control is totally blank
- 几秒钟后会显示AdDuplex广告,但是......只需1-2秒即可消失!
- after few seconds an AdDuplex ad is shown, but... just for 1-2 seconds and it immediatealy disappears!
- 之后Ad控件再次完全空白
- after that the Ad control is totally blank again
- 10-15秒后,AdDuplex广告再次显示...持续1-2秒即刻消失
- after 10-15 secs the AdDuplex ad is being shown again... for 1-2 seconds to immediatealy disappear
- 没有显示微软广告广告
- no Microsoft Advertising ads are shown
- 4天内的AdDuplex已经向我显示完全相同的两个广告
- AdDuplex from 4 days already shows me exactly the same two ads
我的问题是 - 我做错了什么?我该如何解决这个问题?我希望Microsoft广告广告以100%的费率显示,而AdDuplex仅作为备份。这就是我在开发中心配置Ad Mediator的方式。
My question is - what could have I done wrong? How can I solve the problem? I want Microsoft Advertising ads to be displayed in 100% rate, while AdDuplex to be only as a backup. And this is the way I have configured Ad Mediator in Dev Center.
提前致谢
问候
编辑:
我推出了来自VS的应用程序再次发布设置,我注意到输出窗口中有一个异常:
I launched the app from VS on Release settings again and I have noticed an Exception in the output window:
抛出异常:Microsoft中的"System.ArgumentException" .AdMediator.Core.dll是
info:get_AppId()被调用。 (Windows :: ApplicationModel :: Store :: CurrentAppFactory :: get_AppId)
Exception thrown: 'System.ArgumentException' in Microsoft.AdMediator.Core.dll
info:get_AppId() invoked. (Windows::ApplicationModel::Store::CurrentAppFactory::get_AppId)
推荐答案
您可能并不总是从Microsoft获得添加。 您是否使用广告中介设置了辅助广告提供商? AdDuplex始终显示广告。
You might not always get an add from Microsoft. Did you set up a secondary ad provider with the ad mediation? AdDuplex always shows an ad.
这篇关于[UWP10] [C#]与AdDuplex和Microsoft Advertising进行广告调解的奇怪行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!