Discussion Forums  >  Uncategorized

Replies: 27    Views: 935

gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
06/19/11 09:47 AM (14 years ago)

AdMob for Android HowTo

After over 8 hours of trial and error, I finally have Admob in my Android app. I wrote a not so simple solution on my <href=http://tipstricksandhacks.blogspot.com/2011/06/how-to-add-admob-ads-to-your-buzztouch.html>blog. http://tipstricksandhacks.blogspot.com/2011/06/how-to-add-admob-ads-to-your-buzztouch.html
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
06/19/11 09:50 AM (14 years ago)
I apologize for the HTML. Not paying attention. After over 8 hours of trial and error, I finally have Admob in my Android app. I wrote a not so simple solution on my blog. http://tipstricksandhacks.blogspot.com/2011/06/how-to-add-admob-ads-to-your-buzztouch.html You can find the app in the market under the name OTR Gunsmoke. The screenshot has not been updated yet with the ads so you will need to download the app to see them.
 
steveh6883
buzztouch Evangelist
Profile
Posts: 383
Reg: May 15, 2011
Gosport, UK
3,830
like
06/19/11 01:33 PM (14 years ago)
Wow, been struggling over this myself, much thanks & will be following your guidelines soon Any ideas if this would also work with iOS source & Xcode?
 
rmyree
Aspiring developer
Profile
Posts: 36
Reg: Apr 16, 2011
Brentwood,NY
1,210
like
06/19/11 01:49 PM (14 years ago)
Great job, you did what most of us were trying to do for a long time. Thank you.
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
06/19/11 03:44 PM (14 years ago)
I have no clue about iOS since I do not have a mac. I done all the editing in the xml files so if that is available in xcode should be simple enough. One thing to remember is that the banner is 50 px tall so you have to offset everything by 50 in your layouts.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/20/11 04:05 AM (14 years ago)
@ gereghas: New rockstar!!! Thanks sooo much for sharing this and for posting about it on your blog. Huge help for tons of questions the audience has had for awhile. Kudo's to you in Ok.
 
pefdore
I hate code!
Profile
Posts: 11
Reg: Jun 14, 2011
location unknow...
110
like
06/20/11 10:20 AM (14 years ago)
Hey, thanks for your tuto, everything is ok for me BUT the ad doesn't appear on my device... Is it normal in first time?
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
06/20/11 10:42 AM (14 years ago)
Did you sign up at AdMob and enter your ID in the right spot in the AdView code? If you done all that, It may take a little bit for ads to show.
 
piggilypoo
Aspiring developer
Profile
Posts: 172
Reg: Jun 28, 2011
San Diego
5,120
like
07/02/11 12:46 AM (14 years ago)
I followed the exact instructions and I couldn't get it to work, my app just crashes. i get the following classes could not be found: com.google.ads
 
jmp4106
Aspiring developer
Profile
Posts: 43
Reg: Feb 18, 2011
california
430
like
07/05/11 09:47 AM (14 years ago)
@piggilypoo I noticed when I added admob that sometimes it does that. I will just delete and start over and it will work the next time. I don't know why. But for once my frustration of saying Screw it and deleting it all and starting over came in handy.
 
Lyle @SFNeNT
buzztouch Evangelist
Profile
Posts: 168
Reg: Apr 29, 2011
Chicago, IL
2,830
like
07/22/11 12:55 AM (14 years ago)
with this you can run ads along bottom like a footer without changing glob_tittle_dark hope it helps http://sfnent.blogspot.com/2011/07/easy-guide-on-how-to-make-money-with.html
 
Redbullet
Aspiring developer
Profile
Posts: 42
Reg: Mar 05, 2011
Earth
3,170
like
12/05/11 05:16 PM (14 years ago)
Hi guys I have tried everything but can't really get Admob to work I follow the instructions below http://tipstricksandhacks.blogspot.com/2011/06/how-to-add-admob-ads-to-your-buzztouch.html http://sfnent.blogspot.com/2011/07/easy-guide-on-how-to-make-money-with.html#comments But keep on having this issues: You must have AdActivity declared in AndroidManifest.xml with configChanges Yet I have checked/edited/re-checked, edited, AndroidManifest and make sure that I have this declared <activity android:name=com.google.ads.AdActivity android:configChanges=keyboard|keyboardHidden|orientation/> Anyone can comment, kinda frustrated here... Thanks!
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
12/05/11 05:33 PM (14 years ago)
Make sure there are quotes around com.google.ads.AdActivity and keyboard|keyboardHidden|orientation and then a space before />
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
12/05/11 05:35 PM (14 years ago)
Looks like the forum might have stripped your quotation marks as it did mine.
 
