我无法让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