Google determines the rankings of search engine ads using a “modified second-price auction system.” This system helps Google determine the cost that advertisers pay to run their ads. Instead of paying the full price, companies only need to pay enough to beat out their closest competitors.