2014-04-04 77 views
0

我在我的應用中使用插頁式廣告。我在使用以下代碼的同時獲得測試廣告:插頁式廣告在實際測試中無法加載

AdRequest adRequest = new AdRequest.Builder() 
      .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) 
      .addTestDevice("CCC40F2DAEXXXXXXXXXX5DCB16FDDE10").build(); 

我在使用以下代碼請求廣告時沒有收到任何廣告。

AdRequest adRequest = new AdRequest.Builder().build(); 

這是我得到的錯誤。

04-04 20:56:48.620: W/ResourceType(27563): Requesting resource 0x7f0b000e failed because it is complex 
04-04 20:56:48.620: E/GooglePlayServicesUtil(27563): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. 
04-04 20:56:48.625: W/ResourceType(27563): Requesting resource 0x7f0b000e failed because it is complex 
04-04 20:56:48.625: E/GooglePlayServicesUtil(27563): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. 
04-04 20:56:48.880: I/Ads(27563): No fill from ad server. 
04-04 20:56:48.880: W/Ads(27563): Failed to load ad: 3 
04-04 20:56:48.880: E/SQLiteLog(27563): (14) cannot open file at line 30241 of [00bb9c9ce4] 
04-04 20:56:48.880: E/SQLiteLog(27563): (14) os_unix.c:30241: (2) open(/NotificationPermissions.db) - 
+0

它似乎應用程序試圖加載一個添加,但失敗 –

回答

1

並不總是有可用的廣告。這就是爲什麼使用中介來確保您始終擁有廣告是一個好主意。

04-04 20:56:48.880: I/Ads(27563): No fill from ad server. 

此日誌行告訴您沒有廣告可用。

+0

你是什麼意思調解? – EM10

+0

調解員可讓您投放來自多個廣告聯盟的廣告。請參閱https://support.google.com/admob/answer/2413211 – William