> For the complete documentation index, see [llms.txt](https://docs.devtodev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devtodev.com/3rd-party-sources/ad-revenue/admob.md).

# AdMob

## AdMob settings

Go to [Developers Console](https://console.developers.google.com/) API Library and find AdMob API:

![](/files/wv3iJsu3dgYuCKQnLLZ3)

Enable **AdMob API**:

![](/files/3oONpXmvVyT99GNX9iPF)

Go to the **OAuth consent screen** in the left menu and create consent screen settings, fill in the **Authorized domains** field with **devtodev.com**:

![](/files/Vk0eBGhkGhebXca2Bddk)

![](/files/jKbrd748amHrAlRsofl2)

![](/files/8GkweJsIolMzaYuKAuzV)

Next, go to the **Credentials** section in the left menu and create new **OAuth credentials**. Select Web application and copy **JavaScript origin URI** from devtodev settings - <https://analytics.devtodev.com>.&#x20;

![](/files/qZS4yhpeutzerOhksuq8)

Save credentials and copy **Client ID** and **Client Secret**:

![](/files/kLMiJd3wFU75852Ou4UC)

Go to [AdMob settings](https://apps.admob.com/v2/settings) and copy **Publisher ID**:

![](/files/-M7bFSBKILKKUozKwt9p)

Go to the list of your apps and copy App ID

![](/files/Wbp01cjO0Vgo1AEDTRiH)

## devtodev settings

Go to Settings -> 3rd party sources -> Ad revenue, fill in App ID, Publisher ID and authorize devtodev app.&#x20;

Save settings and enable the integration.

<figure><img src="/files/GehqYjBZyQnyy9AFjKOW" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.devtodev.com/3rd-party-sources/ad-revenue/admob.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
