Hi Jay,
Thanks for providing the screenshot and this really helped me understand what you were referring to.
The
Quality Score you have referenced in your initial post from the third party script is an attribute in the
Keywords Performance Report. However, the
Optimization score you would like to retrieve is defined as an estimate of how well your Google Ads account is set to perform. Along with the score, you’ll see a list of recommendations that can help you optimize each campaign. This is merely a recommendation rather than a attribute or metric from your account performance. Therefore I conclude, this is currently not supported through the Google Ads Scripts. I would also like to inform you that not all things that are offered in the UI is supported via scripts.
Is there any reason why you would like to retrieve the score mentioned via scripts? Do you have too many client accounts that you would like to look at along with this information? I can offer to file a feature request in this regard on your behalf. However, requests are subject for consideration and are not guaranteed to be supported in the Google Ads Scripts any time soon. Kindly confirm if you would like me to proceed with such request and provide a sample use case to the feature.
Let me know your thoughts and if you have questions or other concerns.