Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/How spanner graph detects google ads fraud and abuse
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

How Spanner Graph detects Google Ads fraud and abuse

Source: Google Cloud Blog•November 27, 2026 at 12:06 AM

How Spanner Graph detects Google Ads fraud and abuse

Learn how the Google Ads team uses Spanner Graph to uncover connections between malicious assets before they can harm users or advertisers.

Ever wonder how the Google Ads team keeps the massive system stable and online, despite continuous attempts by hackers to take it down? Part of the answer is using Spanner as its core operational and graph database.

The Google Ads team uses a central graph-based platform to fight fraud and abuse with batch and real-time signals. Built to protect the Google Ads ecosystem and now used by multiple teams across Google, the platform organizes anti-abuse intelligence into a single, interconnected view. Its core mission is simple but critical: uncover hidden connections between malicious assets in real time before they can harm users or advertisers. This blog talks about the challenging modern fraud and abuse landscape, and how Spanner, specifically Spanner Graph, helps Google successfully detect those threats.

The rising cost and sophistication of modern fraud

The need for a graph-based abuse detection platform stems from how the global threat landscape has evolved. Digital advertising fraud and online scams are no longer minor operational nuisances, they are a massive drain on the global economy. According to the NASDAQ Global Financial Crime Report, total global fraud losses are estimated at nearly $580 billion for 2025. Furthermore, global surveys indicate that approximately one in five adults fall victim to scams. In digital ads, fraud and abuse waste marketing spend, corrupt attribution data, and expose everyday users to financial scams, identity theft, and malware.

Bad actors are increasingly leveraging automation and AI to scale deceptive campaigns more efficiently. In 2025 alone, Google blocked or removed more than 8.3 billion policy-violating ads and suspended 24.9 million advertiser accounts. As these tactics evolve, real-time detection becomes more important for protecting businesses and users.

Why stopping modern abuse is so complex

Defending applications from fraud and abuse requires continuously advancing threat detection beyond traditional, point-in-time checks. To do that, modern security systems must address two compounding challenges simultaneously:

  • Fraud and abuse operate as networks: Bad actors hide behind residential proxies and synthetic identities to create deceptive ad campaigns. Each of the attributes like location proxies, account, and identity parameters appear benign in isolation. But behind the scenes, bad actors share payment methods, domains, and accounts, requiring security systems to target entire coordinated clusters of fraud rather than isolated indicators. This is hard to capture with traditional approaches that do not understand the relationship between attributes and evaluates each signal separately.

Fraud and abuse operate as networks: Bad actors hide behind residential proxies and synthetic identities to create deceptive ad campaigns. Each of the attributes like location proxies, account, and identity parameters appear benign in isolation. But behind the scenes, bad actors share payment methods, domains, and accounts, requiring security systems to target entire coordinated clusters of fraud rather than isolated indicators. This is hard to capture with traditional approaches that do not understand the relationship between attributes and evaluates each signal separately.

  • Detection must scale dynamically: As the graph-based abuse detection platform grew, the previous system, based on offline MapReduce batch processing, became bottlenecked. Tracing multi-hop relationships in batch MapReduce required repeated, expensive joins across distributed stages, triggering massive intermediate data expansions, heavy shuffle overhead, and network bottlenecks that caused hours-long latencies and combinatorial fanouts during multi-hop traversals.

Detection must scale dynamically: As the graph-based abuse detection platform grew, the previous system, based on offline MapReduce batch processing, became bottlenecked. Tracing multi-hop relationships in batch MapReduce required repeated, expensive joins across distributed stages, triggering massive intermediate data expansions, heavy shuffle overhead, and network bottlenecks that caused hours-long latencies and combinatorial fanouts during multi-hop traversals.

In critical scenarios like halting live malware campaigns, multi-hour latency gaps leave room for a lot of damage. To block sophisticated fraud rings, Google needed to evaluate multi-hop relationship risks in real time at the time of serving these ads, before malicious content reaches users.

Why Spanner Graph

To overcome the limits of processing at inference time, the engineering team needed a database that could ingest live signals from a large number of sources via pub/sub streams, all while delivering horizontal elasticity, global transactional consistency, and sub-second multi-hop traversals. The solution was to modernize Google's graph-based abuse detection platform for Ads onto Spanner Graph.

