The thing is, that's not really true. Developers made it possible for advertisers to insert their adverts into web resources. Advertisers decided to use that power to track users through cookies, tracking pixels, localStorage and various Javascript tricks. Yes, there were no doubt a few developers working for the ad companies, but they are far outweighed by the mass of developers that work for content sites.