Find Google Ads Advertisers With Live Campaigns but Zero Impressions

Last updated: November 29, 2026

Quick Overview

Return advertisers that had at least one enabled, in-flight campaign yesterday but served zero impressions across all of their active campaigns that day.

Google
Data Manipulation (SQL/Python)
Data Scientist
Google
November 29, 2026
Data Scientist
Phone Screen
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


Return advertisers that had at least one enabled, in-flight campaign yesterday but served zero impressions across all of their active campaigns that day.

A Google Ads support analytics question: an advertiser paying for live campaigns that serve nothing is a likely ticket or churn risk. The phone screen interviewer checks anti-join patterns (NOT EXISTS or LEFT JOIN with a null check) and that the condition is evaluated per advertiser, not per campaign.

What the Interviewer Expects
  • Define active campaign by status and flight dates for a specific day
  • Express the anti-join at the advertiser level
  • Treat rows with zero impressions the same as missing rows
  • Pin the reporting day in the account's or company's time zone
  • Explain NOT EXISTS versus NOT IN with NULLs
Key Topics to Cover
anti-join
NOT EXISTS
date filtering
ads operations
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you flag campaigns whose impressions fell to zero after serving the day before?
  • What are likely root causes, and which tables would you join to diagnose them?
  • Why can NOT IN return no rows at all here?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

campaigns(campaign_id, advertiser_id, status, start_date, end_date) and impressions_daily(campaign_id, ds, impressions). A campaign is active on a day if it is ENABLED and the day is inside its ...

Approach

Build the set of active campaigns with the day attached. Then keep advertisers for which no active campaign has a positive impression row on that day. NOT EXISTS reads exactly like the requirement a...


Submit Your Answer
Markdown supported