I want to place android ads within a listview, I read an article about doing it with admob
I instead opted to try and do it with Flurry's appcircle, with no luck.
I am still comparing ad networks but this is a feature I want to discuss, as subjective comparisons between ad networks won't be allowed here.
What ad SDKs will allow me to do this? does anyone have resources about custom placement of ads
Just try to place ads with the ListView
in your layout like below:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="AD_UNIT_ID" ads:adSize="BANNER" ads:loadAdOnCreate="true"/> <ListView android:id="@id/android:list" android:layout_width="fill_parent" android:layout_height="fill_parent"/> <TextView android:id="@+id/android:empty" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/no_hosts"/> </LinearLayout>
Checkout this Example, it will help you.