Integrating MoPub with Mediation

346 views
Skip to first unread message

Tuan

unread,
Feb 24, 2021, 1:41:57 AM2/24/21
to Google Mobile Ads SDK Developers
Hello,

I'm integrating MoPub with Mediation of AdMob to my apps following this guide: https://developers.google.com/admob/android/mediation/mopub#android_studio_integration_recommended
But the APK size becomes too large, so I'm trying to exclude some modules of MoPub SDK as code below because I only integrate Banner ad type.

    implementation 'com.google.android.gms:play-services-ads-lite:19.6.0'
    implementation 'com.google.ads.mediation:mopub:5.15.0.1'
    configurations {
        //all*.exclude group: 'com.mopub', module: 'mopub-sdk'
        //all*.exclude group: 'com.mopub', module: 'mopub-sdk-banner'
        all*.exclude group: 'com.mopub', module: 'mopub-sdk-fullscreen'
        all*.exclude group: 'com.mopub', module: 'mopub-sdk-native-static'
    }

This implementation can reduce APK size a little bit. But can it work to load banner ads from MoPub normally?

Thank you!

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 24, 2021, 5:12:02 AM2/24/21
to tuant...@gmail.com, google-adm...@googlegroups.com

Hi there,

Thank you for reaching out to us. 

It looks like you’re adding configuration dependencies in the build.gradle file that are not included on our recommended integration sample for MoPub. Kindly verify and update accordingly as this could be causing the APK size issue on your end.


Regards,

Google Logo
Sherwin Diesta
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DIUJU:ref

Tuan

unread,
Feb 24, 2021, 5:34:08 AM2/24/21
to Google Mobile Ads SDK Developers
Hi,

I understand that it's recommended to include full modules of MoPub SDK. But this makes a APK big size and I only need to integrate banner ad type, so I want to ask whether it's possible to only include "mopub-sdk-banner" and exclude others? Can't you be sure whether it's ok or not?

Regards

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 24, 2021, 10:20:39 AM2/24/21
to tuant...@gmail.com, google-adm...@googlegroups.com
Hi Tuan,

Thank you for responding back. I work along with Sherwin and will be helping you today. As stated previously we would suggest that you integrate the mo-pub as shown in this section . If you wanted to try and install just the banners. Or some component that just handles banners you are allowed. But we can not be certain that this will not cause issues. Which is why we suggest the full install.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DIUJU:ref

Tuan

unread,
Feb 24, 2021, 8:33:05 PM2/24/21
to Google Mobile Ads SDK Developers
Hi team,

I got it. But as you known, the Ads SDKs increase APK size so much, so I hope you will improve the mediation MoPub adapter SDK to help developers to reduce their app size like what AdMob Lite SDK did or can make modular SDK based on the modular MoPub SDK (https://developers.mopub.com/publishers/android/integrate/#sdk-modularization)

Thanks and regards

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 25, 2021, 9:51:32 AM2/25/21
to tuant...@gmail.com, google-adm...@googlegroups.com
Hi Tuan,

I work with Sherwin and William and will assist you. I will raise with my team your request for a supported option to just add the MoPub SDK for the ad types that you will mediate with so that you can save on apk size. You may monitor our release notes for an update .

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DIUJU:ref

Tuan TV

unread,
Feb 25, 2021, 10:48:55 AM2/25/21
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
Hi Aryeh,

Thanks for your helpful support!

Best regards,
Android developers

Vào Thứ Năm, 25 tháng 2, 2021, Mobile Ads SDK Forum Advisor Prod <mobileadssdk...@gmail.com> đã viết:

Tuan TV

unread,
Feb 25, 2021, 11:07:40 AM2/25/21
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
One more question, I can still use Mobile Ads Lite SDK with Mediation adapter SDK. Right?

    implementation 'com.google.android.gms:play-services-ads-lite:19.6.0'
    implementation 'com.google.ads.mediation:mopub:5.15.0.1'


Vào Thứ Năm, 25 tháng 2, 2021, Tuan TV <tuant...@gmail.com> đã viết:
Hi Aryeh,

Thanks for your helpful support!

Best regards,
Android developers

Vào Thứ Năm, 25 tháng 2, 2021, Mobile Ads SDK Forum Advisor Prod <mobileadssdkforumadvisor@gmail.com> đã viết:

Mobile Ads SDK Forum Advisor Prod

unread,
Feb 25, 2021, 1:35:21 PM2/25/21
to tuant...@gmail.com, google-adm...@googlegroups.com
Hi Tuan,

You probably would be able to use it. The issue you may have is on devices that don't have Google Play services installed they won't have our Mobile Ads SDK. The Lite version of our SDK relies on the Ads SDK in Google Play Services.
Message has been deleted

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 1, 2021, 1:25:31 AM3/1/21
to tuant...@gmail.com, google-adm...@googlegroups.com
Hi Tuan,

I work along with Aryeh. Allow me to assist you in this.

Could you please provide the details below (via Reply to author or a direct, private reply to mobileads...@gmail.com) so that I can further investigate this issue:
  • Copy of a sample project (replicating the issue)
  • Charles log (see instructions here) capturing the ad request
Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DIUJU:ref

Tuan TV

unread,
Mar 1, 2021, 3:00:37 AM3/1/21
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
Hi team,

Sorry I can't provide the details you requested.
I have no sample project, I hope you can reproduce and get logs in your side to investigate the problem. As you can see, there are other developers reported same problem. Please help us to resolve it if possible!

Thanks and regards


Vào Thứ Hai, 1 tháng 3, 2021, Mobile Ads SDK Forum Advisor Prod <mobileadssdk...@gmail.com> đã viết:
Hi Tuan,

I work along with Aryeh. Allow me to assist you in this.

Could you please provide the details below (via Reply to author or a direct, private reply to mobileadstesting99@gmail.com) so that I can further investigate this issue:

Mobile Ads SDK Forum Advisor Prod

unread,
Mar 1, 2021, 4:14:02 AM3/1/21
to tuant...@gmail.com, google-adm...@googlegroups.com

Hi Tuan,

Thank you for your message. I can see that this thread is originally created for your concern about the issue regarding the APK size on MoPub mediation adaptor specifically for banner ad type. I can confirm that this is now being handled by the team accordingly. Thus, we’ve advised you to monitor our release notes for future updates. 

However, with regard to your concern on “no onUserEarnedReward callback” for MoPub rewarded video, my suggestion for you is to create another thread for this issue for better tracking of the case. Also, to help us in investigating this issue, we would really appreciate it if you could provide additional information for us to reproduce the issue on our end. If a sample project file is not possible, at least the steps on how to do it or a complete stack trace of the error would be a big help.

You can send this information to our testing alias:  mobileads...@gmail.com


Regards,


Google Logo
Sherwin Diesta
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2DIUJU:ref

Tuan TV

unread,
Mar 1, 2021, 5:55:38 AM3/1/21
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
Hi,

I have already created new thread. Let's discuss on that thread.

Thanks!


Vào Thứ Hai, 1 tháng 3, 2021, Mobile Ads SDK Forum Advisor Prod <mobileadssdk...@gmail.com> đã viết:

Hi Tuan,

Reply all
Reply to author
Forward
0 new messages