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

Cannot read property #9

Closed leonardop21 closed 4 years ago

leonardop21 commented 4 years ago

After installing the plugin and building the application, I get the error below in the console. Regardless of the ad I have to show

Uncaught TypeError: Cannot read property 'codeplayfacebookads' of undefined

Captura de Tela 2019-12-10 às 15 23 27

I tried to apply to app.js and index.html

var options={ bannerid:"523519301434xxx_xxxxxxxxxxxxxxx" ,isTesting:true };

cordova.plugins.codeplayfacebookads.showBannerAds(options,success,fail);

function success(result) { console.log(result); } function fail(result) { console.log(result); }

merbin2012 commented 4 years ago

Plugin doesn't properly installed. Plz check it.