List campaign negative lists
Returns shared negative keyword lists attached to the campaign, separate from campaign-level negative keywords. Google Ads shared negative keyword lists (shared_set type NEGATIVE_KEYWORDS). Reads are cached for 10 minutes; quota exhaustion may return the last successful result for up to 7 days with stale=true. Customer selection is limited to this connection and its account scope.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Google campaign id.
^\d+$Query Parameters
Optional courtesy field. The resolved account or campaign determines support; other platforms return 501.
Value in
- "facebook"
- "instagram"
- "tiktok"
- "linkedin"
- "pinterest"
- "google"
- "twitter"
- "openai"
Response Body
application/json
application/json
application/json
application/json
{ "lists": [ { "id": "1234567890", "resourceName": "customers/9122445560/sharedSets/1234567890", "name": "Excluded searches", "memberCount": 2, "referenceCount": 1 } ], "customerId": "9122445560", "cachedAt": "2026-09-09T10:00:00Z", "stale": false}Replace campaign-level negative keywords
Replaces the FULL set of campaign-level negative keywords (C.270): the desired list is diffed against what Google already has, and the difference is applied as one `create`/`remove` mutate. Send an empty array to clear every campaign negative. The platform is always discovered from the campaign itself; a non-Google campaign returns 501 rather than 404, whether or not `platform` was sent.
Replace campaign negative lists
Sets the full desired set of shared negative keyword list associations on this campaign. Send listIds=[] to detach all negative keyword lists. Only campaign_shared_set links are changed; the lists and their keywords are preserved. Every list must belong to the campaign customer and have type NEGATIVE_KEYWORDS.