Query of the Week · Library

DSP-exposed non-buyers

← Back to overview

1 · Business question

Saw a DSP impression but did not buy: for the second wave of a campaign.

2 · Query (SQL)

WITH exposed AS (
  SELECT user_id
  FROM dsp_impressions_for_audiences
  GROUP BY user_id
),
purchased AS (
  SELECT user_id
  FROM amazon_attributed_events_by_conversion_time_for_audiences
  WHERE purchases > 0
  GROUP BY user_id
)
SELECT e.user_id
FROM exposed e
LEFT JOIN purchased p ON e.user_id = p.user_id
WHERE p.user_id IS NULL

3 · Interpretation

DSP targeting.

/en/query-of-the-week/dsp-exposed-non-buyers/