error in integrating admob in android

General Android Books.
Also feel free to comment, improve and contribute to AndBook, the free Android Learners book.

error in integrating admob in android

Postby SivaKSankar » Thu Apr 07, 2011 9:00 am

in my app i am trying to add admob. i followed the procedures from the following link

wheni tried running the app in my device, all activities works fine but i am not able to view admob ad. Wheni checked out in the logcat it showed the following error

04-07 13:20:52.141: ERROR/Ads(1135): AdView missing required XML attribute adUnitId.

Following is my attrs.xml file
Code: Select all
<?xml version="1.0" encoding="utf-8"?>

   <declare-styleable name="">
   <attr name="backgroundColor" format="color" />
   <attr name="primaryTextColor" format="color" />
   <attr name="secondaryTextColor" format="color" />
   <attr name="keywords" format="string" />
   <attr name="refreshInterval" format="integer" />

pls help me to fix up my error
Posts: 3
Joined: Tue Apr 05, 2011 8:38 am


Re: error in integrating admob in android

Postby Una » Tue Jan 17, 2012 4:30 am

Do not understand the code pass....
Junior Developer
Junior Developer
Posts: 10
Joined: Sat Jan 14, 2012 8:51 am

Re: error in integrating admob in android

Postby ellis123 » Tue Feb 14, 2012 9:41 pm


I suggest you to follow below link. I'm sure you will sucess in integrating admob in android. ... om=ViewTOC


Posts: 7
Joined: Thu Dec 01, 2011 6:13 pm
Location: USA


Return to Android Books

Who is online

Users browsing this forum: No registered users and 1 guest