Google Ads: Update Shared Negative List
gads_update_shared_listManage the account's shared negative lists in Google Ads: negative keyword lists and placement exclusion lists, which one edit applies to every campaign they are attached to. Call it with no arguments to list them with their sizes and campaigns; with shared_list_id to read one list's members. Creates a list (name plus type), renames one, adds negative keywords to a keyword list or website placements to a placement list, removes members by criterion id, and removes a whole list. Adds skip members the list already holds. Attach a list to a campaign with gads_update_campaign_negatives (attach_shared_list_ids); for a single campaign's own negatives use that tool too.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gads_update_shared_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Without shared_list_id: the name of a new list to create (a list with that name already is reused). With it: the list's new name. | |
| type | No | Type of a new list. NEGATIVE_KEYWORDS (the default) blocks search queries, NEGATIVE_PLACEMENTS blocks websites on the Display and Video networks. | |
| placements | No | Websites to ADD to a NEGATIVE_PLACEMENTS list, as a domain or page URL (example.com, example.com/news), at most 100 per call. | |
| customer_id | No | Google Ads account to change: customer id or exact account name. Required when you have several accounts — the stored default is never used for a change then. | |
| remove_list | No | True removes the whole list from the account, which detaches it from every campaign. Cannot be combined with other changes. | |
| shared_list_id | No | List to read or change. Omit to list every shared list, or to create one with name. | |
| negative_keywords | No | Negative keywords to ADD to a NEGATIVE_KEYWORDS list, at most 100 per call. An entry may be a plain string or an object with a text and a match_type. | |
| remove_criterion_ids | No | Criterion ids of members to take out of the list, as reported by this tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| added | Yes | How many members were added. | |
| lists | Yes | Every shared negative list in the account. | |
| members | Yes | Members of that list. Empty when no single list was read. | |
| removed | Yes | How many members were removed. | |
| skipped | No | What was already in place, and so was not written again. | |
| customerId | Yes | Account the lists belong to. | |
| listCreated | No | True when this call created the list. | |
| listRemoved | No | True when this call removed the list. | |
| membersTotal | No | How many members the list holds; members carries at most 200 of them. | |
| sharedListId | No | The list this call read or changed, if any. |