如何在 android 程序中加入 admob 广告赚钱
2010-03-01 05:14:00 来源:WEB开发网核心提示:<com.admob.android.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="wrap_content"
<com.admob.android.ads.AdView
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
admobsdk:backgroundColor="#000000"
admobsdk:textColor="#FFFFFF"
admobsdk:keywords="Android application"
/>
</LinearLayout>
android:id="@+id/ad"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
admobsdk:backgroundColor="#000000"
admobsdk:textColor="#FFFFFF"
admobsdk:keywords="Android application"
/>
</LinearLayout>
这里好像也没什么需要特别注意的,注意加上xmlns,另外知道这里可以设置一个keywords。
Test Mode
When you start integrating AdMob ads into your application
it is recommended to use test mode. This always returns the same ad. Normal ad
requests are not deterministic making it harder to be sure the ad view looks
like you want (e.g. ad requests can timeout or may not fill).
Once the ad shows up as you expect be sure to turn test mode off to get real ads. Never put your application into the Android Market with test mode enabled.
更多精彩
赞助商链接