Empty AdWhirl layout on android (no ads shown) -


i have strange problem integrating adwhirl android app.

networks connected through adwhirl:
* mileniall media
* admob
* inmobi (it gives invalid adapter error thats known issue , not main problem)

i've downoaded , included adwhirl sdk 3.0.0, jars respective network , did steps included in manual (changes in manifest file, lib including etc)

and i've put adwhirl code app.

layout placeholder adwhirllayout.

<linearlayout         android:id="@+id/ads"         android:layout_width="fill_parent"         android:layout_height="52dip"         android:layout_weight="0"         android:background="#0f0"/> 

code ads layout:

adlayout = (linearlayout) findviewbyid(r.id.ads); adwhirllayout adwhirllayout = new adwhirllayout(this, "ad whirl code"); relativelayout.layoutparams adwhirllayoutparams = new relativelayout.layoutparams(uiutils.dip(320), uiutils.dip(52)); adwhirllayout.setbackgroundcolor(color.dkgray); adlayout.addview(adwhirllayout, adwhirllayoutparams); adlayout.invalidate(); 

i can see both of layouts shown (due color have).

i know networks connected correctly because can see in logcat

05-11 15:11:52.279: debug/adwhirl sdk(8013): showing ad: 05-11 15:11:52.279: debug/adwhirl sdk(8013):     nid: d10c4fe5e08f469ca1992bfe277902f5 05-11 15:11:52.279: debug/adwhirl sdk(8013):     name: millennial 05-11 15:11:52.279: debug/adwhirl sdk(8013):     type: 6 05-11 15:11:52.279: debug/adwhirl sdk(8013):     key: xxxxx 05-11 15:11:52.279: debug/adwhirl sdk(8013):     key2:  05-11 15:11:52.279: debug/adwhirl sdk(8013): valid adapter, calling handle() 

and on network sites - see ad request there.

but layout stays gray, no matter what. i'm puzzled.

the documentation adwhirl pretty horrible. try simpler way inflate adwhirl layout:

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# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -