> For the complete documentation index, see [llms.txt](https://playground.e107sk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playground.e107sk.com/google-ads-plugin/readme.md).

# jmgooglead

An e107 plugin for adding Google AdSense to your site.

It does two things:

* **Loads the AdSense script** on every page, which is all that is needed for [Auto ads](/google-ads-plugin/usage/auto-ads.md) — Google then decides where the ads go.
* **Manages individual ad units**, if you would rather place ads yourself. Each unit is inserted with a [shortcode](/google-ads-plugin/usage/ad-units.md).

You can use either, or both.

## At a glance

|                   |                                                                                          |
| ----------------- | ---------------------------------------------------------------------------------------- |
| Requires          | e107 2.4, PHP 8                                                                          |
| Admin access      | Main administrator only — see [Permissions](/google-ads-plugin/reference/permissions.md) |
| Script position   | `<head>` or before `</body>`, configurable                                               |
| Ad unit insertion | Shortcode                                                                                |

{% hint style="warning" %}
This plugin stores and outputs raw third-party HTML and JavaScript exactly as you enter it, with no filtering. That is what makes it work — and it is why the admin area is restricted to the main administrator. Read [Permissions](/google-ads-plugin/reference/permissions.md) before granting anyone access.
{% endhint %}
