It is determined by ad relevancy, keyword relevancy, landing page quality, ctr and targeted page performance...