DEV Community

Xavier Fok
Xavier Fok

Posted on

How Ad Verification Companies Use Proxies at Scale

Ad verification is a multi-billion dollar industry, and proxies are its backbone. Companies like DoubleVerify, IAS, and MOAT use massive proxy networks to verify ads are displayed correctly worldwide. Here is how the industry works and what you can learn from it.

What Is Ad Verification?

Ad verification ensures that digital advertisements:

  • Display correctly — Right creative, right format, right placement
  • Reach the right audience — Proper geographic and demographic targeting
  • Appear in brand-safe environments — Not next to inappropriate content
  • Are viewable — Actually visible to users, not hidden below the fold
  • Are not fraudulent — Real impressions from real users, not bots

Why Ad Verification Needs Proxies

Geographic Verification

An advertiser running campaigns in 50 countries needs to verify ads display correctly in each location. You cannot check a geo-targeted ad in Brazil from an office in New York.

Proxies provide:

  • Exit IPs in every target country
  • City-level targeting for local ad campaigns
  • Mobile IPs to verify mobile ad delivery

Publisher Compliance

Publishers sometimes:

  • Show different ads to verification bots vs real users
  • Place ads in non-viewable positions
  • Stack multiple ads in the same slot
  • Display ads next to prohibited content

Residential and mobile proxies make verification requests indistinguishable from real user traffic.

Fraud Detection

Ad fraud costs the industry billions annually. Proxies help detect:

  • Click farms — Coordinated fake clicks from suspicious IP ranges
  • Domain spoofing — Fake sites pretending to be premium publishers
  • Ad stacking — Multiple ads layered in a single ad slot
  • Pixel stuffing — Ads rendered in 1x1 pixel frames

Ad Verification Proxy Architecture

Ad Campaign Dashboard
        |
        v
Verification Engine
        |
        v
Geo-Distributed Proxy Network
   /    |    |    \\
  US    EU   Asia  LATAM
  |     |    |     |
  v     v    v     v
Publisher Websites
        |
        v
Ad Rendering Analysis
        |
        v
Report Generation
Enter fullscreen mode Exit fullscreen mode

Scale of Operations

Major ad verification companies operate at staggering scale:

  • Millions of proxy IPs across 100+ countries
  • Billions of ad impressions verified monthly
  • Real-time verification within milliseconds of ad display
  • Continuous monitoring 24/7/365

Techniques Used

1. Headless Browser Verification

Render pages in headless browsers through proxies to see exactly what users see:

from playwright import sync_playwright

def verify_ad(url, proxy, expected_ad):
    with sync_playwright() as p:
        browser = p.chromium.launch(
            proxy={"server": proxy}
        )
        page = browser.new_page()
        page.goto(url)

        # Check if expected ad is present
        ad_element = page.query_selector(expected_ad["selector"])

        if ad_element:
            # Verify viewability
            is_visible = ad_element.is_visible()
            box = ad_element.bounding_box()

            return {
                "ad_found": True,
                "viewable": is_visible,
                "position": box,
                "screenshot": page.screenshot()
            }

        return {"ad_found": False}
Enter fullscreen mode Exit fullscreen mode

2. Multi-Device Simulation

Verify ads across device types using different proxy and browser configurations:

  • Desktop + residential proxy
  • Mobile + mobile proxy
  • Tablet + residential proxy
  • Smart TV + datacenter proxy

3. Geographic Sweep

Systematically check ad delivery across all target locations:

def geographic_sweep(ad_url, countries):
    results = {}

    for country in countries:
        proxy = proxy_pool.get_proxy(country=country)
        result = verify_ad(ad_url, proxy, expected_ad)
        results[country] = {
            "ad_displayed": result["ad_found"],
            "correct_creative": result.get("creative_match"),
            "viewable": result.get("viewable"),
            "proxy_ip": proxy.ip,
            "timestamp": datetime.now()
        }

    return results
Enter fullscreen mode Exit fullscreen mode

Lessons for Your Operations

1. Geographic Diversity Matters

Ad verification companies maintain IPs in every country. For your operations, ensure proxy coverage matches your target geographies.

2. Residential IPs Are Essential

Verification companies use residential and mobile IPs because publishers detect and serve different content to datacenter IPs.

3. Scale Requires Automation

At billions of verifications per month, everything is automated. Build automation early, even if you start small.

4. Monitoring Is Non-Negotiable

Every verification request is tracked, measured, and analyzed. Apply the same rigor to your proxy operations.

For ad verification proxy guides and proxy infrastructure tutorials, visit DataResearchTools.

Top comments (0)