admob-plus / admob-plus

Trustable AdMob Plugin for Cordova, Capacitor, Ionic, React Native
https://admob-plus.github.io
MIT License
360 stars 150 forks source link

AD does not load. Did I forget something? #627

Open andhyjr opened 6 months ago

andhyjr commented 6 months ago

Hi, i need a help ;)

I use Ionic + Capacitor (Angular), but my ad does not load, this is the error in LogCat.

File: https://localhost/main.897408fd00a9652f.js - Line 1 - Msg: ERROR Error: Uncaught (in promise): Error: "AdMobPlus" plugin is not implemented on android
                                                                                                    Error: "AdMobPlus" plugin is not implemented on android
                                                                                                        at https://localhost/2726.c515ed207e9e90ca.js:1:1925
                                                                                                        at https://localhost/2726.c515ed207e9e90ca.js:1:2216
                                                                                                        at v.invoke (https://localhost/polyfills.441dd4ca9dc0674f.js:1:6632)
                                                                                                        at Object.onInvoke (https://localhost/main.897408fd00a9652f.js:1:210110)
                                                                                                        at v.invoke (https://localhost/polyfills.441dd4ca9dc0674f.js:1:6572)
                                                                                                        at h.run (https://localhost/polyfills.441dd4ca9dc0674f.js:1:1998)
                                                                                                        at https://localhost/polyfills.441dd4ca9dc0674f.js:1:16842
                                                                                                        at v.invokeTask (https://localhost/polyfills.441dd4ca9dc0674f.js:1:7250)
                                                                                                        at Object.onInvokeTask (https://localhost/main.897408fd00a9652f.js:1:209926)
                                                                                                        at v.invokeTask (https://localhost/polyfills.441dd4ca9dc0674f.js:1:7171)

npx admob-plus doctor ✔ googleads.g.doubleclick.net ✔ package.json ↓ Cordova Android dependencies ↓ config.xml ↓ platforms/ios/*.xcodeproj ↓ plugins/admob-plus-cordova/package.json

Is there any tutorial to fix this "Cordova Android dependencies", "config.xml" and "plugins/admob-plus-coprdova/package.json"?

I'm using DFP ads from Ad Manager (AdExchange), would this be a problem? Ex: adUnitId: '/21812513503/CoupleChemistry_Banner',

brandomcombr commented 1 month ago

I'm the same problem...

@andhyjr if you resolve this problem, say me which solution worked for you, please....

andhyjr commented 1 week ago

I'm sorry for the delay, I only saw your message now.

I managed to solve it this way:

npm install @admob-plus/capacitor@1.24.0 --legacy-peer-deps