Online advertisers and government agencies use algorithmic tools to tailor and target their campaigns to reach as many people as possible.