Monetize your app with AdMob: for LibGDX Android projects

Hands on, step by step video lectures on how to setup and integrate Admob within a LibGDX Android project
0.0 (0 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
20 students enrolled
Instructed by Rik Vanv Development / Mobile Apps
25% off
Take This Course
  • Lectures 12
  • Length 1 hour
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 1/2015 English

Course Description

So you've created an app using LibGDX's cross-platform development tool and now you also want to earn some money with it.
Integrating an ad service might just be the way for you.

The most popular way to monetize apps is using ad services and the most dominant mobile ad platform - adopted by 2/3th fo the developers that use ad services - is Google's AdMob.

One problem though is that Google's documentation is not well adjusted to integrating AdMob in LibGDX and even with LibGDX's documentation it could take you hours if not days of work to figure out how everything works and get a good understanding of how to integrate Banner and Interstitial ads in your app.

In this course I'll help you quickly understand how to use & integrate AdMob in your app.
I will take you step by step through the proces of how to:

  • set up and integrate AdMob within your own app.
  • how to display interstitial and banner ads
  • make sure you're app doesn't freeze on a device without network connection

What are the requirements?

  • Have an Integrated Developer Environment (IDE) installed that is able to import a LibGDX project; like Eclipse, Android Studio, etc.
  • In this course I will be using Eclipse.
  • Have a basic understanding of how to read code/java
  • Preferably an Android device for testing, although you could use a Virtual Device
  • A Google Account

What am I going to get from this course?

  • Understand how to set up and use AdMob
  • Integrate AdMob in your own projects
  • Understand which additions to make to the AndroidLauncher and AndroidManifest files in order to get everything running
  • Write code for displaying interstitial and banner ads
  • save yourself a lot of time not having to go though the whole process of figuring out by yourself how to integrate AdMob in LibGDX projects

Who is the target audience?

  • LibGDX users who want to integrate AdMob in their apps
  • This course focuses on the Android side of LibGDX projects

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Welcome and Setting up the basics

Welcome to "Monetize your app with Admob for LibGDX Android projects"!
In the first lecture I'll talk a little bti about how the course is structured.

Throughout this course I'll be using Eclipse (if you're using another IDE that's not a problem). In this lecture I'll show you where to setup your AdMob account and how to create an empty LibGDX project.

In this lecture I will show you how to install the Gradle plugin for Eclipse, import your LibGDX project and how to make a minor adjustment to your launch settings in order to improve your workflow.


The Google Mobile Ads APIs are part of the Google Play services platform. In order to run ads in your app you need to install the Google Play Services SDK. In this lecture I'll show you how to install the SDK and how to add the google play services library to your project.

Section 2: Integrating AdMob into our app

In this lecture we'll cover the necessary modifications that need tobe made to the AndroidManifest.xml in order to display AdMob ads in your app.

Understanding the AndroidManifest.xml file
2 questions

In this lecture we'll cover creating our ad unit id on the AdMob page and writing code for creating a seperate view to display banner ads


Part 2 of Banner Ads will cover creating methods for showing and hiding the banner ad and we'll also create an interface through which we can access these methods from our game class.


Now that we have set up all the code for implementing ads in our app, there is one thing we need to do to make sure our app keeps running in case an ad doesn't want to load because we're not connected to the internet.

If we wouldn't do this our app would "freeze up" every time our app wants to display an interstitial ad and there is no network connection.

In this lecture I'll show you how to implement the necessary code.


Interface part 2 - In this lecture we're going to create a "dummy" AdController for our Desktop project so that we can run our code on the desktop.


In this lecture I'll show you how you can run banner ads

Section 3: Resources
Course source code files
External links

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Rik Vanv, Entrepreneur & App Developer

After walking a the pilgrimage to Spain's Camino de Santiago, Rik decided to make a career switch to better apply his strong creative, analytic and technical skills and focus full time on Mobile App Development and tutorial creation.

With a wide range of experiences in life, jobs, education and in teaching Rik has traveled the world to many countries, worked a rich variety of jobs (Graphic designer, Webdesign, Risk Investor, Pilates & Capoeira instructor and many more) and was fortunate enough to study at the Universities of Utrecht & Twente (The Netherlands) and UC Berkeley (California) holding a Bachelor of Science degree with a major in Biology.

Rik is a digital mediapreneur, owner and (together with his brother) co-Founder of Norakomi App Development, based in Amsterdam - The Netherlands, and currently full time dedicated to Android app development, LibGDX cross-platform game development and creating educational material (video and written) for (aspiring) app developers.

Ready to start learning?
Take This Course