I am adding Google Play Servcies (admob) ads through mopub using the link
我正在使用该链接通过mopub添加Google Play Servcies(admob)广告
https://github.com/mopub/mopub-android-sdk/wiki/Integrating-with-Google-Play-Services
I followed all the steps but when I run the code it shows me error Couldn't locate or instantiate custom event: com.mopub.mobileads.GoogleAdMobBanner
我按照所有步骤操作,但是当我运行代码时,它显示错误无法找到或实例化自定义事件:com.mopub.mobileads.GoogleAdMobBanner
After reading the topic http://help.mopub.com/customer/portal/articles/785346-issues-with-admob-proguard I added the below lines in proguard-project.txt file of my project and sdk project proguard.cfg file but issue is still not solve. Please help.
在阅读了主题http://help.mopub.com/customer/portal/articles/785346-issues-with-admob-proguard后,我在项目的proguard-project.txt文件和sdk项目proguard.cfg中添加了以下行。文件,但问题仍然没有解决。请帮忙。
-keep class com.google.android.gms.common.GooglePlayServicesUtil {*;}
# AdMob Support
-keep class com.google.ads.**
-keepclassmembers class com.mopub.mobileads.* { public *; }
-keep public class com.mopub.mobileads.*
1 个解决方案
#1
1
You were looking at the outdated instructions. Please follow this guide: https://dev.twitter.com/mopub/android/google-play-services
您正在查看过时的说明。请遵循以下指南:https://dev.twitter.com/mopub/android/google-play-services
#1
1
You were looking at the outdated instructions. Please follow this guide: https://dev.twitter.com/mopub/android/google-play-services
您正在查看过时的说明。请遵循以下指南:https://dev.twitter.com/mopub/android/google-play-services