Hal Varian Explains the Google Ad Auction

How Google determines which ad to display in a slot and how much to  charge the advertiser:

(YouTube)