Adding banner and interstitial ads to your Android app — step by step from scratch

Cansu Yeksan Aktaş
The Startup
Published in
11 min readJun 12, 2019

It might seem overwhelming to add a banner/interstitial ad to your project, but it is definitely not! When you read the entire article, you will be able to add ads easily.

Since every tiny detail is included in the article, it may seem that it will take too long to add a banner/interstitial ad. Actually, the whole process is not as hard as it looks :)

CONTENTS:

WHAT ARE BANNER AND INTERSTITIAL ADS?

ADD BANNER AND INTERSTITIAL ADS TO YOUR APP

WHAT ARE BANNER AND INTERSTITIAL ADS?

Banner and interstitial ads are a very common way to earn money from your app. By adding these ads to your app, you show some advertisements in your app and earn money when the ads are clicked on.

First of all, what is the difference between banner and interstitial ads? Let’s define them shortly:

  • Banner ads:
[source: https://tekeye.uk/android/examples/admob-ad-in-android-activity]

Banner ads are rectangular image or text ads that occupy a spot within an app’s layout. [source: https://developers.google.com/admob/android/banner]

  • Interstitial ads:
[source: https://www.geeksforgeeks.org/admob-interstitial-ads-android-studio/]

Interstitial ads are full-screen ads that cover the interface of their host app. They’re typically displayed at natural transition points in the flow of an app, such as between activities or during the pause between levels in a game. [source: https://developers.google.com/admob/android/interstitial]

ADD BANNER AND INTERSTITIAL ADS TO YOUR APP

  • Create an AdMob account

You need to sign up for an AdMob account first in order to advertise. You can easily create an AdMob account by following the below steps:

Cansu Yeksan Aktaş
The Startup

Android Developer @ Volvo