Added adElement variable for keeping track of generated advertising elements.