Redbullet
Aspiring developer
Profile
Posts: 42
Reg: Mar 05, 2011
Earth
3,170
like
12/06/11 10:04 PM (14 years ago)
Oklahoma, yes the quotes are present on my declaration, anyone else have any idea? I really cant enable Admob on my App :(
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
12/07/11 07:47 AM (14 years ago)
@ Redbullet - You have the latest admob sdk right? (judging by the error message, you have.), the configChanges declaration in the manifest has changed. It's now: <activity android:name=''com.google.ads.AdActivity'' android:configChanges=''keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize''/> (don't copy and paste - I've used 2 single quotes!) You'll also need to make sure that the build target is Android 3.2 API level 13 (right click project > properties > android) If you haven't got 3.2 installed, update in the Android SDK Manager. That should do it. Android is rapidly evolving. Don't rely on outdated guides to still be working properly!
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
12/07/11 09:14 AM (14 years ago)
Quote: Don't rely on outdated guides to still be working properly! Please, remember that one. I wrote that guide about 6 months ago. When android was still on 2.3.x. I will make a note at the top of the guide letting people know that it will not work as is.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
12/07/11 12:39 PM (14 years ago)
@ gereghas - Apart from those small changes, your guide is still spot on! Still can't thank you enough in getting me started on making some money with apps!
 
Redbullet
Aspiring developer
Profile
Posts: 42
Reg: Mar 05, 2011
Earth
3,170
like
12/07/11 03:42 PM (14 years ago)
Thanks guys, i'll try this
 
darksoftmobile
Android Fan
Profile
Posts: 10
Reg: Apr 07, 2010
everett
400
like
12/09/11 03:37 AM (14 years ago)
@Redbullet Did you get this to work yet? I am having the same issue. I've got build target set for 3.2 api 13, etc but still showing You must have AdActivity declared in AndroidManifest.xml with configChanges
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
12/09/11 06:10 AM (14 years ago)
What declaration have you got in the manifest? What's logcat showing?
 
Daikokuten
Aspiring developer
Profile
Posts: 23
Reg: Nov 17, 2011
North of the bo...
980
like
12/09/11 10:37 AM (14 years ago)
yeah also having the exact same issue integrating. anyone successfully integrate admob into BT android app yet? If so let us in on how you did it :)
 
darksoftmobile
Android Fan
Profile
Posts: 10
Reg: Apr 07, 2010
everett
400
like
12/10/11 01:11 AM (14 years ago)
I have this in the manifest --- <activity android:name=com.google.ads.AdActivity android:configChanges=keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize /> Logcat says - 12-09 23:43:37.237: E/Ads(255): The android:configChanges value of the com.google.ads.AdActivity must include screenLayout. 12-09 23:43:37.237: E/Ads(255): The android:configChanges value of the com.google.ads.AdActivity must include uiMode. 12-09 23:43:37.237: E/Ads(255): The android:configChanges value of the com.google.ads.AdActivity must include screenSize. 12-09 23:43:37.237: E/Ads(255): The android:configChanges value of the com.google.ads.AdActivity must include smallestScreenSize. 12-09 23:43:37.237: E/Ads(255): You must have AdActivity declared in AndroidManifest.xml with configChanges.
 
darksoftmobile
Android Fan
Profile
Posts: 10
Reg: Apr 07, 2010
everett
400
like
12/10/11 01:19 AM (14 years ago)
I am including the double quotes to the above as well -- apparently forum here strips them.
 
darksoftmobile
Android Fan
Profile
Posts: 10
Reg: Apr 07, 2010
everett
400
like
12/10/11 01:41 AM (14 years ago)
I've got the ads showing in the emulator!! I had this in the manifest <uses-sdk android:minSdkVersion=13 /> based on a tutorial I was following. I deleted it from the manifest and now ads show. Now I just need to figure out how to get the banner from hidding one of my rows.
 
Lyle @SFNeNT
buzztouch Evangelist
Profile
Posts: 168
Reg: Apr 29, 2011
Chicago, IL
2,830
like
12/10/11 02:04 AM (14 years ago)
@darksoftmobile just go into the buzztouch control pannel and add a custom text or something to the list it will push the last item up and it will get covered by banner...
 
darksoftmobile
Android Fan
Profile
Posts: 10
Reg: Apr 07, 2010
everett
400
like
12/10/11 02:29 AM (14 years ago)
@Lyle Thanks! That trick works great.
 
Daikokuten
Aspiring developer
Profile
Posts: 23
Reg: Nov 17, 2011
North of the bo...
980
like
12/10/11 12:40 PM (14 years ago)
which tut did you follow, do you have a link i can peruse where in the code can i change this to get ads on the emulator to show? I had this in the manifest <uses-sdk android:minSdkVersion=13 /> based on a tutorial I was following. I deleted it from the manifest and now ads show.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.