The solution isn't better targeting, it's better ads and particularly ones that don't disturb the flow.
So for tv and film you are suggesting product placement. This goes on already. you may notice in some films everyone drives a GM. ford or Toyota for example. The problems is that its harder for advertising standards to police. How do you police a film where the hero only orders a Vodka, gin and vermouth cocktail, naming the ingredients by brand? surely that's associating alcohol with heroism with no "drink responsibly" subtitle to go with it. is it implied that he is a better shot if he uses a gun made by Carl Walther? Surely gun adverts are banned in the UK? maybe a Taylor in Saville Row will pay up for a scene where our protagonist goes to buy a new suit.
adverts need to be clear that what you are watching is an advert.