我非常失望! 我正在嘗試在我的應用程序中實施Admob廣告......但這是一個史詩般的失敗......我浪費更多時間來實施AdMob,而不是編碼我的應用程序......我真的需要您的幫助。Admob廣告無法加載
我給你所有的信息:
我的AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="package.test.sound"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:icon="@drawable/gg"
android:label="@string/app_name" >
<activity
android:name=".startActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".test1"
android:label="@string/app_name" >
</activity>
<activity
android:name=".test2"
android:label="@string/app_name" >
</activity>
<activity
android:name=".test3"
android:label="@string/app_name">
</activity>
<meta-data android:value="xxxx MY ID xxxx" android:name="ADMOB_PUBLISHER_ID" />
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"></activity>
<uses-sdk android:minSdkVersion="10"/>
</application>
</manifest>
現在我的main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/sc2"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="test1"
android:textColor="#005113" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="test2"
android:textColor="#970000" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="test3"
android:textColor="#001760" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="bottom" >
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
ads:adSize="BANNER"
ads:adUnitId="xxxx MY ID xxxx"
ads:loadAdOnCreate="true" >
</com.google.ads.AdView>
</LinearLayout>
</LinearLayout>
我不知道該怎麼辦...
我使用Admob SDK 4.3.1,我的項目屬性在Android 4.0.3上! 我的項目目標設置爲:target = android-15。
還有一件事......當我在我的HTC EVO 3D安裝APK我的應用程序是不是在全屏幕,這是我的屏幕上一點,我不知道爲什麼太...
但我的第一個大的大問題是,廣告不會被顯示出來......
當我在模仿我的日食與AVD模擬器應用程序,我有LogCats調試屏幕:http://s4.noelshack.com/old/up/help-c2e97f1a28.jpg
謝謝您的幫助!
http://stackoverflow.com/questions/9077400/admob-ads-is-not-showing-up-admob-4-3-1 – Selvin 2012-01-31 15:54:52
答案不適用於我。請幫助我,而不是:) – dealswiss 2012-01-31 16:01:08