Step 8:
Open your Android project and edit the View where you want to add your ads.
For example you can add ads to your main.xml where you'll place a WebView component.
<LinearLayout android:id="@+id/adsHolder" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:layout_alignParentBottom="true" android:layout_centerInParent="true" android:paddingTop="5px"> <WebView android:id="@+id/adsDisplay" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout>
Step 9:
All you have to do now is to wire up the WebView component that you just add to your web page created in Step 4
Read full article from flyloopproject blog by Cristian Lupu: How to add Google Adsense Ads to your Android App
No comments:
Post a Comment