Mediapartners-Google
Reads pages on AdSense and Ad Manager sites so Google can show relevant ads there.
What it does
This crawler visits sites that run Google's ad products and works out what each page is about. It obeys only robots.txt rules that name it.
User agent
Mediapartners-Google
Requests from this crawler contain this token in the User-Agent header. Version numbers change over time. Match on the token Mediapartners-Google rather than the full string.
How to verify it
- Match the tokenThe user agent contains
Mediapartners-Google. - Reverse DNSLook up the host name for the request IP. It must end in
google.com, and a forward lookup of that name must return the same IP. - Check the published IP rangesThe request IP falls inside one of the ranges listed at
developers.google.com/static/crawling/ipranges/special-crawlers.json(opens in a new tab).
These checks come from Google’s own documentation (read it (opens in a new tab)).
Published IP ranges
Verified by IPReveata downloads this list every day and checks each request that claims to be Mediapartners-Google: inside the ranges it is verified, outside it is marked spoofed.
robots.txt
Ignores the global * group; must be named explicitly.
User-agent: Mediapartners-Google Disallow: /
Keeps Mediapartners-Google off every page. Changes take effect the next time it reads your robots.txt, usually within a day.
Signed-in website owners can choose allow or block for every crawler on the Bots page and copy one combined robots.txt. How it works
See which bots and AI tools read your site
Reveata separates crawlers from people and shows which AI answers send real visitors and revenue.