我想從Admob切換到亞馬遜廣告,所以我基本上已完成了所有在官方指南中描述的操作。亞馬遜移動廣告API與佈局大小問題
https://developer.amazon.com/sdk/mobileads/quick-start.html
- 與亞馬遜一個
- 包含的xmlns命名空間中的父佈局
- 集取代了AdMob的XML佈局的所有權限清單
- 清單中
- 設置應用程序的關鍵 集AdActivity
- 設置AdTargetingOptions
廣告沒有炫耀,因爲它們似乎確定了錯誤的尺寸。
這是日誌
07-29 10:03:14.948 30966-30966/de.android.contacts D/AmazonMobileAds Configuration: Setting country configuration to United States.
07-29 10:03:14.948 30966-30966/de.android.contacts D/AmazonMobileAds Configuration: Country code set to us
07-29 10:03:14.948 30966-30966/de.android.contacts D/AmazonMobileAds Configuration: Setting configuration endpoints to North America.
07-29 10:03:14.948 30966-30966/de.android.contacts D/AmazonMobileAds Configuration: Region set to na
07-29 10:03:18.623 31130-31134/com.rectangularsoftware.stackanywhere D/dalvikvm: Debugger has detached; object registry had 1 entries
07-29 10:03:18.668 30966-30966/de.android.contacts D/AmazonMobileAds AdLayout: Ad size to be determined automatically.
07-29 10:03:34.558 2236-2318/system_process D/lights: set_light_buttons off
07-29 10:03:38.668 30966-31146/de.android.contacts E/AmazonMobileAds AdLayout: Can't load an ad because the view size cannot be determined.
07-29 10:03:38.668 30966-31146/de.android.contacts D/AmazonMobileAds AdController: adFailed
07-29 10:03:38.673 30966-30966/de.android.contacts D/AmazonMobileAds AdController: Default ad listener called - Ad Failed to Load. Error code: REQUEST_ERROR, Error Message: Can't load an ad because the view size cannot be determined.
的國家代碼也是錯誤的,應該是德國在我的情況。
什麼可能導致此問題?