我無法讓Adwhirl工作。試圖在官方文檔中的一個小時後,我嘗試了簡約路線,通過XML:Android上的AdWhirl - 配給權重總和爲0 - 無廣告顯示
<com.adwhirl.AdWhirlLayout
android:id="@+id/addwhirlview"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
這段代碼是在同一個地方作爲我原來的AdMob代碼,(com.google.ads.AdView)這工作得很好。
我從logcat中使用AdWhirl如下:
I/AdWhirl SDK(18641): Creating adWhirlManager...
D/AdWhirl SDK(18641): Locale is: en_US
D/AdWhirl SDK(18641): Hashed device ID is: 7d1dd13a2fa91c0ad174cb69a11549a3
I/AdWhirl SDK(18641): Finished creating adWhirlManager
D/AdWhirl SDK(18641): Prefs{427dbf543f7849e6bd9e8c425a2a52a6}: {"config": "{"extra":{"location_on":1,"background_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"text_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"cycle_time":30,"transition":8},"rations":[]}
D/AdWhirl SDK(18641): ", "timestamp": 1343402294184}
I/AdWhirl SDK(18641): Using stored config data
D/AdWhirl SDK(18641): Received jsonString: {"extra":{"location_on":1,"background_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"text_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"cycle_time":30,"transition":8},"rations":[]}
I/AdWhirl SDK(18641): Sum of ration weights is 0 - no ads to be shown
我GOOGLE了這個問題,女巫給我帶來了這樣一個問題:Empty AdWhirl layout on android (no ads shown) ..那個傢伙basicly expieriencing和我一樣,說他想通了,但從來沒有發佈..
我在清單中獲得了我的AdWhirl鍵,我將Admob設置爲我的唯一廣告網絡,並將該應用添加到應用列表等中,因此我相當確信該側面是正確的..我做錯了什麼,「配給權重總和爲0」甚至是什麼意思?
在此先感謝! Thomas
謝謝,完美答案!現在所有工作都正常了,再次感謝! – Thomas 2012-07-28 12:08:12