未定义AFMA_ReceiveMessage [英] AFMA_ReceiveMessage is not defined

查看:79
本文介绍了未定义AFMA_ReceiveMessage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将AdMob集成到我的android应用中。添加部分的代码非常简单,几乎完全来自Google Developer的指南。我正在尝试实施插页式广告。广告显示正常,但我在stackTrace中获得了红色:

I am integrating AdMob in my android app. The code for the add part is pretty simple and almost straight from Google Developer's guide. I am trying to implement Interstitials. The ads are showing fine but I am getting this in stackTrace in red:


E / Ads(21443):JS:未捕获ReferenceError:AFMA_ReceiveMessage没有定义(null:1)

E/Ads(21443): JS: Uncaught ReferenceError: AFMA_ReceiveMessage is not defined (null:1)

有人可以告诉我这是什么意思吗?是否可以发布此错误的应用程序,因为它不会导致应用程序崩溃?

Can anyone tell me what it means? Is it ok to release the app with this error as it doesn't crash the app?

编辑:我只是注意到特定广告收到了此错误,不适合另一个(现在只在我的国家/地区投放两个广告)。因此,也许只是发布者端缺少的东西。

I just noticed that this error is being received for a specific ad and not for the other(just getting two ads in my country for now). So maybe it's just something missing from Publisher end.

推荐答案

如果这是测试设备,则应调用 AddTestDevice(您的测试仪设备代码,您可以在启动应用程序时从logCat获取它)
如果不是这样的话,它应该可以在生产环境中正常工作。

If this is the testing device you should call AddTestDevice("your tester device code you can got it from logCat when you start the App"). If not it should work fine in the production environment.

测试器:

AdView mAdView = (AdView)rootView.findViewById(R.id.adView);
Builder adRequest = new AdRequest.Builder().addTestDevice("3F166F686479332267DD2DCCD89dfwrg");
AdRequest aaa=adRequest.build();
mAdView.loadAd(aaa);

生产:

AdView mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);

这篇关于未定义AFMA_ReceiveMessage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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