Google · Other

Mediapartners-Google

Identify Mediapartners-Google by its user agent. Check request identity, review robots.txt controls and track visits in Aiola Analytics.

Key facts

User-agent token: Mediapartners-Google
Other: Advertising, link previews, content-use controls and other automation.
Google publishes official IP ranges; verify requests against them.

What Mediapartners-Google is

Mediapartners-Google crawls pages that show AdSense or Ad Manager ads so Google can serve relevant ads. It ignores the global User-agent: * group, so a rule must name Mediapartners-Google, and blocking it affects Google AdSense and Ad Manager. It is not an AI crawler.

In Aiola's taxonomy, Other means advertising, link previews, content-use controls and other automation.

Mediapartners-Google user agent

Look for the match token inside the complete HTTP User-Agent header. Tokens can be spoofed, so use the network checks below for authentication.

Full example User-Agent
Mediapartners-Google
Case-insensitive match token
Mediapartners-Google

Official IP ranges

Google publishes an official IP range list. This cached snapshot contains 272 CIDR prefixes, last fetched 2026-11-29. Open the live source

Official IP range snapshot
2001:4860:4801:2008::/64
2001:4860:4801:200c::/64
2001:4860:4801:200d::/64
2001:4860:4801:2010::/64
2001:4860:4801:2011::/64
2001:4860:4801:2012::/64
2001:4860:4801:2013::/64
2001:4860:4801:2014::/64
2001:4860:4801:2015::/64
2001:4860:4801:2016::/64
2001:4860:4801:2017::/64
2001:4860:4801:2018::/64
2001:4860:4801:2019::/64
2001:4860:4801:201a::/64
2001:4860:4801:201b::/64
2001:4860:4801:201c::/64
2001:4860:4801:201d::/64
2001:4860:4801:201e::/64
2001:4860:4801:201f::/64
2001:4860:4801:2020::/64
2001:4860:4801:2021::/64
2001:4860:4801:2022::/64
2001:4860:4801:2023::/64
2001:4860:4801:2024::/64
2001:4860:4801:2025::/64
2001:4860:4801:2026::/64
2001:4860:4801:2027::/64
2001:4860:4801:2028::/64
2001:4860:4801:2029::/64
2001:4860:4801:202a::/64
2001:4860:4801:202b::/64
2001:4860:4801:202c::/64
2001:4860:4801:202d::/64
2001:4860:4801:202e::/64
2001:4860:4801:202f::/64
2001:4860:4801:2030::/64
2001:4860:4801:2031::/64
2001:4860:4801:2032::/64
2001:4860:4801:2033::/64
2001:4860:4801:2034::/64
2001:4860:4801:2035::/64
2001:4860:4801:2036::/64
2001:4860:4801:2037::/64
2001:4860:4801:2038::/64
2001:4860:4801:2039::/64
2001:4860:4801:203a::/64
2001:4860:4801:203b::/64
2001:4860:4801:203c::/64
2001:4860:4801:203d::/64
2001:4860:4801:203e::/64
2001:4860:4801:203f::/64
2001:4860:4801:2040::/64
2001:4860:4801:2041::/64
2001:4860:4801:2042::/64
2001:4860:4801:2043::/64
2001:4860:4801:2044::/64
2001:4860:4801:2045::/64
2001:4860:4801:2046::/64
2001:4860:4801:2047::/64
2001:4860:4801:2048::/64
2001:4860:4801:2049::/64
2001:4860:4801:204a::/64
2001:4860:4801:204b::/64
2001:4860:4801:204c::/64
2001:4860:4801:204d::/64
2001:4860:4801:204e::/64
2001:4860:4801:2050::/64
2001:4860:4801:2051::/64
2001:4860:4801:2052::/64
2001:4860:4801:2053::/64
2001:4860:4801:2054::/64
2001:4860:4801:2055::/64
2001:4860:4801:2056::/64
2001:4860:4801:2060::/64
2001:4860:4801:2061::/64
2001:4860:4801:2062::/64
2001:4860:4801:2063::/64
2001:4860:4801:2064::/64
2001:4860:4801:2065::/64
2001:4860:4801:2066::/64
2001:4860:4801:2067::/64
2001:4860:4801:2068::/64
2001:4860:4801:2069::/64
2001:4860:4801:206a::/64
2001:4860:4801:206b::/64
2001:4860:4801:206c::/64
2001:4860:4801:206d::/64
2001:4860:4801:206e::/64
2001:4860:4801:206f::/64
2001:4860:4801:2070::/64
2001:4860:4801:2071::/64
2001:4860:4801:2072::/64
2001:4860:4801:2073::/64
2001:4860:4801:2074::/64
2001:4860:4801:2075::/64
2001:4860:4801:2076::/64
2001:4860:4801:2077::/64
2001:4860:4801:2078::/64
2001:4860:4801:2079::/64
2001:4860:4801:207a::/64
2001:4860:4801:207b::/64
2001:4860:4801:207c::/64
2001:4860:4801:207d::/64
2001:4860:4801:207e::/64
2001:4860:4801:207f::/64
2001:4860:4801:2080::/64
2001:4860:4801:2081::/64
2001:4860:4801:2082::/64
2001:4860:4801:2083::/64
2001:4860:4801:2084::/64
2001:4860:4801:2085::/64
2001:4860:4801:2086::/64
2001:4860:4801:2087::/64
2001:4860:4801:2088::/64
2001:4860:4801:2090::/64
2001:4860:4801:2091::/64
2001:4860:4801:2092::/64
2001:4860:4801:2093::/64
2001:4860:4801:2094::/64
2001:4860:4801:2095::/64
2001:4860:4801:2096::/64
2001:4860:4801:2097::/64
2001:4860:4801:20a0::/64
2001:4860:4801:20a1::/64
2001:4860:4801:20a2::/64
2001:4860:4801:20a3::/64
2001:4860:4801:20a4::/64
2001:4860:4801:20a5::/64
2001:4860:4801:20a6::/64
2001:4860:4801:20b0::/64
2001:4860:4801:20b1::/64
2001:4860:4801:20b2::/64
2001:4860:4801:20b3::/64
2001:4860:4801:20b4::/64
2001:4860:4801:20b5::/64
2001:4860:4801:20b6::/64
108.177.2.0/27
108.177.2.128/27
108.177.2.160/27
108.177.2.192/27
108.177.2.224/27
108.177.2.32/27
108.177.2.64/27
108.177.2.96/27
192.178.16.0/27
192.178.16.128/27
192.178.16.160/27
192.178.16.192/27
192.178.16.224/27
192.178.16.32/27
192.178.16.64/27
192.178.16.96/27
192.178.17.0/27
209.85.238.0/27
209.85.238.128/27
209.85.238.160/27
209.85.238.192/27
209.85.238.224/27
209.85.238.32/27
209.85.238.64/27
209.85.238.96/27
66.249.87.0/27
66.249.87.128/27
66.249.87.160/27
66.249.87.192/27
66.249.87.224/27
66.249.87.32/27
66.249.87.64/27
66.249.87.96/27
66.249.89.0/27
66.249.89.128/27
66.249.89.160/27
66.249.89.192/27
66.249.89.224/27
66.249.89.32/27
66.249.89.64/27
66.249.89.96/27
66.249.90.0/27
66.249.90.128/27
66.249.90.160/27
66.249.90.192/27
66.249.90.224/27
66.249.90.32/27
66.249.90.64/27
66.249.90.96/27
66.249.91.0/27
66.249.91.128/27
66.249.91.160/27
66.249.91.192/27
66.249.91.224/27
66.249.91.32/27
66.249.91.64/27
66.249.91.96/27
66.249.92.0/27
66.249.92.128/27
66.249.92.160/27
66.249.92.192/27
66.249.92.224/27
66.249.92.32/27
66.249.92.64/27
66.249.92.96/27
72.14.199.0/27
72.14.199.128/27
72.14.199.160/27
72.14.199.192/27
72.14.199.224/27
72.14.199.32/27
72.14.199.64/27
72.14.199.96/27
74.125.148.0/27
74.125.148.128/27
74.125.148.160/27
74.125.148.192/27
74.125.148.224/27
74.125.148.32/27
74.125.148.64/27
74.125.148.96/27
74.125.149.0/27
74.125.149.128/27
74.125.149.160/27
74.125.149.192/27
74.125.149.224/27
74.125.149.32/27
74.125.149.64/27
74.125.149.96/27
74.125.150.0/27
74.125.150.128/27
74.125.150.160/27
74.125.150.192/27
74.125.150.32/27
74.125.150.64/27
74.125.150.96/27
74.125.151.0/27
74.125.151.128/27
74.125.151.160/27
74.125.151.192/27
74.125.151.224/27
74.125.151.32/27
74.125.151.64/27
74.125.151.96/27
74.125.216.0/27
74.125.216.128/27
74.125.216.160/27
74.125.216.192/27
74.125.216.224/27
74.125.216.32/27
74.125.216.64/27
74.125.216.96/27
74.125.217.0/27
74.125.217.128/27
74.125.217.160/27
74.125.217.192/27
74.125.217.224/27
74.125.217.32/27
74.125.217.64/27
74.125.217.96/27
74.125.218.0/27
74.125.218.128/27
74.125.218.160/27
74.125.218.192/27
74.125.218.224/27
74.125.218.32/27
74.125.218.64/27
74.125.218.96/27
74.125.219.0/27
74.125.219.128/27
74.125.219.160/27
74.125.219.192/27
74.125.219.224/27
74.125.219.32/27
74.125.219.64/27
74.125.219.96/27

