# Admob Setup

{% embed url="<https://firebase.google.com/docs/admob/ios/quick-start>" %}

We're basically using the **Rewarded Ads** type inside the project and you can follow this guide to set it up for the project

{% embed url="<https://developers.google.com/admob/ios/rewarded>" %}

Once you get your admob id, you can replace the variables inside the Constants.swift file with your own *ad unit id:*

```
struct Constants {
    static let GoogleAdsAppId = "your_admob_id"
    static let GoogleAdsAppUnitId = "your_admob_unit_id"
}
```

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


---

# 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://tyegah.gitbook.io/crossword-ios/getting-started/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.
