ProGuard and Mediation

768 views
Skip to first unread message

Sebastian L (Berlin)

unread,
May 17, 2012, 5:02:09 PM5/17/12
to google-adm...@googlegroups.com
Hey,

did anybody get Admob Mediation and ProGuard running?

I use Adfonic and MobFox and already added the folowing to my proguard.cfg, but still get the (still discussed here) "Unexpected Server Option"-Error in the Log and no ads showing.

Best
Sebastian

-keep class com.google.ads.** {*;}
-keep class com.google.ads.internal.** {*;}
-keep class com.google.ads.mediation.** {*;}
-keep class com.google.ads.mediation.adfonic.** {*;}
-keep class com.google.ads.mediation.admob.** {*;}
-keep class com.google.ads.mediation.adfonic.util.** {*;}
-keep class com.google.ads.mediation.customevent.** {*;}
-keep class com.google.ads.searchads.** {*;}
-keep class com.google.ads.util.** {*;}

-keep class com.adfonic.android.** {*;}
-keep class com.adfonic.android.api.** {*;}
-keep class com.adfonic.android.ormma.** {*;}
-keep class com.adfonic.android.utils.** {*;}
-keep class com.adfonic.android.view.** {*;}
-keep class com.google.ads.internal.** {*;}
-keep class com.mobfox.** {*;}
-keep class com.mobfox.adapter.** {*;}
-keep class com.mobfox.sdk.** {*;}
-keep class com.mobfox.sdk.data.** {*;}
-keep class com.mobfox.video.** {*;}

Jasper Aarts

unread,
May 22, 2012, 11:23:46 AM5/22/12
to google-adm...@googlegroups.com
It seems the mediation depends on some Annotations.
Adding the following proguard parameter worked for me:
-keepattributes *Annotation*

Jasper

Sebastian L (Berlin)

unread,
May 25, 2012, 8:41:01 AM5/25/12
to google-adm...@googlegroups.com
Thanks a lot, it worked in the first trial.

Best
Sebastian
Reply all
Reply to author
Forward
0 new messages