Michael Recce discusses how advertising works and what algorithms Quantcast uses to analyze large amounts of data in order to find out what people are interested in.
http://www.infoq.com/presentations/Machine-Learning-on-Big-Data-for-Personalized-Internet-Advertising