[英]Admob Ads impossible to load
我非常絕望! 我正在嘗試在我的應用程序中實施Admob Ads ...但這是一個史詩般的失敗...我在實施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時,該應用程序不在“全屏”中,在我的屏幕上幾乎沒有,我也不知道為什么...
但是我的第一個大問題是廣告沒有顯示出來...
當我在eclipse上使用AVD模擬器模擬我的應用程序時,我在LogCats調試中有此屏幕: http ://s4.noelshack.com/old/up/help-c2e97f1a28.jpg
謝謝您的幫助 !!!
看來您無法與admob服務器連接。
您可以通過嘗試從android中的終端仿真器ping admob(根據您的屏幕截圖,media.admob.com)進行驗證。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.