
How to integrate AdMob in our React Native Expo App?
- Firstly, you need to make sure to have an AdMob account. If you donβt have one, you can create it here.
- Start the setup by following the steps below.
Setup
1
First, you need to install the
react-native-google-mobile-ads
package.2
Go to the admob.google.com and create your account.

3
You need to create the same app for iOS and Android.

4
Then pick a name for your app:

5
Now you need to create an ad unit for each type of ad.

6
You can choose a 4 category:
Banner
, Interstitial
, Rewarded
and App Open
.
7
Now you need to get your app ID for each platform.

8
Ad Unit Successfully Created.

9
Now, listen carefully to the following steps.
Open
app.json
file and add the following code down below:10
Go to
services/admob/admobConfig.ts
file and change the values with your own.If you are using the Gluestack branch go to the
services/admob/admobInitialize.ts
file and change the values to your own.Go to
services/admob/admobService.ts
file and uncomment the code.11
Now , go to
app/_layout.tsx
file and add the following code down below:app/_layout.tsx
12
Now you can use Ads in where you want in your app. For example:
app/screens/profile.tsx
13
Donβt forget to build your app again.
npx expo prebuild
or eas build --profile development --platform <platform>