Quality Score Impacted by Three Elements:-

Click Through Rate
Ad Relevance
Landing Page Quality