无法让Adwhirl显示广告 - 配给权重之和为0

时间:2011-03-16 01:57:17

标签: android admob adwhirl

我正在尝试将adwhirl集成到我的应用中并且一直处于非常困难的时期。现在我只是使用admob(我可以在没有adwhirl的情况下工作)。我在this guide之后实现了代码。我最初也试过使用千禧媒体,但也有同样的错误。下面是我的logcat。我该如何解决这个问题?

    E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240033837}
I/AdWhirl SDK(  345): Stored config info not present or expired, fetching fresh
data
D/dalvikvm(  345): GC_CONCURRENT freed 568K, 55% free 2799K/6151K, external 716K
/1038K, paused 5ms+4ms
D/AdWhirl SDK(  345): HTTP/1.1 200 OK
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240334473}
I/AdWhirl SDK(  345): Using stored config data
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240334473}
I/AdWhirl SDK(  345): Using stored config data
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240334473}
I/AdWhirl SDK(  345): Using stored config data
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240334473}
I/AdWhirl SDK(  345): Using stored config data
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/dalvikvm(  345): GC_CONCURRENT freed 391K, 55% free 2808K/6151K, external 716K
/1038K, paused 4ms+4ms
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240334473}
I/AdWhirl SDK(  345): Using stored config data
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240334473}
I/AdWhirl SDK(  345): Using stored config data
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown
D/AdWhirl SDK(  345): Prefs{null}: {"config": "[]
D/AdWhirl SDK(  345): ", "timestamp": 1300240334473}
I/AdWhirl SDK(  345): Using stored config data
D/AdWhirl SDK(  345): Received jsonString: []
E/AdWhirl SDK(  345): Unable to parse response from JSON. This may or may not be
 fatal.
E/AdWhirl SDK(  345): org.json.JSONException: Value [] of type org.json.JSONArra
y cannot be converted to JSONObject
E/AdWhirl SDK(  345):   at org.json.JSON.typeMismatch(JSON.java:107)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:158)
E/AdWhirl SDK(  345):   at org.json.JSONObject.<init>(JSONObject.java:171)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.parseConfigurationString(A
dWhirlManager.java:288)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager
.java:255)
E/AdWhirl SDK(  345):   at com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLay
out.java:367)
E/AdWhirl SDK(  345):   at java.util.concurrent.Executors$RunnableAdapter.call(E
xecutors.java:444)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask$Sync.innerRun(FutureT
ask.java:306)
E/AdWhirl SDK(  345):   at java.util.concurrent.FutureTask.run(FutureTask.java:1
38)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
E/AdWhirl SDK(  345):   at java.util.concurrent.ScheduledThreadPoolExecutor$Sche
duledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor.runWorker(Thr
eadPoolExecutor.java:1088)
E/AdWhirl SDK(  345):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Th
readPoolExecutor.java:581)
E/AdWhirl SDK(  345):   at java.lang.Thread.run(Thread.java:1019)
I/AdWhirl SDK(  345): Sum of ration weights is 0 - no ads to be shown

2 个答案:

答案 0 :(得分:0)

我没有配置广告网络时遇到同样的问题。添加自家广告为我修复了它。您是否确认AdWhirl服务器控制面板中的AdMob已开启?

答案 1 :(得分:-1)

对于Android APplication,请尝试卸载它,然后重新上传到您的手机中。 它可以帮助。