AdMob Mediation, AdColony and Proguard

716 views
Skip to first unread message

Michael Scamell

unread,
Aug 27, 2016, 6:33:55 AM8/27/16
to Google Mobile Ads SDK Developers
Hello, 

I'm having issues with AdColony when using it in AdMob for mediation with a rewarded video. 

I'm using proguard and have added the necessary exclusion statements for AdMob and the specific ones for the AdColony SDK.

It looks like this (note it might be messy because i've added my own in attempts to solve this issue)

-keep class com.android.vending.billing.**

-keep class com.chartboost.** { *; }
-keep class com.immersion.** { *; }
-keep class jirbo.adcolony.** { *; }
-dontwarn com.immersion.**
-dontnote com.immersion.**

-dontwarn android.webkit.**

-keep class com.google.ads.mediation.admob.AdMobAdapter { *; }
-keep class com.google.ads.mediation.AdUrlAdapter { *; }
-keep class com.google.ads.** { *; }
-keep public @com.google.android.gms.common.util.DynamiteApi class * { *; }

-keepattributes Signature
-keepattributes *Annotation*

-keep class com.google.ads.mediation.chartboost

This is the error i'm getting in the logs

08-27 11:14:14.433 7313-7347/greengloves.com.taptapstop W/Ads: Fail to instantiate adapter com.jirbo.adcolony.AdColonyAdapter
                                                               android.os.RemoteException
                                                                   at com.google.android.gms.b.ng.d(Unknown Source)
                                                                   at com.google.android.gms.b.ng.c(Unknown Source)
                                                                   at com.google.android.gms.b.ng.a(Unknown Source)
                                                                   at com.google.android.gms.b.ni.onTransact(Unknown Source)
                                                                   at android.os.Binder.transact(Binder.java:499)
                                                                   at com.google.android.gms.ads.internal.mediation.client.d.a(:com.google.android.gms.DynamiteModulesA:94)
                                                                   at com.google.android.gms.ads.internal.reward.c.b(:com.google.android.gms.DynamiteModulesA:215)
                                                                   at com.google.android.gms.ads.internal.reward.mediation.h.a(:com.google.android.gms.DynamiteModulesA:1108)
                                                                   at com.google.android.gms.ads.internal.util.b.run(:com.google.android.gms.DynamiteModulesA:19)
                                                                   at com.google.android.gms.ads.internal.util.u.call(:com.google.android.gms.DynamiteModulesA:1055)
                                                                   at com.google.android.gms.ads.internal.util.v.run(:com.google.android.gms.DynamiteModulesA:75)
                                                                   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
                                                                   at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
                                                                   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
                                                                   at java.lang.Thread.run(Thread.java:761)

When not using proguard the adcolony adverts load fine. Unfortunately i don't want to release a build without proguard as i have some in-app purchases so I don't want this code to be easily decompiled.

Any advice? Thanks.


Vu Chau (Mobile Ads SDK Team)

unread,
Aug 29, 2016, 10:35:50 AM8/29/16
to Google Mobile Ads SDK Developers
Hi Michael,

Could you try changing the -keep class jirbo.adcolony.** {*;} line in your ProGuard to -keep class com.jirbo.adcolony.**{*;}? Just wanted to make sure the entire package name is included so it is properly kept.

Vu Chau
Mobile Ads SDK Team

Michael Scamell

unread,
Aug 29, 2016, 11:27:22 AM8/29/16
to google-adm...@googlegroups.com
That worked!

Thank you so much. I've been banging my head against a wall trying to get it sorted! It might be worth adding that somewhere so others don't get caught out like i did.

Mike

Thanks,

Mike Scamell

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/mK4wRuIw3ak/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vu Chau (Mobile Ads SDK Team)

unread,
Aug 29, 2016, 1:03:27 PM8/29/16
to Google Mobile Ads SDK Developers
Hi Mike,

Glad it worked! I'll pass your feedback on to the team to note that in our public docs.

Vu

On Monday, August 29, 2016 at 11:27:22 AM UTC-4, Michael Scamell wrote:
That worked!

Thank you so much. I've been banging my head against a wall trying to get it sorted! It might be worth adding that somewhere so others don't get caught out like i did.

Mike

Thanks,

Mike Scamell
Reply all
Reply to author
Forward
0 new messages