Saturday, December 3, 2011

Migrating to v4.3.1 of AdMob SDK for Android

  We’ve seen a lot of forum activity about how to migrate from v4.1.1 to v4.3.1 of the Google AdMob Ads SDK for Android, so we’d like to share three easy steps to get you up and running with the latest version.
  1. The first step to migrating is downloading the AdMob SDK and adding it to your build path.
  2.  
  3. You will need to have an Android SDK of 3.2 or higher. Once you have a compatible version, set target=android-13 or higher in your project.properties file of your application to compile against the version you just downloaded. Don’t worry, you can still build your apps on all Android devices down to Android 1.5! Just set in your AndroidManifest.xml file. You can read more about the uses-sdk element to help you configure the appropriate devices for your app.
  4.  
  5. Finally, replace the old com.google.ads.AdActivity element in your manifest with this new definition:
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
That’s it! You should now be able to run your application using the latest SDK without any errors. Please post to our forum if you have any questions about the migration.

No comments:

Post a Comment

Share This: