javascript - Cordova AdMobPro - Not working -
i have installed necessary files on android sdk. i'm using code tutorial:
var admobid = {}; if( /(android)/i.test(navigator.useragent) ) { // android & amazon-fireos admobid = { //banner: 'ca-app-pub-xxx/xxx', // or dfp format "/6253334/dfp_example_ad" interstitial: 'ca-app-pub-9609087637503923/1710134090' }; } else if(/(ipod|iphone|ipad)/i.test(navigator.useragent)) { // ios admobid = { banner: 'ca-app-pub-xxx/zzz', // or dfp format "/6253334/dfp_example_ad" interstitial: 'ca-app-pub-xxx/kkk' }; } else { // windows phone admobid = { banner: 'ca-app-pub-xxx/zzz', // or dfp format "/6253334/dfp_example_ad" interstitial: 'ca-app-pub-xxx/kkk' }; } if(admob) { admob.prepareinterstitial( {adid:admobid.interstitial, autoshow:false} ); }
program doesn't work. when tried using windows platform rather android says admob not defined. program works when add
var admob;
(but of course admob doesn't work, rest of program)
cordova version 6.0.0
cordova-plugin-admobpro 2.11.1 "admob plugin pro"
update got program run on android studio , program runs ok, still no admob. "error" able out this:
02-09 00:20:24.225 1193-1237/com.yourname.hello w/pluginmanager: thread warning: exec() call admob.prepareinterstitial blocked main thread 57ms. plugin should use cordovainterface.getthreadpool().
along this:
02-09 00:30:42.381 1193-1233/com.yourname.hello e/eglcodeccommon: glutilsparamsize: unknow param 0x00000b44
02-09 00:30:42.394 1193-1233/com.yourname.hello e/eglcodeccommon: glutilsparamsize: unknow param 0x00000bd0
02-09 00:30:42.431 1193-1233/com.yourname.hello e/eglcodeccommon: **** error unknown type 0x0 (glsizeof,72)
please help, i'm trying ):
try add cordova admobpro plugins js file.
copy js file plugin folder , put js folder.
<script type="text/javascript" src="cordova.js"> </script> <script type="text/javascript" src="js/index.js"> </script> <script type="text/javascript" src="js/admob.js"> </script>
hope !!
Comments
Post a Comment