The auction is run billion times a month and users finds ads that falls in the category they are looking for. The search engine processes it and fixes the rank positions based on the auction which is again in relation to the cost per click.