There's really no easy black-and-white answer to this problem I think. While advertising cigarettes with cartoon characters to get kids interested is obviously disgusting, or having doctors promote them, advertising has its place. Remember "Computer Shopper", the huge magazine back in the 80s/90s where the ads were really the main reason to buy it? Those ads were how people back then bought computer components, because there was no other way of learning what was for sale from where, and how much it cost. Of course, the internet (which Computer Shopper helped make popular and accessible) put the magazine out of business eventually, but before the internet revolutionized communications (including advertising), ads like those were essential if you wanted to find products that weren't available in your local retail stores, or were only available at inflated prices.
It'd be nice if there was some kind of advertising industry code of ethics, but I can't imagine how this would develop, since the people in today's ad industry are obviously a bunch of con artists and sociopaths who lack any ethical standards at all.