adwhirl application set up and testing questions

265 views
Skip to first unread message

Mik

unread,
Dec 21, 2010, 7:49:42 AM12/21/10
to AdWhirl Users
Hello everyone,

I am a beginner in the android world and I've used AdMob so far.
Now I decided to switch to Adwhirl and I am having some problems.

I've done the site set up correctly (I believe) and I associated to my
application AdMob 70% and MillenialMedia 30%.

But from the application side, I am having some problems about
understanding the whole set up.

First of all the layout:
from the instructions:
(http://www.adwhirl.com/doc/android/AdWhirlAndroidSDKSetup.html)
I don't clearly understand if the Java solution (4.1) is an
alternative way to the XML solution (again 4.1, but below).
Or do I have to use both of them?

If I edit only the xml manifest, do I still have to extend my base
class to "implements AdWhirlInterface"?
Would it work editing the manifest alone?

Finally: how to test it in the emulator?

Thanks for any hint,
Mik

wes

unread,
Dec 22, 2010, 10:14:17 AM12/22/10
to adwhir...@googlegroups.com
I would just take a look at the sample code we have available for Android: (http://code.google.com/p/adwhirl/source/browse/src/com/adwhirl/Invoker.java?repo=sdk-android).  Defining your AdWhirlLayout in code vs XML is basically a personal choice, depending on how heavily you rely on layout xml in the first place.

You're probably alright not implementing AdWhirlInterface in your class if you don't want to, but just don't call adWhirlLayout.setAdWhirlInterface(this);.

For testing in the emulator, just run your app.

Cheers,
Wes

Mik

unread,
Dec 22, 2010, 5:48:10 PM12/22/10
to AdWhirl Users
Thank you wes,

thanks to your link I could go a bit further.
But I think I am missing some basics here.
Hopefully you or someone else has enough patient to help.

Here is my understanding, please correct what I didn't quite get
yet....
0) let's say for example that I set up AdWhirl web site to link to
AdMob and MillennialMedia

1) My project needs to have jar files for AdWhirl, AdMob and
MillennialMedia

2) In manifest I have to provide information for all three of them, as
illustrated in every specific SDK instruction

3) In the xml layout it should be enough to specify the following for
AdWhirl and nothing for AdMob and MM (?)
<com.adwhirl.AdWhirlLayout
android:id="@+id/adwhirl_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />

4) in the java class:
4.1) I can implement AdWhirlInterface
4.2) I have to code basics AdWhirl info (Manager, Targeting, Layout)
as shown in the example link you posted
4.3) do I have to add code for AdMob and for MM?


Thanks for any help!
Mik

Mik

unread,
Dec 22, 2010, 5:59:19 PM12/22/10
to AdWhirl Users
Update:
I've done all above except than 4.3

LogCat says:
12-22 22:47:07.687: INFO/AdMobSDK(848): No fill. Server replied that
no ads are available (835ms)

which is a valid AdMob condition, so I guess AdMob is working.

But for MM:

12-22 22:47:38.226: INFO/MillennialMediaAdSDK(848): Activity:
ActivityInfo{437cadc8
com.millennialmedia.android.MMAdViewOverlayActivity}
12-22 22:47:38.236: DEBUG/MillennialMediaAdSDK(848): Automatic ad
fetching is off with -1. You must manually call for ads.

So apparently I have to add some code for MM...

In this page though, they explain how to handle MM, but not MM with
AdWhirl...
And AdWhirlAdapter class has methods for AdSense, but... not for MM.
I'm stuck again.

Mik
http://wiki.millennialmedia.com/index.php/Android
Reply all
Reply to author
Forward
0 new messages