> 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:

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FKVZNu3a5AYB3Ot7epEOk%2Fimage%20\(1\).png?alt=media\&token=2f403710-636d-4b6b-bf22-452e856129aa)

Enable **AdMob API**:

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2F4p4NLvcqfoU5YZl7D2cK%2Fimage%20\(2\).png?alt=media\&token=70396dca-bb39-4c4f-869f-2ae277a34075)

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

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2Ff7wTlIH9WxMpx59QrWLV%2Fimage%20\(3\).png?alt=media\&token=2f2a37f2-9465-4c39-b6ef-710907bde3e6)

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FZNY0Ct6FzBQFrahEGOwB%2Fimage%20\(4\).png?alt=media\&token=5db04959-d70c-4e96-8f3c-2ca34a683d86)

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FHfejvCikiTS9znFgVv18%2Fimage%20\(5\).png?alt=media\&token=783e132c-beae-4510-8382-08c432f00419)

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;

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FaQjO61CudSgTWyUsk6CI%2Fimage%20\(6\).png?alt=media\&token=4f7f8844-7f4f-42dc-8b9a-34f096cd5d83)

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

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FuYUeTM4FBru0EYdAikdn%2Fimage%20\(7\).png?alt=media\&token=200d8757-49a0-42da-9cc3-f84380e58402)

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

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnGcP_ZeRJ1ipj9O8dF%2F-M7bBPbmwX2HlpGfgjtW%2F-M7bFSBKILKKUozKwt9p%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202020-05-18%20%D0%B2%2013.08.33.png?alt=media\&token=74b56823-a152-4468-a88f-d7fe53bf4822)

Go to the list of your apps and copy App ID

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FCKJkVU39sXlJUUcYmNrk%2Fimage.png?alt=media\&token=f44f7fee-89d3-42cc-b334-881ec0f6cde4)

## 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="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FG9DtPv8nPkxGuUzcIaYe%2Fimage.png?alt=media&amp;token=afaf82a1-c992-4b9e-b067-60cf3de0d20e" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