Because Ads’ core transactional and entity data already lived in Spanner, they didn’t need to migrate any data in order to adopt Spanner Graph. Rather than standing up a separate, specialized graph database, the team simply defined property graphs directly on top of their existing relational tables.

This delivered several benefits:

  • From hour-long batch jobs to sub-second queries: Spanner Graph co-locates graph traversal computations directly with the underlying distributed data splits to minimize join overhead. Multi-hop traversals that previously took an hour in offline Apache Flume MapReduce jobs now execute on live production data with sub-second to single-digit millisecond latency.

From hour-long batch jobs to sub-second queries: Spanner Graph co-locates graph traversal computations directly with the underlying distributed data splits to minimize join overhead. Multi-hop traversals that previously took an hour in offline Apache Flume MapReduce jobs now execute on live production data with sub-second to single-digit millisecond latency.

  • Zero-ETL adoption in weeks, not months: Because there was no data to move, most graph-based abuse detection use cases transitioned to Spanner Graph within weeks. Layering a graph directly onto existing Spanner tables eliminated fragile synchronization pipelines and redundant storage costs.

Zero-ETL adoption in weeks, not months: Because there was no data to move, most graph-based abuse detection use cases transitioned to Spanner Graph within weeks. Layering a graph directly onto existing Spanner tables eliminated fragile synchronization pipelines and redundant storage costs.

  • Expressive pattern matching with native ISO GQL: Instead of writing and maintaining complex custom traversal code, engineers now query the exact same tables using standard ISO Graph Query Language (GQL), significantly accelerating feature velocity.

Expressive pattern matching with native ISO GQL: Instead of writing and maintaining complex custom traversal code, engineers now query the exact same tables using standard ISO Graph Query Language (GQL), significantly accelerating feature velocity.

How a graph-based abuse detection platform detects fraud

With Spanner Graph, Google's graph-based abuse detection platform for ads performs multi-hop pattern matching directly against operational relational data using ISO GQL. For instance, when an account is flagged for suspicious activity, the platform does real-time traversals to uncover all connected signals across the graph. This allows security systems to identify and disable entire coordinated fraud rings quickly rather than handling individual accounts sequentially.

Here’s how it works. The following query uses full-text keyword search and vector similarity search to traverse connected entities across multiple hops to identify a target entity linked to known suspicious activity. Note that the query is illustrative and the field names have been anonymized.

Impact of adding real-time graph intelligence

Today, the graph-based abuse detection platform operates as a unified, Google-wide defense platform across a live graph of over 500 billion nodes and 1 trillion edges. Further, bringing ability to do multi-hop graph queries to real-time enforcement has fundamentally changed how Google stops abuse, delivering big wins for customers and end users:

  • Safeguarding advertiser budgets: The graph-based abuse detection platform is a primary source of detection signals for ad policy enforcement across Google's ad products. By uncovering the coordinated networks behind click fraud, click farms, and invalid traffic in real time, it stops bad actors, so advertisers don’t waste budget on invalid interactions.

Safeguarding advertiser budgets: The graph-based abuse detection platform is a primary source of detection signals for ad policy enforcement across Google's ad products. By uncovering the coordinated networks behind click fraud, click farms, and invalid traffic in real time, it stops bad actors, so advertisers don’t waste budget on invalid interactions.

  • Defending users against emerging threats: Real-time relationship analysis helps Google catch public-figure impersonation, account takeovers, cloaking, and landing-page malware before campaigns start to scale. During any incident, the graph-based abuse detection platform plays a vital role in tracing the connected assets and rapidly shutting down the attack.

Defending users against emerging threats: Real-time relationship analysis helps Google catch public-figure impersonation, account takeovers, cloaking, and landing-page malware before campaigns start to scale. During any incident, the graph-based abuse detection platform plays a vital role in tracing the connected assets and rapidly shutting down the attack.

  • Stopping repeat financial offenders: By correlating billing, financial, and identity information the platform identifies repeat bad actors and prevents banned offenders from simply spinning up new accounts to evade enforcement.

Stopping repeat financial offenders: By correlating billing, financial, and identity information the platform identifies repeat bad actors and prevents banned offenders from simply spinning up new accounts to evade enforcement.

Graph capabilities for every industry

