# Mediapartners-Google: the AdSense crawler

> For the complete documentation index, see [llms.txt](https://attensira.com/llms.txt).
> Every page on this site is also served as Markdown: append `.md` to any URL, or send `Accept: text/markdown`.

> Mediapartners-Google crawls pages that show AdSense ads so the ads match the page. Why a wildcard rule does not reach it, and what blocking it costs.

- Canonical page: https://attensira.com/bots/mediapartners-google
- Family: bots
- Last updated: 2026-10-04
- Author: Karl-Gustav Kallasmaa (https://attensira.com/about)
- Claims as data: https://attensira.com/claims.json?slug=mediapartners-google

**In short:** Mediapartners-Google is Google's AdSense crawler. It visits pages on sites that show AdSense ads so Google can serve ads relevant to the content. It has no documented effect on Google Search or AI answers. Google says it ignores the wildcard robots.txt group, so only a group naming Mediapartners-Google reaches it. Block it only if you have no AdSense.

AI traffic on attensira.com, 30 days to 2026-10-04 (Attensira AI traffic board, n=143,601 requests): no request filed as Mediapartners-Google. User agents as sent, not checked against address lists.

The other advertising bots, with attensira.com's rule for each:

- AdsBot-Google-Mobile: Not reached
- AdsBot-Google: Not reached
- OAI-AdsBot: No named group

## How do I allow or block Mediapartners-Google in robots.txt?

Paste this into the robots.txt at the root of your domain. Only a group that names the token reaches it; your * group does not.

```
# A wildcard group does not reach this agent. Name the token.
User-agent: Mediapartners-Google
Disallow: /members-only/

# Blocking it entirely is an AdSense decision about your own inventory.
```

We do not name Mediapartners-Google, and its operator states it ignores the User-agent: * group, so no rule in our file reaches it. Only a group that names Mediapartners-Google would.

## Who runs Mediapartners-Google, and what is it for?

- robots.txt token: `Mediapartners-Google`
- Operator: Google (https://www.google.com)
- What the fetch is for: Product operations. Visits pages on sites that run AdSense so Google can show ads relevant to them; its rules affect AdSense and Ad Manager. It has no documented effect on Search or AI answers.
- robots.txt: Operator states it ignores the * group; only a group naming it applies
- Operator documentation: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (read 2026-09-04)

## Whose pages does Mediapartners-Google read?

Yours, if you run AdSense. Google documents the crawler as visiting participating sites in order to provide them with relevant ads, and says rules addressed to it affect AdSense and Ad Manager.[^mediapartners-purpose]

That sentence contains the whole decision. This crawl is how a page and an ad slot get matched. Its purpose is not to find you, rank you or learn from you; it reads the page an ad will sit on, on a site that has already chosen to carry ads.

## Is Mediapartners-Google the same as AdsBot-Google?

No. Google documents [AdsBot-Google](/bots/adsbot-google) separately, as affecting Google Ads' ability to check web page ad quality.[^adsbot-separate] The two tokens sit three rows apart in the same table and are constantly conflated.

The clean way to hold them apart is to ask whose page is being read. AdsBot reads an **advertiser's** landing page, to check the quality of a destination someone is paying to send traffic to. Mediapartners-Google reads a **publisher's** page to work out which ads belong on it. Same company, opposite ends of the transaction, and a robots.txt rule aimed at one has no effect on the other.

## How do I verify that a visit really came from Mediapartners-Google?

A user-agent header is free text, so a log line naming Mediapartners-Google is a claim until you check it.

Published IP ranges:

- https://developers.google.com/static/crawling/ipranges/special-crawlers.json

Reverse DNS: look up the accessing IP, confirm the hostname ends in one of these, then forward-look-up that hostname and confirm it returns the same IP.

- `google.com`

A special-case crawler, so it resolves under the rate-limited-proxy mask on google.com rather than googlebot.com, and appears in special-crawlers.json rather than common-crawlers.json.

## Why does a wildcard robots.txt rule not reach it?

Google states that the global user agent (`*`) is ignored for this crawler.[^mediapartners-robots] The reasoning is in Google's framing of the whole special-case category: these are agents operating where there is an agreement between the crawled site and the product. Running AdSense is that agreement.

So the usual sequence (write `User-agent: *` with `Disallow: /`, watch this agent keep arriving, conclude something is impersonating Google) describes documented behaviour. It also means attensira.com's own `Disallow: /api/`, which sits in our `*` group, does not apply to it. If you want it gone from a path, name the token.

## Why do AdSense ads stop fitting the page after a robots.txt cleanup?

Because pages this crawler cannot read are pages AdSense cannot match to an ad, and the failure is silent: no error, no warning, just ads that stop fitting the page they are on. If contextual relevance degraded after someone tidied robots.txt, look for a group naming this token first.

Blocking a members-only area from it is a reasonable narrower move, and the block above shows that shape. The general rules for per-token groups are in [the robots.txt chapter](/guides/ai-crawler-guide/robots-txt-directives).

## Which user-agent headers does it send?

Google publishes two forms: a desktop agent that is the bare string `Mediapartners-Google`, and a mobile agent built from a device string followed by `(compatible; Mediapartners-Google/2.1; +http://www.google.com/bot.html)`.[^mediapartners-strings]

Because the desktop form has no browser shape at all, request filters that expect one discard it. Because it is twenty characters, anything can send it. Both facts argue for the same thing: match the bare token `Mediapartners-Google` case-insensitively for logging, and decide access on a verified address.

## Why does a Googlebot check reject the real AdSense crawler?

It is a special-case crawler, so the Googlebot verification recipe does not apply. Google documents the reverse DNS mask for this category as `rate-limited-proxy-***-***-***-***.google.com` and publishes the ranges in `special-crawlers.json`.[^google-special-verification]

Reverse-resolve the accessing address, confirm the domain, then forward-resolve the hostname and check it returns the same address. An allowlist keyed to `googlebot.com` will reject the real AdSense crawler and admit any forgery that copies the header, which is precisely backwards. The full procedure is in [verifying a crawler](/guides/ai-crawler-guide/verifying-a-crawler).

```
Mediapartners-Google
```

## What does allowing Mediapartners-Google cost?

If your site shows AdSense ads, allowing it is how Google matches those ads to your pages, so blocking it works against your own inventory. If you run no AdSense, it should rarely visit and blocking it changes nothing. Either way it has no documented effect on Google Search or AI answers.

## Should I allow Mediapartners-Google in my situation?

- **Your ads went generic or stopped matching page content after a robots.txt change.** Check whether a rule now names Mediapartners-Google, and restore access to the pages carrying ads. Google describes the AdSense crawler as visiting participating sites in order to provide them with relevant ads. If it cannot read a page, the mechanism that makes an ad relevant to that page has nothing to work from — and the symptom shows up as revenue rather than as an error.

- **You wrote a wildcard disallow to keep every bot out of a members-only area and Mediapartners-Google kept reading it.** Write a group addressed to Mediapartners-Google by name for that path. Google states that the global user agent is ignored for this crawler, so a wildcard group never applied to it. The behaviour you are seeing is documented, and the fix is a named group rather than a stronger wildcard.

- **Your log parser lists a client whose entire user agent is the single word Mediapartners-Google and flags it as malformed.** Accept it, and verify by address rather than by header shape. Google publishes the desktop agent as exactly that bare token, with no Mozilla preamble and no version. Filters that require a browser-shaped header treat it as junk, while a scraper can reproduce those twenty characters trivially — so the header tells you almost nothing in either direction and the reverse-DNS round trip tells you everything.

[^mediapartners-purpose]: Google documents that the Mediapartners-Google crawler visits participating sites in order to provide them with relevant ads, and that crawling preferences addressed to it affect ad-related Google products such as Google AdSense and Google Ad Manager. Source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (retrieved 2026-10-04).
[^adsbot-separate]: Google documents AdsBot-Google as a separate token whose crawling preferences affect Google Ads' ability to check web page ad quality. Source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (retrieved 2026-09-04).
[^mediapartners-robots]: Google documents Mediapartners-Google as the robots.txt user agent token for the AdSense crawler and states that the global user agent (*) is ignored. Source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (retrieved 2026-09-04).
[^mediapartners-strings]: Google publishes Mediapartners-Google's desktop agent as "Mediapartners-Google" and its mobile agent as a device string followed by "(compatible; Mediapartners-Google/2.1; +http://www.google.com/bot.html)". Source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (retrieved 2026-09-04).
[^google-special-verification]: Google documents the special-case crawlers' reverse DNS mask as rate-limited-proxy-***-***-***-***.google.com and publishes their IP ranges in the special-crawlers.json object. Source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (retrieved 2026-09-04).

## FAQ

### What is Mediapartners-Google?

Mediapartners-Google is the AdSense crawler. Google documents crawling preferences addressed to this user agent as affecting Google AdSense, and describes the AdSense crawler as visiting participating sites in order to provide them with relevant ads.

### Does Mediapartners-Google follow robots.txt?

It follows a group addressed to its own token. Google states that the global user agent (*) is ignored for this crawler, so a site-wide wildcard disallow does not stop it.

### What happens if I block Mediapartners-Google?

Google documents preferences for this token as affecting Google AdSense, and describes the crawl as how participating sites get relevant ads. Blocking it is an AdSense decision, taken on your own inventory, and it has no documented effect on Google Search.

## Sources

Each entry below is one claim on this page. `retrieved` is the date the exporter or a human last saw the source say this, and nothing more: it is not a publication date and not a promise of re-verification. `cite` is the anchor on the canonical page where this claim is rendered.

### mediapartners-purpose

Google documents that the Mediapartners-Google crawler visits participating sites in order to provide them with relevant ads, and that crawling preferences addressed to it affect ad-related Google products such as Google AdSense and Google Ad Manager.

- source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (developers.google.com)
- retrieved: 2026-10-04
- cite: https://attensira.com/bots/mediapartners-google#claim-mediapartners-purpose

> The Mediapartners-Google crawler visits participating sites in order to provide them with relevant ads.
### mediapartners-strings

Google publishes Mediapartners-Google's desktop agent as "Mediapartners-Google" and its mobile agent as a device string followed by "(compatible; Mediapartners-Google/2.1; +http://www.google.com/bot.html)".

- source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (developers.google.com)
- retrieved: 2026-09-04
- cite: https://attensira.com/bots/mediapartners-google#claim-mediapartners-strings

> (compatible; Mediapartners-Google/2.1; +http://www.google.com/bot.html)
### mediapartners-robots

Google documents Mediapartners-Google as the robots.txt user agent token for the AdSense crawler and states that the global user agent (*) is ignored.

- source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (developers.google.com)
- retrieved: 2026-09-04
- cite: https://attensira.com/bots/mediapartners-google#claim-mediapartners-robots

> The global user agent (*) is ignored.
### adsbot-separate

Google documents AdsBot-Google as a separate token whose crawling preferences affect Google Ads' ability to check web page ad quality.

- source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (developers.google.com)
- retrieved: 2026-09-04
- cite: https://attensira.com/bots/mediapartners-google#claim-adsbot-separate

> affect Google Ads' ability to check
### google-special-verification

Google documents the special-case crawlers' reverse DNS mask as rate-limited-proxy-***-***-***-***.google.com and publishes their IP ranges in the special-crawlers.json object.

- source: https://developers.google.com/search/docs/crawling-indexing/google-special-case-crawlers (developers.google.com)
- retrieved: 2026-09-04
- cite: https://attensira.com/bots/mediapartners-google#claim-google-special-verification

> The special-case crawlers' reverse DNS mask matches rate-limited-proxy-***-***-***-***.google.com
