Dont take me wrong, this is the proper place for asking, but i have 3 times tried to explained to you, that the answer lies here
it is ok, that you do not want to export it to spreadsheet. If you look in the script, you see, that the exporting to shpreasheet is just the very last phase starting with
// Output data to spreadsheet
You wrote, that you just want the the result by the google adwords platform, not spreadsheet. OK, so how you want it? You want to send it to you by e-mail or you want to just write it to the log?
Just before the outputing data to spreadsheet you have the qualityScoreMap variable full of the data you want, so if i would do some print of it, it would look something like
qualityScoreMap => {
0 => {
numKeywords = 123,
totalImpressions = 456,
...
},
1 => {
numKeywords = 423,
totalImpressions = 756,
...
}, ...
9 => {
numKeywords = 823,
totalImpressions = 956,
...
},
}
or e.g. send it to mail like e.g. in this example
So you have a script for doing what you want and you have a script for showing the result to you in whatever way you want.
If you want to mix it up and found some problems, i recommend you to start with the first sript, delete parts you do not need, add the parts from the other scripts, then if it does not work, place it here and we can help you to find the problem. But if you try to create something from scratch with almost no knowledge of script and have errors on every line, it is hard to help you - we would have to write it all from scratch and why we would do it when there is allready a sollution?
All codes are imo self explanatory and again, if you do not understand something of it, we can help you.
You shown the result you want and i have shown you the result of the existing script and it is the same. So probably the only problem as i understand it that you want it some other way. If i am right and you want just the qualityScoreMap in Logger.log and you have a difficulties with it, then let us know. If you need something else, then try to explain a bit more ;)
Tom