How can I provide Ads on my application to generate revenue so that I may provide my application for free to users?

I've heard of Admob but have no idea how something like this works. Does anyone have experience with an advertisement company that allows them to earn revenue by showing ads on your application?