Here is a
solution I was also planning to check out. Let me know if you manage to check the demo if it works as expected.
Question: Once you create your network, how will you be attracting webmasters/advertisers ? There are many networks already and it's pretty hard to top off their CPM/CPC rates.