Advertising provides information, and that is its clearest benefit. Consumers cannot buy what they do not know exists, so advertising tells them about new products, where to find them, what they cost and how they differ from alternatives. Without it, a superior or cheaper product might never reach the people who would want it, and consumers would waste time searching for things they could have been told about. It also supports the entry of new firms: a newcomer with no reputation has no other way to reach customers, so advertising can be what makes competition against an established brand possible at all.
It can lower prices too. A firm that advertises successfully sells in larger volumes, which spreads fixed costs and allows economies of scale — and where the market is competitive, part of that saving reaches consumers. Advertising also funds newspapers, broadcasting and online services that consumers receive free.
Against that, much advertising is persuasive rather than informative. It associates a product with a lifestyle or feeling rather than telling consumers anything factual, and can encourage purchases people neither needed nor would have wanted — which is a particular concern for demerit goods and for advertising aimed at children.
Advertising is also a cost, and it is included in the price consumers pay. Where two firms advertise mainly to take customers from each other, the spending largely cancels out: market shares end up much as before, and consumers have paid for both campaigns through higher prices without anything being produced.
Most seriously, heavy advertising can raise barriers to entry. A newcomer must spend enormously to be noticed against an established brand, which deters entry, reduces competition and allows incumbents to keep prices higher than they otherwise could. The same activity that helps one entrant compete can, at scale, protect incumbents from all of them.
My judgement is that the answer turns on whether the advertising is informative or purely persuasive. Advertising that tells consumers something true they did not know — that a product exists, what it does, what it costs — makes the market work better, because markets allocate well only when buyers are informed. Advertising that conveys no information and exists only to shift preferences between near-identical products is close to a pure cost, and in the aggregate it mostly cancels out.
In practice the two are mixed in the same campaign, which is why an outright ban would lose the informative benefit along with the waste. The proportionate response is what most countries adopt: require advertising to be truthful, restrict it where the product is harmful or the audience vulnerable, and otherwise leave it alone — because a rule that separates true claims from false ones is enforceable, while one that separates useful persuasion from useless persuasion is not.