AdWhirl integration in Android using xml layout

Integrating AdWhirl advertising is badly documented on AdWhirl support website. So, I have decided to share my experience here……

You can integrate AdWhirl very easily in your Android application as a provider following the steps below……

1. Register an account at AdWhirl

2. Add your application and the associated settings on the website

3. Download the AdWhirl sdk from the link

4. Add the sdk jar to your project build path

5. Add these parmissions to the menifest file

<uses-permission android:name=”android.permission.INTERNET” />
<uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” />
<uses-permission android:name=”android.permission.READ_PHONE_STATE” />
<uses-permission android:name=”android.permission.ACCESS_COARSE_LOCATION” />
<uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />
<uses-permission android:name=”android.permission.WRITE_EXTERNAL_STORAGE” />

And this line of codes too for AdMob

<activity android:name=”com.google.ads.AdActivity”
android:configChanges=”keyboard|keyboardHidden|orientation”/>

6. Add this code to the  menifest file 

<meta-data android:value=”here goes the key” android:name=”ADWHIRL_KEY” />

in between the application tags

<application>here</application>

and replace the “here goes the key” with your AdWhirl sdk key.
7. Add this code

xmlns:app="http://schemas.android.com/apk/res/com.adwhirl"

to the xml layout file just after

xmlns:android="http://schemas.android.com/apk/res/android"

8. Add this code to the same android layout file

<com.adwhirl.AdWhirlLayout
android:id=”@+id/adwhirl_layout”
android:layout_width=”fill_parent”
android:layout_height=”wrap_content”
/>

9. Add other ad networks “like AdMob, InMobi etc.” sdk jar files to your project build path too.

10. InMobi does not need any other coding, only it requires the sdk to be added.

11. Finally you may have to wait 3 or 4 days for your AdWhirl network to get the Ads. In the meantime the logcat may show fail errors.

12. I have successfully integrated AdMob and InMobi using these steps.индексация страниц в яндексе

9 Comments

    1. If you follow the instruction posted here. You won’t need any code in Java for AdWhirl integration. The good news is now AdMob itself works as AdWhirl automatically. So, as of my opinion. Using AdMob is more profitable.

  1. Hi, Thanks for the information.
    I am facing an error I am testing on Nexux One Android 2.3.3
    this is shown in log cat
    05-17 23:36:17.795: W/Ads(6029): Not enough space to show ad! Wants: , Has:
    I do not know how to figure it out .

    Please help me.

      1. Hello Raghavendra! It is a problem with your space size. Please increase the width of the layout portion you are using to show ads. It will solve your problem. If not, feel free to share some code. Thank you.

    1. I am not using this too. So, don’t have a working code but I beleive if u follow the instruction you will be able to do it. I did it once as I remember. I suggest using AdMob instead. AdMob is good.

Leave a Comment

shop giày nữthời trang f5Responsive WordPress Themenha cap 4 nong thongiay cao gotgiay nu 2015mau biet thu deptoc dephouse beautifulgiay the thao nugiay luoi nutạp chí phụ nữhardware resourcesshop giày lườithời trang nam hàn quốcgiày hàn quốcgiày nam 2015shop giày onlineáo sơ mi hàn quốcf5 fashionshop thời trang nam nữdiễn đàn người tiêu dùngdiễn đàn thời trang