Reputation: 1783
I have an application under meteor 1.4 and im trying to add interstitials add from admob platform. I tried with this plugin which seemed documented for meteor : https://github.com/floatinghotpot/cordova-admob-pro/wiki/06.-How-To-Use-with-Meteor so i used this plugin :
meteor add cordova:[email protected]
i added this in my mobile-config.js :
App.accessRule("*");
i added this in my home.js (client side) :
Meteor.startup(function () {
if (Meteor.isCordova) {
if (AdMob) {
AdMob.prepareInterstitial( {
adId: 'ca-app-pub-xxxxxxxxxxxxx~xxxxxxxxxxx',
autoShow: false,
success: function() {
console.log("Received ad");
},
error: function() {
console.log("No ad received");
}
});
} else {
console.log("No Admob");
}
} else {
console.log("No Cordova ");
}
});
but now when i try to use AdMob.showInterstitial() in the console i get an "undefined" response...
is there something im missing ? anyone had more luck using admob with meteor i would really appreciate a help i'm stuck there since hours...
thanks
Upvotes: 0
Views: 83
Reputation: 2761
Maybe you can try with other plugins, the installation should be similar. I would try with https://github.com/appfeel/admob-google-cordova
meteor add cordova:[email protected]
Interstitials is very well documented and there is a full example at https://github.com/appfeel/admob-google-cordova/wiki/showInterstitialAd
Upvotes: 0