javascript - I've installed the Admob plugin into my Phonegap project... now what? -
following installation instructions on admob phonegap plugin page on github, seems it's gone without errors.
however, though functionality theoretically available, don't see how implement it. in javascript or html files place code display admob ad?
where code admob ad?
just it's clear, have added relevant java .jar
files project, i've edited .xml
files, plugin enabled. there step, place ad somewhere in web pages. google adsense ad, take snippet of javascript , place in html layout. trying figure out how connect html/javascript interface admob plugin have (successfully) installed in project.
an answer ideally code put html/javascript, , put it. had google adsense code, not allowed on mobile apps, i'm trying figure out replace with. have <div>
contained google adsense, put in it?
the plugin project linked using android admob sdk android native component , doesn't require add phonegap/cordova html/javascript code in way. happening modifying droidgap activity , adding admob adview component along side webview contains html/javascript.
the code gets linear layout webview held , adds in adview.
adview = new adview(this, adsize.banner, admob_ad_unit); linearlayout layout = super.root; layout.addview(adview);
after initializing ad.
Comments
Post a Comment