In 2005 or 2006, I wrote a document detailing bringing the affiliate game in-house:
http://www.edgeprod.com/traffic-strategy.pdf
The current state of the industry is the natural evolution of that line of thinking, adapted to modern technologies (tubes, etc).