IONIC 3 - Admob Free not displaying Ads when testing is false

后端 未结 4 1551
青春惊慌失措
青春惊慌失措 2021-01-11 09:21

I have a problem with Ionic 3 when trying to display ads with Admob Free plugin. My Ads will only show in test mode (isTesting: true). If I set it to false or comment the li

相关标签:
4条回答
  • 2021-01-11 09:45

    I have faced this issue and some of the mistakes i did was:

    1) I had placed my App-Id as my Ad-Id. You will get the correct Ad-Id when you create an ad instance in Admob

    2) I had placed all my ad-configuration in the controller of my component, and what you are supposed to do is to place it in a ionViewDidLoad() method.

    0 讨论(0)
  • 2021-01-11 09:46

    Finally I solved this issue!

    Since my code seemed to be right, as the test Ads were working, I went back to my Admob account and found out that I had missing payment info.

    As soon as I added my address on the payment page, my live Ads started being served.

    I have tested my app on Android (emulator and device) and IOS (emulator only) and the Live Ads are being served with no problem on both.

    App with loaded Ads

    0 讨论(0)
  • 2021-01-11 09:55

    Finally i find the problem

    you need to build apk as release apk, not production apk read this https://ionicframework.com/docs/publishing/play-store

    i think admob not showing real ads for debuggble apks

    0 讨论(0)
  • 2021-01-11 10:02

    Bro sorry for not helping you but from 3 days a go i don't know why my ionic doesn't work after installing admob-free this is the error i got while building app :

    Dex: Error converting bytecode to dex: Cause: PARSE ERROR: class name (com/google/android/gms/base/R) does not match path (Com/google/android/gms/base/R.class) ...while parsing Com/google/android/gms/base/R.class
    
    0 讨论(0)
提交回复
热议问题