cordova-plugin-facebookads
cordova-plugin-facebookads copied to clipboard
Interstitial ads don't work
Hi, I've followed the example code, the banner is shown but the interstitial no. I used autoshow:true or put the code if(FacebookAds) FacebookAds.showInterstitial();
in the controller. Nothing happened.
Did you try the verification commands, to see whether my original example code working in your environment ?
ok, it doesn't work on iOS 10
I had an issue (on Android, haven't tried ios yet) where calling showInterstitial()
directly after prepareInterstitial
did not work, but calling prepareInterstitial
with autoShow: true
by itself worked just fine.
I realized after, that prepareInterstitial
has success & fail callback parameters. Have you tried putting the showInterstitial
code within the success callback to ensure that the preparation has fully completed?
Got mine working by updating Facebook SDK within cordova-facebook-audnet-sdk plugin. As stated in https://github.com/floatinghotpot/cordova-facebook-audnet-sdk Manual update within the plugin directory and platform directory