The main role is played by targeted keywords, ad copy, bidding strategies, landing page experience, and ad extensions.
Once you plan and optimize these components effectively, your ads can appear on the top of Google search pages — even above your competitors.