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
http://code.google.com/mobile/ads/docs/android/fundamentals.html

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"?>
<resources>

   <declare-styleable name="com.google.ads.AdView">
   <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" />
   </declare-styleable>
</resources>


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

Top

Re: error in integrating admob in android

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

Do not understand the code pass....
Una
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

Hi,


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


http://androidcookbook.com/Recipe.seam? ... om=ViewTOC

Regards,

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

Top

Return to Android Books

Who is online

Users browsing this forum: No registered users and 4 guests