Probable bug Adwhirl Sdk 3.1.1 with the latest GoogleAdMobAdsAdmob 6.0.0

93 views
Skip to first unread message

fast string

unread,
Apr 24, 2012, 7:26:02 PM4/24/12
to AdWhirl Users
Hi Adwhirl Dev Team
When i was trying to upgrade my app with the latest Admob sdk 6.0.0 I
have come across with the following exception .
Normally with the previous Admob 4.3.1 I was able to use the
following functions.

Functions causing exception:

// AdWhirlTargeting.setAge(23);
// AdWhirlTargeting.setGender(AdWhirlTargeting.Gender.MALE);
//AdWhirlTargeting.setKeywords("app app app");
//AdWhirlTargeting.setPostalCode("94123");
//AdWhirlTargeting.setTestMode(false);

even though i have removed the function in my code, I still could not
receive any ads from admob .Also if you try to use one of the
functions above like setTestMode(false) , I still received an
exception. I think the GoogleAdmobAdapter needs to be changed
according to new Admob Sdk ,it looks like some old function does not
exist anymore or the adRequest() implementation in the admob sdk has
changed. I hope it helps and thanks for your help.

Eclipse Log Output below:


04-25 00:16:48.875: W/AdWhirl SDK(28657): Caught an exception in
adapter:
04-25 00:16:48.875: W/AdWhirl SDK(28657): java.lang.NoSuchMethodError:
com.google.ads.AdRequest.setGender
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
com.adwhirl.adapters.GoogleAdMobAdsAdapter.requestForAdWhirlLayout(GoogleAdMobAdsAdapter.java:
93)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
com.adwhirl.adapters.GoogleAdMobAdsAdapter.handle(GoogleAdMobAdsAdapter.java:
67)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
com.adwhirl.adapters.AdWhirlAdapter.handle(AdWhirlAdapter.java:168)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
com.adwhirl.AdWhirlLayout.handleAd(AdWhirlLayout.java:231)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
com.adwhirl.AdWhirlLayout.access$300(AdWhirlLayout.java:53)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at com.adwhirl.AdWhirlLayout
$HandleAdRunnable.run(AdWhirlLayout.java:399)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
android.os.Handler.handleCallback(Handler.java:587)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
android.os.Handler.dispatchMessage(Handler.java:92)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
android.os.Looper.loop(Looper.java:123)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
android.app.ActivityThread.main(ActivityThread.java:3691)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
java.lang.reflect.Method.invokeNative(Native Method)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
java.lang.reflect.Method.invoke(Method.java:507)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:847)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
04-25 00:16:48.875: W/AdWhirl SDK(28657): at
dalvik.system.NativeStart.main(Native Method)


Regards
Keran


Eric Leichtenschlag

unread,
Apr 26, 2012, 1:23:00 PM4/26/12
to adwhir...@googlegroups.com
The AdRequest mutators in 6.0 return the AdRequest instead of void.  AdWhirl 3.1.1 was built against 4.3.1, so it's expecting a void return value, and therefore can't find these errors.  We're working on this issue.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages