AdMob的广告没有用亲卫队显示卫队、广告、AdMob

2023-09-09 22:02:02 作者:小心翼翼的心动

我公司开发的Andr​​oid应用程序,我使用AdMob的SDK 6.2.1用于显示广告,当我测试了我的实际设备和模拟器上的应用程序,广告显示。 但是当我申请亲卫队到我的应用程序,我的设备上测试它(我测试的另一个设备也)广告没有体现出来,任何帮助,请!

I developed android app and I used admob sdk 6.2.1 for showing ads, and when I tested the app on my real device and on the emulator,ads are shown. but when I apply pro guard to my app and test it on my device(I tested it on another devices also) ads are not shown up, any help please!

推荐答案

添加到您的ProGuard:

Add this to your proguard:

-keep class com.google.ads.** # Don't proguard AdMob classes
-dontwarn com.google.ads.** # Temporary workaround for v6.2.1. It gives a warning that you can ignore