Admob Configuration

How to Integrate and Remove Google AdMob in your App

Introduction

AdMob is a multi platform mobile ad network that allows you to monetize your android app. By integrating AdMob you can start earning right away. It is very useful particularly when you are publishing a free app and want to earn some money from it.

Integrating AdMob is such an easy task that it takes not more than 5mins. In this article we’ll build a simple app with two screen to show the different types of ads that AdMob supports.

Creating Ad Units

First, you need to create an AdMob account: Here

After creating banner ad unit you have to place you adUnit id in following file.

Config.js in react native Project

go to the WEBILENEWSRN > src > Config > index.js > repels the homeAdID in banner tag

AppDelegate.m in iOS

Go to the app > project > AppDelegate.m > Replace configureWithApplicationID

AndroidManifest.xml

Go to the app > manifests > AndroidManifest.xml > Replace the Value in AdMobId

How to remove AdMob Ads from App?

Remove BannerAd

Go to the WEBILENEWSRN > src > screens >Home > index.js >

remove below code

{/* Add AdMob */}

<AdvertisementBanner

adUnitID={Config.banner.homeAdID}

style={{ marginBottom: 47 }} />

And Remove same code in Details Screen

Go to the WEBILENEWSRN > src > screens > Details > index.js >

Last updated