How Do Algorithms Affect Social Media Advertising?