Ad placement based on top three elements