merbin2012 / cordova-plugin-codeplay-facebookads-free

Free facebook audience network ads for cordova user. This supports banner ads, Interstitial ads and video ads.
23 stars 9 forks source link

error: package admob.plus.cordova does not exist #29

Closed diaxotora closed 2 years ago

diaxotora commented 2 years ago

Hi, When I run the project I have this error: error: package admob.plus.cordova does not exist import admob.plus.cordova.Generated; ^ 1 error And when I comment out the line: import admob.plus.cordova.Generated; in: codeplayfacebookads.java I don't have any more runtime error but the mediation doesn't work, do I have to install admob-plus-cordova because when I install it I have another error Thanks for your help

diaxotora commented 2 years ago

ps: i use mediation with google admob

merbin2012 commented 2 years ago

If you want to use AdMob mediation, no need to use this plugin, you can use an AdMob plugin like (https://admob-plus.github.io/docs) and just import the following line into your grade file, then while you call AdMob banner, it will automatically trigger Facebook ads too, but you must configure properly. implementation 'com.google.ads.mediation:facebook:6.7.0.0'

After that, you can test the Facebook and Admob ads by the following method https://developers.google.com/admob/android/mediation-test-suite

Carlosps commented 2 years ago

Hi @merbin2012

Have you achieved this Admob mediation following the steps you mentioned? Did it work on Android and iOS? I also use the AdMob plus you mentioned.

merbin2012 commented 2 years ago

Yes, sure. If you want to test the implementation just following the below link steps https://developers.google.com/admob/android/mediation-test-suite

Carlosps commented 2 years ago

Great to know that, thank you.

I will do the steps you listed.

I will also mention that in this discussion about Mediation Support. I believe some people also do not know about that.

Thank you again.

merbin2012 commented 2 years ago

Yeah, sure.