Verify a Mediapartners-Google request

For Mediapartners-Google, compare the source IP from your trusted edge or server against Google’s current published prefixes.

Test one CIDR in Python (replace REQUEST_IP)
python3 -c 'import ipaddress; print(ipaddress.ip_address("REQUEST_IP") in ipaddress.ip_network("2001:4860:4801:2008::/64"))'

Test every current prefix in the vendor feed and re-fetch it regularly. This cached snapshot is evidence of publication, not a permanent firewall list.

Control Mediapartners-Google with robots.txt

Google documents crawler controls for this bot family. Robots.txt can direct cooperative crawling, but it cannot prove that a request is authentic.

Allow Mediapartners-Google
User-agent: Mediapartners-Google
Allow: /
Block Mediapartners-Google
User-agent: Mediapartners-Google
Disallow: /

Read official crawler documentation

Aiola Analytics

See every Mediapartners-Google visit on your site

Aiola tracks 124 AI, search and link-preview crawlers next to your human traffic, revenue and errors. See when Mediapartners-Google arrives, which pages it requests and which requests fail. Then ask a coding agent in the same app to fix those pages. Track Mediapartners-Google visits with AI crawler analytics.

Aiola Analytics showing AI crawler visits by bot and page

Common questions

Everything your agents need, in one app

Errors, user feedback, GitHub and analytics live next to your coding agents. Every issue becomes a task an agent can take.