Monetize your app with AdMob: for LibGDX Android projects
5.0 (1 rating)
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.
27 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Monetize your app with AdMob: for LibGDX Android projects to your Wishlist.

Add to Wishlist

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
5.0 (1 rating)
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.
27 students enrolled
Created by Rik Vanv
Last updated 1/2015
Current price: $10 Original price: $20 Discount: 50% off
5 hours left at this price!
30-Day Money-Back Guarantee
  • 1 hour on-demand video
  • 2 Articles
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • 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
View Curriculum
  • 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

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
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
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Welcome and Setting up the basics
4 Lectures 12:48

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.

Preview 02:16

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.
Preview 04:23

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.

Preview 03:19

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.

Preview 02:50
Integrating AdMob into our app
6 Lectures 42:19

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.

Modifying our AndroidManifest.xml file

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

Implementing Banner Ads - Part 1: Creating AdMob Ad Unit ID + creating the Views

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.

Implementing Banner Ads - Part 2: Using an interface

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.

Checking if your device is connencted to the internet

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.

Interface Part 2 - Adding a "dummy" AdController to the DesktopLauncher

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

Interstitial Ads
2 Lectures 00:45
Course source code files

External links
About the Instructor
Rik Vanv
5.0 Average rating
0 Reviews
27 Students
1 Course
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.