Google quality score / ad rank
It is determined by ad relevancy, keyword relevancy, landing page quality, ctr and targeted page performance