How Google Ads Detect Which Web Page You Are Viewing
A method for web browsers to identify the correct webpage address to show relevant advertisements, even when the ad code is hidden inside a frame.
Patent Number
US 7136875
Status
Active
Filing Date
February 26, 2003
Grant Date
November 14, 2006
Expiration
~February 2023 (estimated)
Claims
16
Assignee
Google LLC
Inventors
Alexander Paul Carobus, Darrell Anderson, Georges R. Harik, Narayanan Shivakumar, Paul Buchheit, Deepak Jindal, Yingwei Cui, Jeffrey A. Dean
Citations
427 forward · 26 backward
What it covers
This patent describes a way for an ad-serving system to figure out exactly which webpage a user is looking at so it can show relevant ads. When a website loads, it often includes small pieces of code (like JavaScript) that fetch ads. The problem is that these ads might be inside a sub-window called a frame, which can confuse the ad server about the actual page URL. This patent claims a method where the browser runs a comparison check: it looks at the location of the ad code and compares it to the main page URL. If they match, it uses that address; if they don't match or are blocked by security rules, it falls back to the 'referrer' link to find the true page address.
What it doesn't cover
- —Does not cover the actual logic used to select which specific ad to display based on the page content.
- —Does not cover methods of tracking user behavior across different websites or domains.
- —Does not cover server-side ad insertion where the ad is baked into the HTML before the page reaches the browser.
- —Does not cover non-browser applications that do not use URL-based document identifiers.
The clever bit
The innovation is the fallback logic: if the script cannot directly read the main page URL due to browser security restrictions (like cross-origin policies), it intelligently uses the 'referrer' header as a reliable secondary source to identify the page context.
Why it matters
This technology was fundamental to the growth of Google's AdSense program, which allowed publishers to easily monetize their websites. By solving the technical hurdle of 'frame-busting' or identifying content within complex web layouts, it ensured that advertisers could reliably target their ads to the specific content the user was reading. This helped turn the internet into a massive, ad-supported ecosystem.
Real-world examples
- 1.Google AdSense ad units embedded on blogs and news websites
- 2.Third-party ad networks using JavaScript tags to scan page content
Generated by PatentBrief · Not legal advice · patentbrief.org
US 7136875 · 2026