Adwords campaign rejected. For Google Matomo javascript is a Malware

100% agreed. The choice should be ours on what software we use on our sites.

Not only the concern about losing the Ad accounts, but what if the search algo decided the sites had malicious software on them and disappeared from the SERPS.

Google should not be allowed to punish the use of alternate software.