Which two variables are used by the auction to determine which ad will display? pixels, cost-per-click-bid ad type, budget cost-per-click bid, relevancy
Read this post on iappnalysis.com