Plugin used to present ads from Widespace.
+You can install our plugin through both urls below, pick the one that suits your development environment. If you are unsure use the first one with https
.
+$ cordova plugin add https://bitbucket.org/widespacegit/cordova-plugin-widespace-sdk.git
$ cordova plugin add git@bitbucket:widespacegit/cordova-plugin-widespace-sdk
- Android
- iOS
- widespace.setWidespaceSettings
- widespace.showBannerAd
- widespace.showInterstitialAd
- widespace.closeAd
Run this before any other method, this is used to configure the Widespace plugin so that you can present ads.
window.plugins.widespace.setWidespaceSettings({
theBannerSid: widespaceSid.bannerSid,
theInterstitialSid: widespaceSid.interstitialSid,
displayBannerTop: false //Choose betweend true/false to display banner at top or bottom of the view.
});
Presents a banner in the top or bottom portion of the screen.
window.plugins.widespace.showBannerAd();
Presents an interstitial ad covering the whole screen.
window.plugins.widespace.showInterstitialAd();
Closes/dismisses all/any presented ad(s).
window.plugins.widespace.closeAd();