OpenX is a serious pain in the ass, but seems to be the go-to option. This area is ripe for open source innovation.