Follow link with full integration example:
https://blog.nraboy.com/2014/06/using-admob-ionicframework/
Example of integration:
var admobApp = angular.module('myapp', ['ionic'])
.run(function($ionicPlatform, $ionicPopup) {
$ionicPlatform.ready(function() {
if(window.plugins && window.plugins.AdMob) {
var admob_key = device.platform == "Android" ? "ANDROID_PUBLISHER_KEY" : "IOS_PUBLISHER_KEY";
var admob = window.plugins.AdMob;
admob.createBannerView(
{
'publisherId': admob_key,
'adSize': admob.AD_SIZE.BANNER,
'bannerAtTop': false
},
function() {
admob.requestAd(
{ 'isTesting': false },
function() {
admob.showAd(true);
},
function() { console.log('failed to request ad'); }
);
},
function() { console.log('failed to create banner view'); }
);
}
});
});
https://blog.nraboy.com/2014/06/using-admob-ionicframework/ who knows can help a little
– Otto
@Otto worked like a charm. A doubt I have with respect to the banners, to better monetize I’ve heard that at each screen of the application I have to force the exchange of banner, so the $$ is better. This is true ? if it is how do I change the banners to each screen ? thank you
– FernandoPaiva
Fernando, post here after your feedback on this, I’m interested in this.
– Vinicius Dutra
@Fernandopaiva speaks master added as an answer to help the crowd.
– Otto