If you are to redo it all over, I sure hope you won't reinvent the custom ad solution bit again.
You can thank the plethora of open RESTful APIs for that :)
I've just finished implementing the Trafficspaces ad server API and oh boy does it create all sorts of new possibilities.