That's basically the same way magazine ads work. If the magazine focused on a particular category most of the ads would be focused on that category too.
For example "Chess Life" mostly contains ads that are irrelevant to everything other than chess. "QST", a ham radio magazine, mostly contains ads that are irrelevant outside of ham radio.
This is what I most often see people here suggesting as the right model for internet advertising.