You may refer to this
section of our negative keywords guide to choose which service you wish to use to associate the negative keywords to either the client or manager account level and also to this
section for the sample code. Additionally, in your properties file, if you wish to associate it to a manager account, you will need to specify an MCC account ID as the value of your clientCustomerId. Let me know if this helps.