未使用APPODEAL定义AFMA_ReceiveMessage [英] AFMA_ReceiveMessage is not defined using APPODEAL

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

问题描述

我正在尝试将APPODEAL横幅广告与我的应用集成,并且此错误出现在我的logcat中:

I am trying to integrate APPODEAL banner ad with my app and this error is appearing in my logcat:

E/Ads: JS: Uncaught ReferenceError: AFMA_ReceiveMessage is not defined

我尝试这样做:AFMA_ReceiveMessage尚未定义,但错误消息仍在显示并且无法看到任何横幅广告。
我对build.gradle的依赖关系如下:

I tried to do this: AFMA_ReceiveMessage is not defined but the error message is still showing up and im not able to see any banner ad. My dependencies on build.gradle looks like this:

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile project(':unity-ads-1.5.3')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-analytics:8.4.0'
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'

}

我的横幅广告代码显示在我主要活动的onCreate()方法上:

And my banner show code that is on the onCreate() method of my main activity:

new Thread(new Runnable() {
        public void run() {
            Appodeal.initialize(MainActivity.this, appKey, Appodeal.BANNER);
            Appodeal.show(MainActivity.this, Appodeal.BANNER_BOTTOM);
        }
    }).start();

清单上的权限如下:

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

并且bundle_id与APPODEAL上的那个相匹配。任何人都可以告诉发生了什么或这意味着什么?

and the bundle_id matches with the one that is on the APPODEAL. Can anyone tell what is going on or what that means ?

-------------------- EDIT-- --------------------

--------------------EDIT----------------------

我刚刚在此Google网上论坛讨论中发现:

I just found out on this google groups discussion:

https://groups.google.com/forum/#!searchin/google-admob-ads-sdk/AFMA/google-admob-ads-sdk/LVnmBbQd2l4/47T8Xn0SAgAJ

(对于我来说)这是新创建的广告单元的问题。
在创建后的24小时内运行,现在可以正常使用。

That (in my case) it was a problem with newly created ad units. 24h past the creation and it is working perfectly now.

推荐答案

我想它可能与单独的广告单元相关联如上所述,用于确定的广告格式。无论如何,我建议在主页上通过聊天联系他们的支持人员,您会在其中看到一个聊天图标。我遇到了一个技术问题,并且在一个小时内得到解决,因此直接与他们的专家联系似乎更有效。干杯!

I suppose it might be connected with separate ad units for definite ad formats, as mentioned above. Anyway i'd suggest contacting their support via chat on the homepage you'll see there a Chat-icon. I had a technical issue and it was fixed within an hour, so it seems to be more effective to reach out one of their specialists directly. Cheers!

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

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