Ads work. These companies wouldn’t spend millions in them otherwise. Consumer behavior is among the most studied psychological phenomenoms in the world. If you show an ad to one person it’s near impossible to tell if it had an effect or not but show it to a thousand people and you’ll see it.