ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
499 stars 214 forks source link

AdMobFreeBanner is not a constructor #428

Open JatinderSingh16 opened 3 years ago

JatinderSingh16 commented 3 years ago

Hi, My name is jatinder , I have created a app in ionic+react when i am using this plugin and pass config into AdMobFree.banner.config() its show me adMobFreeBanner is not a construction .Please help me out.

sergip76 commented 3 years ago

Use something like this: admob.banner.config({ id: 'ca-app-pub-xxxxxxx/xxxxxx', autoShow: false, isTesting: false }); admob.banner.prepare(); admob.banner.show();

You can find more information here: https://ratson.github.io/cordova-plugin-admob-free/variable/index.html#static-variable-banner

niksonleonard commented 3 years ago

Hi @JatinderSingh16 did you get a solution. I have been in through this same issue. Thanks guys!

kase-siu-dev commented 3 years ago

Hi @JatinderSingh16, @sergip76 I have the same error with Ionic Vue, Msg: TypeError: AdMobFreeBanner is not a constructor Have any solution for this issue? Thanks!