Paolo Vernazza
01-15 17:06:48.905: D/AdWhirl SDK(24858): Prefs{null}: {"config": "[]
01-15 17:06:48.905: D/AdWhirl SDK(24858): ", "timestamp": 1326643033706}
01-15 17:06:48.905: I/AdWhirl SDK(24858): Using stored config data
01-15 17:06:48.905: D/AdWhirl SDK(24858): Received jsonString: []
01-15 17:06:48.910: E/AdWhirl SDK(24858): Unable to parse response from
JSON. This may or may not be fatal.
01-15 17:06:48.910: E/AdWhirl SDK(24858): org.json.JSONException: Value
[] of type org.json.JSONArray cannot be converted to JSONObject
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
org.json.JSON.typeMismatch(JSON.java:107)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
org.json.JSONObject.<init>(JSONObject.java:158)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
org.json.JSONObject.<init>(JSONObject.java:171)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
com.adwhirl.AdWhirlManager.parseConfigurationString(AdWhirlManager.java:290)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
com.adwhirl.AdWhirlManager.fetchConfig(AdWhirlManager.java:257)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
com.adwhirl.AdWhirlLayout$InitRunnable.run(AdWhirlLayout.java:376)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:444)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.util.concurrent.FutureTask.run(FutureTask.java:138)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:153)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
01-15 17:06:48.910: E/AdWhirl SDK(24858): at
java.lang.Thread.run(Thread.java:1019)
01-15 17:06:48.910: I/AdWhirl SDK(24858): Sum of ration weights is 0 -
no ads to be shown
It looks like you're having trouble grabbing the config. What do you get when you ping http://mob.adwhirl.com/getInfo.php?appver=311&appid=YOUR_SDK_KEY when you replace YOUR_SDK_KEY with your actual SDK key?
Eric
{"extra":{"location_on":1,"background_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"text_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"cycle_time":30,"transition":8},"rations":[{"nid":"7d7e296820644492928c3fa59f10fd6c","type":1,"nname":"admob","weight":100,"priority":1,"key":"a14da6f2c12849d"}]} |
Well... I think I'll insert the apikey in every activity ;)
Paolo
{"extra":{"location_on":1,"background_color_rgb":{"red":255,"green":255,"blue":255,"alpha":1},"text_color_rgb":{"red":0,"green":0,"blue":0,"alpha":1},"cycle_time":30,"transition":8},"rations":[{"nid":"7d7e296820644492928c3fa59f10fd6c","type":1,"nname":"admob","weight":100,"priority":1,"key":"a14da6f2c12849d"}]} |
This config indicated a 30s refresh rate with AdMob targeted 100% and 1st backfill priority with his pub ID. If you have multiple ad networks, you should see multiple ration objects. |