# AdMob Setup

Make sure you have Firebase set up in your application. [**Here**](https://firebase.google.com/docs/android/setup) are the steps to add Firebase in your project.

Next you need to sign up for an AdMob account. If you don’t have an AdSense account, you will need to create it before creating an AdMob account. [**Here**](https://support.google.com/admob/answer/7356219?visit_id=1-636588936638801033-1539935924\&rd=1) are all the possible cases to create AdSense and AdMob account.

**Remember to signup for AdMob with the same account that you will be using with Firebase.**

Once you have created an account, login into AdMob and open your dashboard. Now go to Apps > Add App > Fill in the information required by AdMob > Click on Add.

Once you done setting up Firebase and AdMob and creating your application, you will need to link your application in AdMob to Firebase.Select the newly added app, go to **App Settings** and there under App Info you will see an option to link application with Firebase.

## Setup Android&#x20;

### Video Tutorial - Integrating AdMob to your Application Android

{% embed url="<https://www.youtube.com/watch?v=F8sQsy9SdxU>" %}
Integrating AdMob to your Application Android
{% endembed %}

### **Written Tutorial**

The following steps need to be followed to integrate AdMob into your **application mobile**.

1. To get started you need to [create](http://apps.admob.com/) an AdMob account or sign in if you already have one.
2. Login to AdMob and open your dashboard. Now, go to Applications> Add an Application> Fill out the information required by AdMob> Click Add, which will generate an AdMob ID for your application.
3. To link your newly added application to Firebase. Select the application, access the application settings and under Application Information you will see an option to link the application to Firebase.
4. Add your AdMob Application ID to your AndroidManifest.xml file by adding the `<meta-data>`tag.

```
<meta-data
    android:name="com.google.android.gms.ads.APPLICATION_ID"
    android:value="ADMOB_APP_ID"
/>
```

## Setup **iOS**&#x20;

### Video Tutorial - Integrating AdMob to your Application iOS

{% embed url="<https://www.youtube.com/watch?v=q6Q3kMdTqK4>" %}


---

# 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://positifmobile.gitbook.io/flyweb/config/admob-setup.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.
