The information, which included data about political views and sexual orientation, was shared with thousands of advertisers.