# Admob Configuration

## Introduction <a href="#introduction" id="introduction"></a>

&#x20;[AdMob](https://developers.google.com/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.

&#x20;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](https://accounts.google.com/signin/v2/identifier?service=admob\&passive=1209600\&continue=https%3A%2F%2Fapps.admob.com%2Fsignup%23\&followup=https%3A%2F%2Fapps.admob.com%2Fsignup\&flowName=GlifWebSignIn\&flowEntry=ServiceLogin)

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

![change banner home AdID](https://564280721-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LSSfDb4d0BpEq1keuSj%2F-LSYyoaC-WnAkhN2e6qm%2F-LSZ6Oy2vjbacqNlPO3-%2FAdMobVS.png?alt=media\&token=9e99f776-9bc1-45ce-be20-f1378dab195f)

#### AppDelegate.m in iOS

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

![change the configureWithApplicationID](https://564280721-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LSSfDb4d0BpEq1keuSj%2F-LSZ7UMAyzy-1RcCvDBW%2F-LSZ7sbdF8Ofh9EaYB-I%2FAdMobIOS.png?alt=media\&token=45fb3b1f-e930-4dc5-80bb-2e76f0021899)

#### AndroidManifest.xml

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

![change value in AdMobID](https://564280721-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LSSfDb4d0BpEq1keuSj%2F-LSZ7UMAyzy-1RcCvDBW%2F-LSZAmMF2yv6RH7PyT9N%2FAdMobAndroid.png?alt=media\&token=1c59f1a8-bfb7-4e16-8739-94c590cd554c)

## **How to remove AdMob Ads from App?**

#### Remove BannerAd <a href="#remove-bannerad" id="remove-bannerad"></a>

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

![AdMob in Home screen](https://564280721-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LSSfDb4d0BpEq1keuSj%2F-LSZHuASsh290izoRusE%2F-LSZIbr2tl3ZuIgC0kdU%2FAdMobHomeVS.png?alt=media\&token=a35c18bb-43a6-4f4a-92ff-0c9b6677cfc0)

#### remove below code

`{/* Add AdMob */}`&#x20;

&#x20;`<AdvertisementBanner`&#x20;

`adUnitID={Config.banner.homeAdID}`&#x20;

`style={{ marginBottom: 47 }} />`

`And Remove same code in Details Screen`

**Go to the  WEBILENEWSRN > src > screens > Details > index.js  >**&#x20;

![AdMob in Details screen](https://564280721-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LSSfDb4d0BpEq1keuSj%2F-LSZHuASsh290izoRusE%2F-LSZJfKJZIcEKSWS1z0n%2FAdMobDetailsVS.png?alt=media\&token=eb36e341-62c4-42d9-a4b3-2e06b9a6c67d)

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://webile-studio.gitbook.io/webile-news/untitled-1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
