Google and Facebook, each in their own way, have revolutionized the delivery of advertising based on search and social networking, creating a sort of anti-Spam: targeted, relevant ads that a consumer might actually welcome rather than spurn.