← Questions

Last-click attribution of conversions to ad clicks

0
UberCodingLast asked May 2026

An ad platform credits each conversion (a purchase, a sign-up) to the last ad the user clicked before converting. Implement the in-memory APIs that record clicks and, when a user converts, return the ad that gets the credit.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 3 credits: each one unlocks a question for good.

Your code and the AI tutor open when you unlock this question.