Changed the key to be a index instead of the ad id