<-- Back to All News

How Spanner Graph detects Google Ads fraud and abuse

Publish Date: November 23, 2026

Executive Overview

Modern digital advertising platforms, financial networks, and e-commerce ecosystems face relentless attacks from coordinated, automated fraud rings that rapidly spin up interconnected accounts, payment instruments, domains, and device fingerprints to evade static defenses. Historically, uncovering hidden multi-hop connections across billions of entities required batch MapReduce pipelines that executed repeated, expensive relational joins—triggering massive data shuffles and multi-hour detection latencies that allowed live malware campaigns or financial abuse to cause damage before enforcement occurred. On November 21, 2026, Google Cloud published a technical deep dive revealing how the Google Ads Trust & Safety team modernized its global abuse detection platform onto Spanner Graph, evaluating relationship risk in real time across a 500-billion-node graph at the exact moment ads are served.

In 2025 alone, Google blocked or removed more than 8.3 billion policy-violating ads and suspended 24.9 million advertiser accounts. By defining property graphs directly atop existing operational relational tables in Spanner—without standing up or synchronizing a separate specialized graph database—Google Ads engineers query multi-hop relationships using standard ISO Graph Query Language (GQL) combined with full-text search and vector similarity search in sub-second latency, stopping repeat bad actors before malicious content ever reaches users.

Features

Spanner Graph integrates native property graph traversal directly within Spanner’s globally distributed operational database engine.

  • Zero-ETL Property Graphs Defined Directly on Relational Tables: Rather than extracting operational records into a standalone graph database, engineering teams define property graph schemas (nodes and edges) directly on top of existing Spanner relational tables—eliminating ETL duplication, storage overhead, and synchronization lag between transactional state and graph analytics.
  • Multi-Billion-Node Real-Time Graph Traversal at Serving Latency: Proven in production at Google Ads scale across a 500-billion-node graph, Spanner Graph executes low-latency multi-hop relationship traversals inline during live ad serving and account onboarding, replacing batch MapReduce jobs that previously suffered multi-hour shuffle latencies.
  • Native ISO Graph Query Language (GQL) Pattern Matching: Engineers express complex multi-hop path patterns and cycle detections using declarative, standards-compliant ISO GQL queries rather than maintaining brittle custom imperative traversal code—accelerating detection rule velocity.
  • Unified Graph, Full-Text, and Vector Similarity Search (GraphRAG): Within a single Spanner query, risk models combine multi-hop graph path matching with full-text keyword search and vector similarity embeddings to uncover obfuscated entity links across billing profiles, payment instruments, device fingerprints, and ad creatives.
  • Globally Distributed Strong Consistency and Horizontal Scale: Built on Spanner’s distributed architecture, graph updates from live account creations, billing changes, and enforcement actions are immediately consistent across global regions without manual sharding.
Benefits

Consolidating operational transactions and massive-scale graph detection inside Spanner Graph delivers decisive security, architectural, and economic advantages.

  • Compression of Fraud Detection Latency from Hours to Milliseconds: Evaluating multi-hop relationship risk inline at serving time neutralizes coordinated malware and fraud rings before malicious ads or fraudulent transactions execute.
  • Elimination of Separate Graph Database Silos and ETL Pipelines: Running ISO GQL queries directly over existing Spanner operational tables removes duplicate storage costs, complex change-data-capture (CDC) pipelines, and eventual-consistency blind spots.
  • Accelerated Risk Engineering Velocity: Replacing custom distributed traversal code with declarative ISO GQL statements allows trust, safety, and fraud teams to author and deploy new multi-hop detection patterns rapidly as adversary tactics evolve.
  • Unified Multi-Modal Entity Resolution: Combining structured relational attributes, graph topology, full-text search, and vector embeddings in one engine uncovers sophisticated synthetic identity rings that evade single-dimension rules.
Use Cases

