Smartly interview question

How does ad delivery work?