If you are thinking to code your own advertising network, take a look at my new post: http://www.newagemoney.com/categorized-cpm-is-the-future-of-online-advertising/