Google asked Google Ad Manager is a hosted ad management solution that can help you sell, schedule, deliver, and measure all of your directly-sold and network-based inventory.
I tried it, and found that it didn't have nearly as many features as OpenX. OpenX (was phpads) is an open source project that has been managing ads for years. take a look at them too if you are interested in ad management.