I assume you have solved this somehow since the topic is so old, but I answer anyway if someone else is pondering the same thing. I also use surfaceview in my game and show an ad banner in the bottom of the view. Just define the layout for your game and include your custom view (which draws to the surfaceview) and the adview in the layout. I use RelativeLayout but LinearLayout should work just fine also. So, define something like this:
1 2 3 4 5 6 7 8 9 10 11
| <.YourCustomGameView android:id="@+id/gameView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="50dp" />
<com.google.ads.AdView android:id="@+id/ad_view" android:layout_height="50dp" android:layout_width="320dp" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" /> |