Skip to content

Instantly share code, notes, and snippets.

@saurabhalang
Created July 13, 2015 15:48
Show Gist options
  • Select an option

  • Save saurabhalang/c3bc3d477743dc1dd1f5 to your computer and use it in GitHub Desktop.

Select an option

Save saurabhalang/c3bc3d477743dc1dd1f5 to your computer and use it in GitHub Desktop.
How to show admob ads in your android apps?
<!-- Include required permissions for Google Mobile Ads to run-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!--This meta-data tag is required to use Google Play Services.-->
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<!--Include the AdActivity configChanges and theme. -->
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment