I found this plugin and it suited me perfectly, no extra nonsense and very good usability. I got it working and the test ads showed, however for some reason now I keep getting AdMob is not defined. It happens when I run the function showInterstitial(); which I created.
function showInterstitial() {
AdMob.prepareInterstitial({}, function () {
AdMob.showInterstitial();
});
}
I then tried,
function showInterstitial() {
window.navigator.plugins.AdMob.prepareInterstitial({}, function () {
window.navigator.plugins.AdMob.showInterstitial();
});
}
I have tried reinstalling the plugin fresh, but it still didn't work.
I found this plugin and it suited me perfectly, no extra nonsense and very good usability. I got it working and the test ads showed, however for some reason now I keep getting AdMob is not defined. It happens when I run the function
showInterstitial();
which I created.JavaScript
The Initialization
The Function
I then tried,
I have tried reinstalling the plugin fresh, but it still didn't work.
Miscellaneous
Software: Intel XDK (3641)
Cordova Version: 6.2.0