Spanner Graph’s converged operational and graph architecture powers real-time relationship intelligence across major enterprise industries.

  • Digital Advertising and Media Abuse Prevention: Ad networks and digital platforms link cookies, device fingerprints, domains, and click behavior across hundreds of billions of nodes—as demonstrated by Google Ads and Yahoo—to block coordinated fraud rings in real time.
  • Financial Services and Payment Synthetic Identity Detection: Banks and payment processors correlate billing profiles, shared payment instruments, and corporate ownership hierarchies—such as Equifax mapping 30 million business entities—to stop repeat financial offenders and synthetic identity rings.
  • Retail and E-Commerce Checkout Fraud and GraphRAG Discovery: Retailers connect customer accounts, shipping addresses, and payment methods to block promo abuse and bot networks at checkout, while powering low-latency GraphRAG recommendations—such as Target rebuilding its Gift Finder with Spanner Graph and vector search to cut maintenance by 50% at sub-10ms latency.
  • Cybersecurity Attack Path and Lateral Movement Analysis: Security teams unify network asset inventories, login origins, and IAM permissions in Spanner Graph to expose proxy networks, automated impersonators, and multi-hop privilege escalation paths during live incidents.
Alternatives

Data and security architects evaluating large-scale graph databases and real-time fraud detection platforms compare several competing technologies.

  • Dedicated Native Graph Databases (Neo4j / Amazon Neptune): Purpose-built graph engines offer rich graph algorithms and traversal capabilities. However, deploying a separate graph database alongside an operational relational store forces teams to build continuous ETL synchronization pipelines, pay for duplicate storage, and manage cross-database consistency—whereas Spanner Graph runs directly over live Spanner relational tables at planet scale.
  • Batch Distributed Graph Processing (Apache Spark GraphX / Batch MapReduce): Batch graph frameworks process large historical graphs offline, but suffer from heavy shuffle overhead and multi-hour latencies that cannot block live fraudulent transactions or malicious ad impressions at serving time.
  • In-Memory Caching + Recursive SQL Common Table Expressions (CTEs): Engineering teams sometimes attempt multi-hop traversals using recursive SQL CTEs on traditional relational databases. Recursive relational joins degrade exponentially in latency beyond two or three hops on multi-billion-row tables compared to native ISO GQL execution in Spanner Graph.
  • Point-Solution Fraud Scoring SaaS APIs: Third-party anti-fraud vendors provide turnkey risk scores for standard e-commerce payments, but lack customizable schema modeling over proprietary enterprise entity graphs and cannot unify operational transactions with custom GraphRAG applications.
An Alternative Perspective

A thorough architectural evaluation requires examining the graph modeling disciplines, supernode fanout considerations, and workload isolation practices associated with planet-scale property graphs.

First, even on a globally distributed engine like Spanner Graph, poorly modeled high-degree “supernodes” (such as a shared public IP address, popular mobile carrier gateway, or common corporate domain linked to millions of accounts) can create massive traversal fanouts during multi-hop GQL queries. Graph architects must carefully design edge filtering predicates, hop depth limits, and hub-node exclusions so real-time serving queries remain strictly bounded within sub-10ms latency budgets.

Second, executing complex multi-hop graph traversals and vector similarity searches directly atop live OLTP tables couples analytical risk scoring with core transactional throughput. While Spanner’s architecture handles mixed workloads gracefully, high-volume fraud evaluation queries should leverage Spanner read-only replicas or dedicated compute capacity isolation so sudden bot attacks triggering intense graph scans do not contend with primary transactional write latency.

Finally, realizing the full value of Spanner Graph requires disciplined entity resolution and schema design upfront. Defining clean node keys and typed edge tables over legacy denormalized relational schemas demands thoughtful data modeling to avoid duplicate entity fragmentation across the graph.

Final Thoughts

Google Ads’ deployment of Spanner Graph across a 500-billion-node fraud detection graph demonstrates the power of converging operational databases with native property graph and vector intelligence. By eliminating batch MapReduce delays and external graph database silos in favor of real-time ISO GQL queries directly over live Spanner tables, Google Cloud proves that planet-scale relationship intelligence can operate inline at serving speed.

For chief data officers, trust and safety leaders, and database architects across finance, retail, cybersecurity, and digital media, Spanner Graph provides a unified foundation for real-time Systems of Action. Organizations that pair clean property graph modeling with bounded traversal design will uncover hidden threats and deliver intelligent, low-latency applications at global scale.

Source

https://cloud.google.com/blog/products/databases/how-spanner-graph-detects-google-ads-fraud-and-abuse/