Advertising, in the modern sense, is, well, modern. You pretty much simply did not have goods to advertise (or the means to advertise them) other than for very specific items -- think classifieds rather than bulk and mass advertising.
The rise of the factory system, of transport networks, and the capacity to create far more of a good than local demand could absorb created the first modern-style advertising in about 1860. The first prominently-featured adverts were the 19th century equivalents of Viagra ads: mostly-ineffective patent medicines.
Hamilton Holt has a delightful contemporary account of this, written (and presented as a lecture, it's short) in 1909, looking back on the previous 50 years or so of publishing history. I cannot recommend it highly enough.
https://archive.org/stream/commercialismjou00holtuoft#page/2...
I don’t know what happened along the road to lead us to the current tracking and spying mess.
New media just outsources all the hard work to Google and other big ad placers. Easier but you lose editorial control over your work.