Skip to content Skip to sidebar Skip to footer

Afma_receivemessage Is Not Defined Using Appodeal

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 I tried to

Solution 1:

Check if you have android:theme="@android:style/Theme.Translucent" added to the activity declaration in your manifest as follows:

<activityandroid:name="com.google.android.gms.ads.AdActivity"android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|s‌​creenSize|smallestScreenSize"android:theme="@android:style/Theme.Translucent" />

This seems to have fixed the problem for someone as per the comments on this question

Also try to include the entire GMS library in your dependency and see if that works:

Replace:

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'

With:

compile'com.google.android.gms:play-services-ads:8.4.0'

Solution 2:

Make sure you have created seperate Ad Unit ID for interstitial. If you use banner Ad Unit ID for interstitial request, this exact same error happens.

Solution 3:

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!

Post a Comment for "Afma_receivemessage Is Not Defined Using Appodeal"