We've moved! Visit
The Keyword
for all the latest stories about
life at Google
and our
student programs
.
Student Blog
Brought to you from your @GoogleStudents friends. From pre-university to PhD (and beyond), we got you.
What you need to know to install AdMob on your app
January 17, 2014
There have been some excellent app submissions for The AdMob Student App Challenge; however, many of these were submitted without having first successfully installed AdMob to their app. This is an important aspect of the challenge, and an app without AdMob will not be eligible for review by our judging panel. The process to install AdMob is straight-forward; continue reading for a how-to on how to monetize your app with AdMob.
Requirements for your app
Make sure you have the
latest copy of the Android SDK
and that you're compiling against at least Android v3.2 (set target in project.properties to android-13) (or higher). .
The Google Mobile Ads SDK for Android requires a run-time of Android 2.3 or later (set android:minSdkVersion to at least 9 in your AndroidManifest.xml). This means you can develop with the latest version of the Android SDK and your app will still run on an earlier Android version (2.3 minimum).
Steps for incorporating the SDK
Add and reference the Google Play services library project in your Eclipse workspace.
See the Android
instructions
for how to set up the Google Play services SDK.
Right click on your app project in Eclipse and select
Properties
.
Select
Android
and then click
Add
.... Find the google-play-services_lib project and select
OK
to add the Google Play services library.
The project now references the Google Play services library.
Add a meta-data tag in AndroidManifest.xml.
Google Play services requires you to add a specific meta-data tag within the element in your app's AndroidManifest.xml. data, can be found at Step 2
here
.
Declare com.google.android.gms.ads.AdActivity in the manifest.
The Mobile Ads SDK requires that com.google.android.gms.ads.AdActivity be declared in your app's AndroidManifest.xml. A screenshot can found at Step 3
here
.
Set up network permissions in the manifest.
Making ad requests requires these permissions to be declared in the manifest:
INTERNET
Required
. Used to access the Internet to make ad requests.
ACCESS_NETWORK_STATE
Optional.
Used to check if an internet connection is available prior to making an ad request.
For further questions on the installation process, head to the
Google Developers forum
, where any questions or troubleshooting can be handled. As always, follow
AdMob on Google+
for any new updates, and good luck with the continued development of your app for the contest.
Posted by Jeff Miner, AdMob Student Challenge team
Labels
A Day in the Life of a New Grad in Google Dublin
7
AdCamp
2
AdMob
11
Ambassador Program
14
APAC
7
Appy Trails
28
Back to School
4
Better Know a New Grad
1
Better Know an Intern
15
Better Know an Office
4
Black History Month
10
Caitlin Talks to an Engineer
9
Chrome Extensions
3
Chromebook
1
College Tips by Google
1
Community
14
Conferences
16
consortium
1
CSSI
5
Day in the Life
2
deSTEMber
1
Development Programs
1
Diary of a Business Associate Intern
1
Diary of a Summer Intern
41
Diary of a Summer Intern - Erika
9
Diary of a Summer Intern - Franklin
3
Diary of a Summer Intern - Jess
3
Diary of a Summer intern - Luke
3
Diary of a Summer Intern - Madelaine
4
Diary of a Summer Intern - Pablo
3
Diary of a Summer Intern - Rio
4
Diary of a Summer Intern 2012
18
Diary of an MBA Intern
2
Education
19
EMEA
47
Europe
8
Events
13
Exploring Design at Google
4
GHC15
6
Going Green
6
Gone Google
2
Google Code University
1
Google Code-in
1
Google Games
3
Google Japan
1
Google Lime Scholarship
1
Google on campus
2
Google Online Marketing Challenge
10
Google Science Fair
2
Google.org
1
Google+
6
Googlers
14
Googlers Beta
11
Grace Hopper
11
GradTips
9
Hangouts On Air
21
Inside ITRP
6
Intern Insights
31
Intern Program
72
Interns Making an Impact
7
Interviews
1
Jobs
5
just for fun
30
K-12 (Pre-university)
14
LATAM
3
Life at Google
17
Middle East
1
My Path to Google
45
My Summer at Google
15
My Summer at Google 2012
10
North America
4
Office Environment
4
Open Source
9
PhD
7
Products
94
Programs and Competitions
116
Recruiter Tips and Tricks
15
Rice Plus
4
Scholarships
56
Search
1
STEM
2
STEP
1
Student Tips
15
Students
13
Summer of Code
1
Teach Parents Tech
10
Tech Students
3
Tips and Tricks
27
Women in Engineering
21
Young Innovators
10
YouTube
3
Archive
2020
Jul
May
Mar
Feb
Jan
2019
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2018
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2017
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2016
Nov
Oct
Sep
Aug
Jul
Jun
Apr
Mar
Feb
Jan
2015
Dec
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2014
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2013
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2012
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2011
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2010
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2009
Dec
Nov
Oct
Sep
Aug
Jul
Jun
May
Apr
Mar
Feb
Jan
2008
Dec
Nov
Oct
Sep
Feed
Follow @GoogleStudents
Interested in opportunities and programs for students? Visit
google.com/students
.