No comment on the race aspect of this, but advertisers, marketers, and salespeople have always benefited from making people feel unhappy. It's one reason so many people loathe them.
It's a very simple and common tactic you will see everywhere: Make the customer feel inadequate, then present the product as a solution to their inadequacy. You don't need to directly attack them as inadequate. You can simply present a scene, or situation and let the customer's own insecurities/lizard brain desires fill in the gaps to associate the product with a solution (e.g. a liquor commercial that shows a couple having a great time partying with friends).