Code sample for changing ad networks without publishing updates?

I recall reading some of you implementing a server driven selection for ad networks whereby you don’t have to update your apps. Anyone care to share some code on this can be done? Thank you very much.