Well, for movies/tv it's well known they were used to get people to buy wedding rings, cigarettes, and many other things. Not the ads, the actual movie/tv show. When you see some character light up a cigarette with a cool pose IIRC that whole idea was started by the tobacco companies to the point now that most people just seem to assume you show someone smoking to make them appear cool. It's portrayed as cool either because of the way the shot is made the person acts, or because knowing their bad for you clearly this person likes take risks, live dangerously, so they're exciting.
https://smokefreemovies.ucsf.edu/history
https://www.theatlantic.com/international/archive/2015/02/ho...