> For the complete documentation index, see [llms.txt](https://tyegah.gitbook.io/crossword-ios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tyegah.gitbook.io/crossword-ios/getting-started/admob-setup.md).

# Admob Setup

To setup Admob, please follow the link from firebase below

{% 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="https://1844968280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpsyTb0ynWHc6WZJ15EoW%2Fuploads%2FFCKkvL1XWopNuxVrTgWa%2FScreenshot%202024-01-30%20at%2021.11.55.png?alt=media&amp;token=5c2d9924-1da4-4097-a77c-33b02e2523d1" alt=""><figcaption></figcaption></figure>
