实施Admob for Android时的错误处理(Error handling when implementing Admob for Android)

编程入门 行业动态 更新时间:2024-10-09 07:28:52
实施Admob for Android时的错误处理(Error handling when implementing Admob for Android)

由于新的Admob SDK需要并使用Google Play服务,因此有几个与Google Play服务相关的广泛错误的实例严重影响了使用Admod作为其获利来源的应用。

在Admob开发者论坛上有一些关于如何缓解这些问题的讨论,但我还没有找到一种防弹方法,以确保像Admob横幅这样的东西没有机会强制关闭我的应用,如果Admob内部代码或Google Play服务内部代码崩溃。

您是否知道错误处理方法,在最坏的情况下,可能不会在请求后加载横幅添加而不是强制关闭应用程序,从而对用户产生不希望的低质量感知?

谢谢,迭戈。

Since the new Admob SDK requires and uses the Google Play Services there has been several instances of widespread errors related to Google Play Services badly impacting apps with Admod as their monetization source.

There are some discussions open in the Admob Developers Forum in regards to how to mitigate these issues but I have not found a bulletproof approach to make sure that something like an Admob banner does not have a chance to force close my app if either Admob internal code or Google Play Services internal code breaks down.

Do you know of an error handling approach that in the worst case scenario would just maybe not load a banner add after it being requested instead of force closing the app generating an undesired low quality perception to the user?

Thanks, Diego.

最满意答案

没有这样的野兽。

一旦调用了异步进程(如广告处理),就无法在Activity中捕获该错误。

There is no such beast.

Once you have invoked an async process (like ad handling) there is no way to catch that fault within your Activity.

更多推荐

本文发布于:2023-08-02 09:13:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1372694.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Android   Admob   implementing   handling

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!