android - Adwhirl ads not showing -


i have android app, , i'm using adwhirl admob , zestadz, , i've set house ad.

for reason ads not showing, in spite of log looking normal. can see zest ads not shown , should default house ads create.

thanks in advance!

here part of xml:

linearlayout android:id="@+id/layouttopads" android:orientation="horizontal" android:layout_height="0dp" android:layout_width="fill_parent" android:gravity="center_horizontal" android:background="@color/graphite" android:layout_weight="0.5" 

here code:

    linearlayout adlayout = (linearlayout)findviewbyid(r.id.layouttopads);     adwhirllayout adwhirllayout = new adwhirllayout(this, learninglangconsts.adwhirl_sdk_key[myui.learnlang]);      int diwidth = adlayout.getwidth();     int diheight = adlayout.getheight();     float density = getresources().getdisplaymetrics().density;      adwhirllayout.setadwhirlinterface(new adwhirllayout.adwhirlinterface()     {         @override         public void adwhirlgeneric()         {}     });      adwhirllayout.setmaxwidth((int)(diwidth * density));     adwhirllayout.setmaxheight((int)(diheight * density));     adlayout.addview(adwhirllayout);   

here log:

      07-02 16:36:56.791: info/adwhirl sdk(3581): creating adwhirlmanager...       07-02 16:36:56.851: debug/adwhirl sdk(3581): locale is: en_us       07-02 16:36:57.354: debug/adwhirl sdk(3581): hashed device id is: 7d1dd13a2fa91c0ad174cb69a11549a3       07-02 16:36:57.360: info/adwhirl sdk(3581): finished creating adwhirlmanager       07-02 16:36:58.140: debug/adwhirl sdk(3581): prefs{73dd1111860847ecb1257a0e0942ec37}: {"config": "{"extra":{"location_on":1,"background_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"text_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"cycle_time":15,"transition":8},"rations":[{"nid":"7f5ef65976504f21b9635ab0ec19a019","type":1,"nname":"admob","weight":33,"priority":3,"key":"a14123cc7d16913"},{"nid":"49ac21c2a998e168ae8974078a302c0b","type":20,"nname":"zestadz","weight":33,"priority":1,"key":"14131c047a5040548959435145554b5f8d8a29ca"},{"nid":"e7eff2754b0b4bde81114881e88dd8f1","type":9,"nname":"custom","weight":34,"priority":2,"key":"__custom__"},{"nid":"8c1200a3a29d41c0b9fd16096368d6dc","type":9,"nname":"custom","weight":0,"priority":2,"key":"__custom__"}]}       07-02 16:36:58.140: debug/adwhirl sdk(3581): ", "timestamp": 1309645632265}       07-02 16:36:58.150: info/adwhirl sdk(3581): using stored config data       07-02 16:36:58.181: debug/adwhirl sdk(3581): received jsonstring: {"extra":{"location_on":1,"background_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"text_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"cycle_time":15,"transition":8},"rations":[{"nid":"7f5ef65926c44f21b9635ab0e122a019","type":1,"nname":"admob","weight":33,"priority":3,"key":"a14e0dcc7d16913"},{"nid":"49ac243ae94c4f68ae8974078a302c0b","type":20,"nname":"zestadz","weight":33,"priority":1,"key":"14131c047a504052787735145554b5f8d8a29ca"},{"nid":"e7eff27c4b0b4bd3222db881e88dd8f1","type":9,"nname":"custom","weight":34,"priority":2,"key":"__custom__"},{"nid":"8c1200a3a29d41c0b9fd16834423d6dc","type":9,"nname":"custom","weight":0,"priority":2,"key":"__custom__"}]}       07-02 16:36:59.953: info/adwhirl sdk(3581): rotating ad       07-02 16:37:00.080: debug/adwhirl sdk(3581): dart <8.98131054165815> of <100.0>       07-02 16:37:01.890: debug/adwhirl sdk(3581): showing ad:       07-02 16:37:01.890: debug/adwhirl sdk(3581):     nid: 49ac21c2a94c4f68154434078a302c0b       07-02 16:37:01.890: debug/adwhirl sdk(3581):     name: zestadz       07-02 16:37:01.890: debug/adwhirl sdk(3581):     type: 20       07-02 16:37:01.890: debug/adwhirl sdk(3581):     key: 14349877a5040434e59435145554b5f8d8a29ca       07-02 16:37:01.890: debug/adwhirl sdk(3581):     key2:        07-02 16:37:01.943: debug/adwhirl sdk(3581): valid adapter, calling handle()       07-02 16:37:01.970: info/zestadz sdk(3581): adclient id set 14131c047a5040434e59435145554b5f8d8a29ca       07-02 16:37:04.730: verbose/formed url(3581): http://a.zestadz.com/waphandler/deliverad?ua=mozilla%2f5.0+%28linux%3b+u%3b+android+2.1-update1%3b+en-us%3b+sdk+build%2feclair%29+applewebkit%2f530.17+%28khtml%2c+like+gecko%29+version%2f4.0+mobile+safari%2f530.17&ip=&cid=14131c047a504342216435145554b5f8d8a29ca&meta=game&keyword=all       07-02 16:37:09.921: debug/ad response(3581): http/1.1 200 ok       07-02 16:37:10.040: debug/adwhirl sdk(3581): zestadz failure       07-02 16:37:10.351: debug/adwhirl sdk(3581): showing ad:       07-02 16:37:10.351: debug/adwhirl sdk(3581):     nid: 49ac21c2a94c4f68ae835645987302c0b       07-02 16:37:10.351: debug/adwhirl sdk(3581):     name: zestadz       07-02 16:37:10.351: debug/adwhirl sdk(3581):     type: 20       07-02 16:37:10.351: debug/adwhirl sdk(3581):     key: 14131234487040434e59435145554b5f8d8a29ca       07-02 16:37:10.351: debug/adwhirl sdk(3581):     key2:        07-02 16:37:10.372: debug/adwhirl sdk(3581): valid adapter, calling handle()       07-02 16:37:10.400: info/zestadz sdk(3581): adclient id set 14131c047a5040434e59435640954b5f8d8a29ca       07-02 16:37:11.432: verbose/formed url(3581): http://a.zestadz.com/waphandler/deliverad?ua=mozilla%2f5.0+%28linux%3b+u%3b+android+2.1-update1%3b+en-us%3b+sdk+build%2feclair%29+applewebkit%2f530.17+%28khtml%2c+like+gecko%29+version%2f4.0+mobile+safari%2f530.17&ip=&cid=14131c047a501233329435145554b5f8d8a29ca&meta=game&keyword=all       07-02 16:37:13.060: debug/ad response(3581): http/1.1 200 ok       07-02 16:37:13.190: debug/adwhirl sdk(3581): zestadz failure       07-02 16:37:13.530: debug/adwhirl sdk(3581): showing ad:       07-02 16:37:13.530: debug/adwhirl sdk(3581):     nid: e7eff27c4b0b4bd455223381e88dd8f1       07-02 16:37:13.530: debug/adwhirl sdk(3581):     name: custom       07-02 16:37:13.530: debug/adwhirl sdk(3581):     type: 9       07-02 16:37:13.530: debug/adwhirl sdk(3581):     key: __custom__       07-02 16:37:13.530: debug/adwhirl sdk(3581):     key2:        07-02 16:37:13.550: debug/adwhirl sdk(3581): valid adapter, calling handle()       07-02 16:37:13.670: debug/locationmanager(3581): constructor: service = android.location.ilocationmanager$stub$proxy@43baf168 

it looks set linearlayout height 0dp: android:layout_height="0dp" cause view not show. try changing wrap_content instead. if doesn't work there easier way create adwhirl layout:

i'm assuming have version 3.0 of adwhirl sdk. instead of creating layout through code can create through normal xml layout file. don't use linearlayout instructions suggest (i think it's outdated). instead place element in layout wherever want banner be:

    <com.adwhirl.adwhirllayout          android:layout_width="fill_parent"          android:layout_height="wrap_content" /> 

seriously, that's it. sure adwhirl key in manifest (either within <activity> or <application> tag):

    <meta-data android:value="your key"          android:name="adwhirl_key"/> 

if need programmatically can give layout id usual , use findviewbyid. lemme know if helps.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -