Query of the Week · Library

Sponsored ads clickers without purchase

← Back to overview

1 · Business question

Clicked a sponsored ad and did not buy afterwards: users with direct ad contact.

2 · Query (SQL)

WITH clickers AS (
  SELECT user_id
  FROM sponsored_ads_traffic_for_audiences
  WHERE clicks > 0
  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 c.user_id
FROM clickers c
LEFT JOIN purchased p ON c.user_id = p.user_id
WHERE p.user_id IS NULL

3 · Interpretation

DSP targeting or Sponsored Display targeting.

/en/query-of-the-week/sponsored-ads-clickers/