Google's graph-based abuse detection platform for ads shows what Spanner Graph can deliver under the world’s most demanding scale and latency requirements. Because this unified relational and graph architecture is built directly into Spanner, enterprises across a variety of industries can use the same foundation to solve their own complex pattern-matching and fraud challenges:

  • Advertising and digital media: Ad platforms link cookies, device fingerprints, and click behavior to block coordinated fraud rings in real time. For instance, Google Ads leverages Spanner Graph to analyze relationship risk across a 500-billion-node graph, while Yahoo uses Spanner for their monetization use case.

Advertising and digital media: Ad platforms link cookies, device fingerprints, and click behavior to block coordinated fraud rings in real time. For instance, Google Ads leverages Spanner Graph to analyze relationship risk across a 500-billion-node graph, while Yahoo uses Spanner for their monetization use case.

  • Retail and e-commerce: Retailers connect customer accounts, payments, and shipping data to stop promo abuse and bot networks at checkout. For instance, Target rebuilt its Gift Finder using Spanner Graph and vector search (GraphRAG), cutting maintenance by 50% with sub-10ms latency. Additionally, PayPal uses Spanner Graph for its Customer Graph to unify customer identities across brands.

Retail and e-commerce: Retailers connect customer accounts, payments, and shipping data to stop promo abuse and bot networks at checkout. For instance, Target rebuilt its Gift Finder using Spanner Graph and vector search (GraphRAG), cutting maintenance by 50% with sub-10ms latency. Additionally, uses Spanner Graph for its Customer Graph to unify customer identities across brands.

  • Cybersecurity and threat intelligence: Security teams map network assets, login origins, and access permissions to uncover attack paths and isolate compromised infrastructure during live incidents. Unifying graph queries with relational telemetry in Spanner helps expose proxy networks and automated impersonators before lateral movement occurs.

Cybersecurity and threat intelligence: Security teams map network assets, login origins, and access permissions to uncover attack paths and isolate compromised infrastructure during live incidents. Unifying graph queries with relational telemetry in Spanner helps expose proxy networks and automated impersonators before lateral movement occurs.

  • Financial services and payments: Risk teams correlate billing data and payment instruments to stop synthetic identity rings and fraud. Equifax uses Spanner Graph to map ownership hierarchies across 30 million businesses.

Financial services and payments: Risk teams correlate billing data and payment instruments to stop synthetic identity rings and fraud. Equifax uses Spanner Graph to map ownership hierarchies across 30 million businesses.

Get started

Ready to bring real-time graph intelligence to your operational data at scale?

  • Get hands-on experience with codelabs here and here.

Get hands-on experience with codelabs and .

  • Databases
  • Spanner
  • Security & Identity
  • Spanner
← All articles

What this article says

More in Data & Analytics

All →
What Is Cloud Cost Optimization? Strategies, Best Practices & Tools
New Relic

What Is Cloud Cost Optimization? Strategies, Best Practices & Tools

Kubernetes Cost Optimization: Strategies and Tools to Cut Cloud Spend
New Relic

Kubernetes Cost Optimization: Strategies and Tools to Cut Cloud Spend

What Is Conversational Analytics? How It Works
Alation

What Is Conversational Analytics? How It Works

Prioritize security findings with Datadog Crown Jewels
Datadog

Prioritize security findings with Datadog Crown Jewels

Building trusted intelligence and AI for European institutions: From fragmented data to connected knowledge
Neo4j

Building trusted intelligence and AI for European institutions: From fragmented data to connected knowledge

Neo4j GraphAware Solutions now available in AWS Marketplace
Neo4j

Neo4j GraphAware Solutions now available in AWS Marketplace

More from Looker

DynaPORT modernizes with AlloyDB
Looker

DynaPORT modernizes with AlloyDB

How Sinch migrated from Snowflake to BigQuery to power AI
Looker

How Sinch migrated from Snowflake to BigQuery to power AI

Deploying agents safely in your enterprise
Looker

Deploying agents safely in your enterprise

Enabling zero trust: ALLEN’s move to Chrome Enterprise Premium
Looker

Enabling zero trust: ALLEN’s move to Chrome Enterprise Premium

Google is named a Leader in the 2026 Gartner Magic Quadrant for SIEM
Looker

Google is named a Leader in the 2026 Gartner Magic Quadrant for SIEM

AlloyDB Omni integration with local models
Looker

AlloyDB Omni integration with local models