This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Google Admob Integration Errors

 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys,
i am working on an app for android 2.2 Platform, wanted to integrate admob into it, So i set up an account downloaded the latest admob sdk and created an ad Layout in xml followed the instructions mentioned in docs.I have set the target in project properties to 14 and set the min SDK to 8 now the error occurs when i configure
The String "keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" wont compile for android 2.2 it throws errors. However if i compile without these "screenSize|smallestScreenSize", it compiles but the ad area in the app shows an error saying You must have AdActivity declared in AndroidManifest with configChanges

Can you guys suggest a solution, any help with this problem is appreciable

Thanks & Regards,
Zoheb
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Above is working fine for my app.


 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Hardik,

The Latest admob jar 4.3.1 requires you to build against platform-13 or higher since it is optimized for tablets, it requires you to have the complete string for configChanges attribute i mentioned in earlier post.However one can deploy it for lower platforms by mentioning minSdk.That solved the problem but my app is still failing to receive ads as it states in the Logcat that there are no ads in the inventory.So that needs sorting out. Thanks for the response tough

Best Regards,
Zoheb
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have build my app using 2.3.

And for the Ad's Banner size what size you are giving.
It will return larger image if you are using for tablet and smartphone will not be able to load that big image.
 
zoheb hassan
Ranch Hand
Posts: 154
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since my app is targeted for 2.1, 2.2 platform i am using banner as the adSize. I am worried tough what would happen if my app ends up on an tablet.Hey hardik one more thing tough can you give any sites that have good tutorials on Json and parsing it . I want to get started on that too

-Zoheb
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://p-xr.com/android-tutorial-how-to-parse-read-json-data-into-a-android-listview/

Above tutorial is nice to start with
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic