Also, people are much more rational than economists give them credit for. You don't need a new car for transportation. But you may need a psychological boost of self-respect. You may need to feel like those people from the commercial. You may need social status, validation, a lot of other tangible things that economists and software engineers are so quick to label as "stupid"; and buying the car for those reasons is often a very rational and wise thing to do, even if you don't admit the real reasons to yourself.
That's what the law says, and maybe what you believe but there is a lot of scientific evidence to the contrary.
See https://en.wikipedia.org/wiki/Predictably_Irrational and https://www.amazon.com/Influence-Psychology-Persuasion-Rober... for an oversight of (some of) the ways you can be manipulated.
Those decisions are not necessarily rational in the sense that economic theory defines economic actors that always act for their best interest.
Another great resource on the topic is https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow
Most of our decisions are not the result of conscious, deliberate thoughts. Our deliberate selves can be manipulated, but that's our instinct that's the most prone to manipulation.
Advertising is designed to make us act for the benefit of corporations, not necessarily our own benefit. It is nowadays built on the science that I've linked to, and they pour billions of dollars into it because it's so damn effective.
Speaking of phones, status symbols may have been important for survival 10,000 years ago, but they aren't anymore (or much less), and yet we still seek them, and corporations take advantage of that instinct to milk us by selling more and more useless, shiny junk. The ego boost is short-lived though because the next best thing is always around the corner, keeping us on the chronic dissatisfaction treadmill.
I'm not sure it is, it's hardly as if adverts are just lists of facts about the product you are buying. All that changed with Edwards Bernays. When I see an advert on television that is telling me I need to buy a specific model of car to be a good father then I know I'm seeing propaganda.