cordova 애드몹 구현

https://www.npmjs.com/package/cordova.plugin.admobpro

 

cordova.plugin.admobpro

Google AdMob plugin for Cordova, Phonegap and Intel XDK ,support ios and android,support admob v1 and admob v2 ,Monetize your app with one javascript line.simple and easy to use api.build on admob ios 7.6 and admob android sdk 8 project home:https

www.npmjs.com

install 
cordova plugin add com.admob.plugin

 

 

애드몹 테스트ID
https://unitytip.tistory.com/33

 

 

function onDeviceReady() {
	// 배너ID, 전면ID
		admob.initAdmob("배너ID","전면ID");//admob id format ca-app-pub-xxxxxxxxxxxxxxxxxxx/xxxxxxxxxx
	    // 하단 배너
		admob.showBanner(admob.BannerSize.BANNER,admob.Position.BOTTOM_APP);
		document.addEventListener(admob.Event.onInterstitialReceive, onInterstitialReceive, false);//show in ad receive event fun need add receive listener
 		admob.cacheInterstitial();
		
}

function onInterstitialReceive(message) {
	admob.showInterstitial();
}

댓글

Designed by JB FACTORY