I´m trying to automatically exclude some search terms from my Pmax campaign by using a script, is...

this is what I have found in some AI that I commonly use