Skip to main content

Admob

Let's configure Admob for rewarded ads

  1. Navigate to https://admob.google.com/ and press on Sign in or Get Started

Admob 0

Android​

  1. Let's start by setting up an Android App. Press on Add Ad Unit

Admob 6

  1. Select Android in the platform, precise if the app is already listed on app store or not then press on Continue

Admob 3

  1. Select the Rewarded Ad

Admob 7

  1. Give the ad a name, and in the reward settings, set the reward amount to 1, give the reward item a name then press on Create ad unit

Admob 8

  1. Now after successfully creating the ad, copy the app ID and the ad unit ID and note them somewhere (we are going to use them in the last 2 steps). Press on Done.

Admob 9

iOS​

  1. Now let's create an iOS App, give the app a name and then press on Add App

Admob 10

  1. Select the Rewarded Ad

Admob 7

  1. Give the ad a name, and in the reward settings, set the reward amount to 1, give the reward item a name then press on Create ad unit

Admob 8

  1. Now after successfully creating the ad, copy the app ID and the ad unit ID and note them somewhere (we are also going to use them in the last 2 steps). Press on Done.

Admob 2

App Settings​

  1. Now Let's go back to the project files, open app.json and replace both the Android and iOS app ids with the ones you copied earlier.

Admob 11

Firebase​

  1. Go back to the Realtime Database in Firebase and replace the Ad ids with the ones you copied earlier in step 6 and 10

Admob 12