当应用尝试显示视频插页式广告时崩溃 [英] Crash when the app try to show a video interstitial

查看:75
本文介绍了当应用尝试显示视频插页式广告时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个测试视频插页式广告的应用。此应用程序是适用于Windows 8.1的DirectX应用程序,它是在VS2013中创建的。但是,当应用程序尝试显示广告时,应用程序崩溃并出现此异常:

I created an app to test the video interstitial. This app is a DirectX App for Windows 8.1 and it was created in VS2013. But when the App tries to show the ad the App crashes with this exception:

为了在此应用中实施视频插页式广告,我使用了微软的文档。 (链接:https://msdn.microsoft.com/en-us/library/mt313191(v = msads.30).aspx)

For implementing the video interstitials in this app I used the Microsoft's documentation. (link: https://msdn.microsoft.com/en-us/library/mt313191(v=msads.30).aspx)

有谁知道这是什么问题?

Does anyone know what is the problem?

PS:我还附加了我测试视频插页式广告的项目:  http://bit.ly/1FfEkST

PS: Also I attached the project where I tested the video interstitials:  http://bit.ly/1FfEkST

干杯。

推荐答案

我在Visual Studio 2015中创建了一个默认的DirectX11通用应用程序(两者都是"用于XAML"),我遇到了完全相同的问题。我使用的InterstitialAd代码是推荐的代码

I experienced exactly the same issue by creating a default DirectX11 universal app (both 'for XAML' and not) in Visual Studio 2015. The InterstitialAd code I used is the one recommended at

https://msdn.microsoft.com/en-us/library/mt313191(v = msads.30).aspx

https://msdn.microsoft.com/en-us/library/mt313191(v=msads.30).aspx

在调用时,是否有人成功显示插页式广告而不会崩溃 - > Show()?任何人都可以发布使用的确切实现吗?

Did anyone succeed in showing interstitials without crashing when calling ->Show()? Can anyone please post the exact implementation to use?

请注意OnAdReady()回调按预期触发,因此广告请求似乎正常工作。

Note that the OnAdReady() callback is fired as expected, so ad requests seem to work fine.

提前致谢 

Thanks in advance 


这篇关于当应用尝试显示视频插页式广告时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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