Google AdSense
Operated by Google
Quick Facts
- User-Agent:
- Mediapartners-Google
- Category:
- Google Bots
- Operator:
- Safety:
- Safe
- Blocking Impact:
- Low - No SEO ranking impact
- SEO Impact Score:
- 2/10
- Official docs:
- developers.google.com
Confirmed by the operator
Google names Mediapartners-Google on its own documentation page, linked above. The token, purpose and robots.txt behaviour on this profile come from that page, re-checked on October 19, 2026.
What is Google AdSense?
Google AdSense is a monitoring and validation agent operated by Google. It checks pages, ad destinations, or policy compliance rather than collecting training data. It has no effect on search rankings.
Google AdSense is a monitoring and validation agent operated by Google. It checks pages, ad destinations, or policy compliance rather than collecting training data. It has no effect on search rankings.
Google AdSense uses the user-agent token Mediapartners-Google. You can control it via robots.txt, meta tags (noai), or the emerging llms.txt standard. Robots.txt is voluntary; for hard enforcement, combine it with server-level IP blocking.
What happens if you block Google AdSense?
How to block Google AdSense with robots.txt
<code>User-agent: Mediapartners-Google</code> - Matching is case-insensitive. Robots.txt is fetched from the root of each subdomain separately.
Is Google AdSense safe to allow?
What does Google AdSense do?
Understanding Google AdSense's purpose helps you decide whether to allow or block it.
- Validates pages, ads, or policy compliance
- Performs automated quality and safety checks
- Does not collect training data
- No impact on search rankings
- Generally safe to allow
Google AdSense in context
Google AdSense is a utility crawler operated by Google. In plain terms, it checks pages for an SEO, uptime or analytics service. Our database files it under Google crawlers and ranks it Tier 3, mid-priority crawlers with a clear purpose but a smaller audience. 20 of the 24 Google crawlers in our database share this tier.
Its safety rating is safe and its blocking impact is not documented. So the decision about Google AdSense rests on what you want from Google, not on its behaviour. How we rate safety and impact.
How site owners treat Google AdSense
Our robots.txt study of the Tranco top 10,000 did not track Mediapartners-Google as a named token, so we do not publish an adoption figure for it. If you run a large site, your own logs are the best evidence of how often it visits.
Does it follow robots.txt?
Google AdSense's operator says it follows robots.txt, so a correctly written Google AdSense group is enough to control it.
Google crawlers and close alternatives
Google AdSense is one of 32 Google crawlers in our database. A User-agent: Mediapartners-Google group controls Google AdSense only; the other Google tokens below need their own lines.
Mediapartners-Google: this crawler (Tier 3)AdsBot-Google: Google Ads Quality (Desktop), checks pages for an SEO, uptime or analytics service (Tier 3)AdsBot-Google-Mobile: Google Ads Quality (Mobile), checks pages for an SEO, uptime or analytics service (Tier 3)APIs-Google: APIs-Google, fetches a page when a person asks an assistant or app to open it (Tier 3)Chrome-Lighthouse: Lighthouse Audit, checks pages for an SEO, uptime or analytics service (Tier 4)FeedFetcher-Google: Google Feed Fetcher, builds a search or answer index (Tier 3)Gemini-Deep-Research: Gemini-Deep-Research, fetches a page when a person asks an assistant or app to open it (Tier 3)Google-Agent: Google Agent (Project Mariner), fetches a page when a person asks an assistant or app to open it (Tier 2)Google-CloudVertexBot: Google Vertex AI, fetches a page when a person asks an assistant or app to open it (Tier 3)
To give Google AdSense the same answer as its siblings, stack User-agent: Mediapartners-Google with their lines above one set of rules; to treat Google AdSense differently, give it its own group.
No other crawler in our Google crawlers category has exactly the same purpose, which makes Google AdSense an unusual case: decide about it on its own merits.
We first recorded Mediapartners-Google on September 22, 2026. Google documents it on developers.google.com, and we recheck that page before each release.
Which rule Google AdSense actually follows
Google AdSense reads exactly one group in robots.txt, the most specific one that names Mediapartners-Google, and never combines rules across groups. This short file shows the trap:
User-agent: *
Disallow: /private/
User-agent: Mediapartners-Google
Disallow: /drafts/
- Find the group. Google AdSense looks for a group naming
Mediapartners-Google. One exists, so it ignoresUser-agent: *completely. - Apply only that group. It is refused
/drafts/and nothing else. - The surprise.
/private/is open to Google AdSense, because that rule lives in the*group it no longer reads. To keep it out of both, repeatDisallow: /private/inside its own group.
Test yourself: does a rule under User-agent: * apply to Google AdSense if the file also has a User-agent: Mediapartners-Google group?
No. Once a group names it, Google AdSense reads only that group. Put every rule you want it to follow inside its own group.
Test yourself: will blocking Google AdSense remove your pages from AI answers?
Often, yes. Google AdSense is a utility crawler, so pages it cannot fetch can drop out of the answers or results it supports.
Test yourself: is User-agent: mediapartners-google the same as User-agent: Mediapartners-Google?
Yes. RFC 9309 makes user-agent matching case-insensitive. Paths are a different story: Disallow: /Blog/ does not block /blog/.
Related: how AI engines choose their sources
Should you allow Google AdSense? Decide by situation
| If you are... | Recommended setting |
|---|---|
| You publish content and want AI answers to cite it | Low stakes either way. It does not decide whether AI answers cite you. |
| You license content and want to stop AI training | Blocking it does not stop training, because Google AdSense is a utility crawler. Block the operator's training crawler instead. |
| You run an online shop | Allow it unless it is overloading your servers. |
| Your server is under load from bots | Rate-limit before blocking. It is rated safe in our database. |
Check Google AdSense on your own site
- Open
/robots.txton your domain and search forMediapartners-Google. If it is not named, it followsUser-agent: *. - List the
Disallowlines in the group Google AdSense follows and test your key URLs against them; the longest match wins, andAllowwins a tie. - Look beyond the file. A firewall or bot manager can refuse Google AdSense even when robots.txt allows it, and that never shows in the file.
- Run our robots.txt AI crawler test to see how Google AdSense and every other crawler we track are treated in one pass, including firewall refusals.
Common mistakes with Google AdSense
The errors we see most often with Google AdSense in the files and firewalls we test:
- Treating Google AdSense as an AI or search crawler. Blocking it has little effect on visibility; decide based on load and what it does with your data.
- Relying on robots.txt alone when Google AdSense is rated caution or aggressive. Back the rule with a server-side block.
- Blocking Google AdSense by IP alone. Ranges change; match the token and verify with logs.
All three hide inside a file that looks correct, so check Google AdSense from outside after every change.
Spotting Google AdSense in your logs
robots.txt says what Google AdSense may do; your access logs show what it actually did.
Count requests
On a server with standard Nginx or Apache logs, this counts matching requests per day (adjust the log path for your host):
grep -iE "Mediapartners-Google" /var/log/nginx/access.log \
| awk '{print $4}' | cut -d: -f1 | sort | uniq -c
And this shows which paths it requested most, which is the quickest way to see whether your Disallow lines are being respected:
grep -iE "Mediapartners-Google" /var/log/nginx/access.log \
| awk '{print $7}' | sort | uniq -c | sort -rn | head -20
Check the requests are genuine
Anyone can send the Google AdSense user-agent, so confirm the source before acting on a match:
Mediapartners-Google: we hold no published IP list, so use reverse DNS where the operator documents a hostname and treat an unverifiable Google AdSense request with caution.
Frequently Asked Questions
What is the official user-agent string for Google AdSense?
Mediapartners-Google. Use this exact string in robots.txt, Nginx, Apache, or Cloudflare firewall rules to target this bot. Matching in robots.txt is case-insensitive. Verify a request genuinely comes from Google AdSense by performing a reverse-DNS lookup on the source IP.Is Google AdSense safe?
Will blocking Google AdSense hurt my SEO?
How do I block Google AdSense in robots.txt?
/robots.txt file:User-agent: Mediapartners-Google Disallow: /
This instructs Google AdSense not to crawl any path on your site. To block only specific sections, replace / with the path (e.g.,
Disallow: /blog/).Does Google AdSense respect robots.txt?
/robots.txt before crawling, following RFC 9309. For hard enforcement, combine robots.txt with server-level IP or user-agent blocking.How do I verify if Google AdSense is crawling my site?
Mediapartners-Google (case-insensitive: grep -i "Mediapartners-Google" /var/log/nginx/access.log). Filter by user-agent in your log analytics tool (GoAccess, AWStats, etc.).