It's called Facebook Ads, and Google AdWords. Another name for what you seek is "product placement in movies". Yet another is PR.
For instance, looking at the trailer for the new Transporter, one has to wonder how much Audi paid to have that movie made.
And if you look closely at most journalism on the modern web, it is nothing but a thinly veiled ad for a thing.