Android Question Mopub admob mediation integration

tufanv

Expert
Licensed User
Hello,

I have included the aars for mopub, jetified them, created a mediation in admob console, now I can see the requests on mty mopub stats page,but I cant get an impression when mopub wins the mediation ( I can see interstitial received by admob but no impressions) when this is the case , I get this in the logs:

com.google.android.gms.ads.mediation.OnImmersiveModeUpdatedListener #009 Class mismatch: com.mopub.mobileads.dfp.adapters.MoPubAdapter
START u0 {flg=0x10000000 cmp=ct.canlidoviz/com.mopub.mobileads.MraidActivity (has extras)} from uid 10070
MraidActivity.class not found. Did you declare MraidActivity in your manifest?


any ideas ?_

I dont know if I have to add these for admob mediation:

<!-- MoPub's consent dialog -->
<activity android:name="com.mopub.common.privacy.ConsentDialogActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>

<!-- All ad formats -->
<activity android:name="com.mopub.common.MoPubBrowser" android:configChanges="keyboardHidden|orientation|screenSize"/>

<!-- Interstitials -->
<activity android:name="com.mopub.mobileads.MoPubActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
<activity android:name="com.mopub.mobileads.MraidActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
also I included these aars:

#AdditionalJar: mopub-5.8.0.0.aar
#AdditionalJar: mopub-sdk-base-5.8.0.aar
#AdditionalJar: mopub-sdk-banner-5.8.0.aar
#AdditionalJar: mopub-sdk-interstitial-5.8.0.aar
#AdditionalJar: mopub-sdk-rewardedvideo-5.8.0.aar
#AdditionalJar: mopub-sdk-native-static-5.8.0.aar
#AdditionalJar: mopub-sdk-native-video-5.8.0.aar
#AdditionalJar: mopub-volley-2.1.0.aar
I dont know If I have to add others explained here:
https://developers.mopub.com/publishers/android/get-started/

also the mediation tutorial shows an additional code required at step 4:

https://developers.google.com/admob/android/mediation/mopub

I didnt add this as I dont know how to do it.

By the way, while I was trying to achieve this , ı updated the google-play services related items in sdk manager and I now get:

Google Play Store is missing.
Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found
Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found
Google Play Store is missing.
Google Play services is missing.
Google Play services missing or without correct permission.


ads are showing but I get this in the logs
 
Last edited:

tufanv

Expert
Licensed User
Looks like several things are missing. Start with adding:
B4X:
#AdditionalJar: com.android.support:support-v4
I added that, before adding this I got 2 impressions as it is reported at mopub interface but I dont know what fixed it or is it not working again because i dont get any more imperssions, updating the google play services causes an error in logs satyting google play store not found , google play services is missing but I can get some admob impressions.
 
Top