Find the exact Sponsored Products search terms burning budget with no sales, then add them as negative keywords through DataDoe Actions - always a dryRun preview first, and a real change only on your explicit approval. The write follow-through to the wasted-spend watchdog. Live from DataDoe, runs in chat. Use for "wasted ad spend", "add negative keywords", "negate search terms", "search terms with no sales", "stop paying for these clicks", or "clean up my PPC".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ppc Negative Keyword Applier?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/deltologic-ppc-negative-keyword-applier)
---
name: ppc-negative-keyword-applier
description: >-
Find the exact Sponsored Products search terms burning budget with no sales, then
add them as negative keywords through DataDoe Actions - always a dryRun preview
first, and a real change only on your explicit approval. The write follow-through
to the wasted-spend watchdog. Live from DataDoe, runs in chat. Use for "wasted ad
spend", "add negative keywords", "negate search terms", "search terms with no
sales", "stop paying for these clicks", or "clean up my PPC".
metadata:
author: DataDoe
check-more-skills-at: https://app.datadoe.com/hub/ai-agents-and-skills
title: PPC Negative Keyword Applier
access: write
category: PPC & Ads
interface: mcp
output: action
---
# PPC Negative-Keyword Applier
Finds the exact Sponsored Products search terms that are burning budget with no
sales, then adds them as negative keywords through DataDoe Actions. It always
runs a `dryRun` first and shows you every change before anything reaches Amazon,
so it is safe to demo and safe to run. MCP-native end to end.
## When to use this
- Your ACoS is creeping up and you suspect junk search terms.
- Weekly PPC cleanup: stop paying for clicks that never convert.
- Right after a launch, when broad/auto campaigns catch a lot of irrelevant traffic.
- Trigger phrases: "wasted ad spend", "negative keywords", "add negatives",
"search terms with no sales", "stop paying for these clicks", "clean up my PPC".
## The framework. Find, confirm, apply
1. **Find** the wasteful terms from performance data (read).
2. **Confirm** the list and the exact match type with the user (nothing is
automatic).
3. **Apply** as negatives via a `dryRun` Action, review the validated payload,
then run for real only on explicit approval.
## What counts as "wasteful" (defaults, tune per user)
A search term is a negative candidate when, over the last 30-60 days:
- `ad_spend` >= 2x your target CPA (or >= the item price if you do not know CPA), AND
- `ad_orders` = 0 (no attributed orders), AND
- `ad_clicks` >= 10 (enough clicks to trust the zero).
Borderline (spend above target CPA but a few orders) -> list separately as "review",
do not auto-negate.
**Starting from a Watchdog hand-off.** When the user hands over terms from
`ppc-wasted-spend-watchdog` (its dead terms and negate bleeders, each with campaign and ad
group ids), use that list as the candidates: skip steps 3-4 and the spend rule above - the
Watchdog applied its own rules, and its negate bleeders have orders by design - and say
which Watchdog run (window, break-even ACoS) the list came from. Still run the own-keyword
guard when the hand-off has no keyword detail (export 3b for those ad groups), the dedupe
(step 5), the live state check (step 5b), the confirmation and the dry run. Applying the
spend rule to a Watchdog list drops most of it (one run: 30 handed-over dead terms at GBP
1.50-7.20 each, below 2x CPA).
**Exclude ASIN-target terms first.** Many "dead" search terms are ASIN strings (e.g.
`b0ch3jb9h1` - a 10-char `B0...` alphanumeric) = deliberate competitor-ASIN targeting,
not junk queries. Filter these out (or list them separately as "ASIN target - review")
before negating, so you don't kill legitimate competitor targeting - they often dominate
the top spenders.
## Configuration
- MCP base: `https://mcp.datadoe.com/mcp/v1`
- Read source: `Search Term Performance (Ads)` - `amazon_ads_search_terms_by_campaign_by_date`
(source id `e94e967198`): `ad_search_term`, `ad_campaign_id`, `ad_group_id`,
`ad_spend`, `ad_clicks`, `ad_orders`, `ad_campaign_type` (+ names), and for the guards
`ad_keyword`, `ad_keyword_id`, `ad_match_type`, `ad_keyword_status`, `ad_campaign_status`.
- **Two guards before anything is proposed as a negative:** (1) **own keyword** - a search
term that equals the ad group's own bid keyword (`lower(trim(ad_search_term)) ==
lower(trim(ad_keyword))` with a positive `ad_match_type` EXACT / PHRASE / BROAD) is never
negated; negating it silently switches off the keyword the seller is paying for. Route it
to `ppc-bid-optimizer-apply` (pause or lower the bid on `ad_keyword_id`). (2) **live
state** - a negative inside a PAUSED or ARCHIVED campaign or ad group validates and does
nothing; confirm state with `AMAZON_ADS_CAMPAIGNS_FIND` / `AMAZON_ADS_AD_GROUPS_FIND`
(`stateFilter.include: ["ENABLED"]`) before the dryRun. The `*_raw` Ads tables are
72-hour snapshots and are only the fallback when FIND is refused because that Action
type is disabled. FIND runs on Read only and Read and write accounts.
- Write action: `AMAZON_ADS_TARGETS_ADD` (negative keyword), gated behind a `dryRun`
step. A negative keyword is `negative: true` + `targetType: "KEYWORD"` +
`targetDetails: { keywordTarget: { keyword, matchType } }`, scoped to a `campaignId` +
`adGroupId`; max **25** targets per action (schema `maxItems: 25`) - batch longer lists
into several actions.
- Dedupe source: `Negative Keywords` - `amazon_ads_negative_keywords` (source id
`36596ff85e`): `ad_campaign_id`, `ad_group_id`, `ad_keyword_text`, `ad_match_type`,
`ad_keyword_state`. Weekly snapshot (`date` = Monday), `requiresDatePeriod: true`; large
(about 34,800 Sponsored Products negatives per snapshot on one UK account), so always
read one snapshot filtered to the candidates' campaigns (step 5). Its
`ad_match_type` is Amazon's reporting name (`NEGATIVE_EXACT` / `NEGATIVE_PHRASE`) - that
is read-side naming only; the ADD payload still uses `EXACT` / `PHRASE` + `negative: true`.
- **Match type is `EXACT` / `PHRASE` / `BROAD`** - never `NEGATIVE_EXACT` /
`NEGATIVE_PHRASE`. The negativity is carried by the separate `negative: true` flag, not
by the match-type value; the live backend rejects `NEGATIVE_*` match types.
- Currency/marketplace: read `marketplace_country_code` for display/currency in the
output only. Do NOT put marketplace in the ADD payload - `AMAZON_ADS_TARGETS_ADD` on
Sponsored Products rejects `marketplaceScope` / `marketplaces`; the `campaignId` /
`adGroupId` already scope the negative to the right marketplace.
- **Prerequisites for a live apply:** the Seller or Vendor must be **Read and write**
(Accounts page), and the `AMAZON_ADS_TARGETS_ADD` Action type must be **enabled**
(Settings > Actions). `AMAZON_ADS_CAMPAIGNS_FIND`, `AMAZON_ADS_AD_GROUPS_FIND`, and
`AMAZON_ADS_TARGETS_FIND` run on Read only and Read and write accounts. A dry run
still validates the write on a Read only account and does not queue it. The find
and preview always run.
## Step-by-step workflow (MCP-native)
### Phase 1 - Find (read)
1. `sellers_and_vendors_list` -> pick the seller, keep `sellerOrVendorId`.
2. `exports_sources_get` (query "search term") -> confirm `amazon_ads_search_terms_by_campaign_by_date` is
`enabled`.
3. Two `exports_create` calls on `amazon_ads_search_terms_by_campaign_by_date`, last
30-60 days, filter `ad_campaign_type = SPONSORED_PRODUCTS`, CSV. **Never export the
ungrouped daily rows and aggregate them yourself:** they run to tens of thousands
(86,082 Sponsored Products rows in 60 days on one UK account) against the 5,000-row CSV
cap, so each term would be judged on whatever fraction of its days fit on the page.
- **(a) Candidates, term grain:** `groupBy ["ad_search_term", "ad_campaign_id",
"ad_group_id"]`, sum `ad_spend`, `ad_clicks`, `ad_orders`, `ad_sales` with distinct
aliases (`spend_sum`, `clicks_sum`, `orders_sum`, `sales_sum`), `having clicks_sum >=
10`, `limit` 5,000; sort by spend in code. If it can exceed one page, do **not** page
with `skip` on spend or term - the backend sorts by one column and none is unique at
this grain, so rows can be read twice or never. Split by ad group instead, as the
Watchdog's step 3a does: a size map (`groupBy ["ad_campaign_id", "ad_group_id"]`,
`countDistinct(ad_search_term)`), whole ad groups packed into chunks of at most 5,000
terms, one export per chunk with `ad_group_id in (...)`; an ad group above 5,000 terms
alone is ordered by `ad_search_term` (unique inside one ad group) and paged with
`skip` from 0. This is the negative's own grain: a negative is added per ad group and
blocks the term for every keyword and target there, so zero orders must hold across
all of them. Never add keyword, status or name columns to this `groupBy` - one term
then splits into one row per matched keyword or target, and a term that converts
through another target looks dead (observed: 0 orders through an ASIN target, 22
through a category target, same ad group).
- **(b) Keyword detail, for the guards only:** `groupBy ["ad_search_term",
"ad_campaign_id", "ad_group_id", "ad_keyword", "ad_keyword_id", "ad_match_type",
"ad_keyword_status", "ad_campaign_status"]` (+ `ad_campaign_name` / `ad_group_name`
for the report), the same sums plus `max(date) as last_seen`, filter `ad_group_id in
(...)` for the candidate ad groups from (a), in chunks of ad groups that each fit one
page (if a chunk returns exactly 5,000 rows, split it - no `skip`, this grain has no
unique order). It returns every term in those ad groups (1,647 rows for three ad groups on one UK
account); to shrink it, also filter `ad_search_term in (...)` for the candidate terms
- the `in` value is a comma-separated list, so a term that itself contains a comma
needs its own `=` filter. Join to (a) on `(ad_campaign_id, ad_group_id,
ad_search_term)`.
4. Poll, download, and apply the wasteful rule above to (a) - dead candidates are the rows
with `orders_sum = 0` and enough spend; rows with spend above CPA and a few orders go to
"review". **Own-keyword guard:** drop every candidate whose normalised term equals
`ad_keyword` on any of its (b) rows with a positive match type - one term can match
several keywords in one ad group (close variants - `trainer cleaning kit` matched both
`trainer cleaning kit` and `trainers cleaning kit`) - and list them under "Excluded: own
keyword - route to bid optimizer" with the `ad_keyword_id` (note "already paused" when
that keyword's latest `ad_keyword_status`, by `last_seen`, is PAUSED). Observed on a UK
account: the top dead term was the exact keyword of its own ad group. Produce the
candidate list with spend, clicks, orders, and the target campaign/ad group ids.
5. **Dedupe against existing negatives** - two exports on `amazon_ads_negative_keywords`
(weekly snapshot, `date` = Monday; it needs a date period):
- **Pick the snapshot first, independent of state:** `from` = 14 days ago, `to` =
today, `groupBy ["date"]`, `count(ad_keyword_id)`, filter `ad_campaign_type =
SPONSORED_PRODUCTS` only - no state filter. The newest `date` returned is the
snapshot. Never choose it from state-filtered rows: a negative paused this week has
no ENABLED row on the newest date, but last week's ENABLED row would survive and
wrongly suppress the candidate as "already negated".
- **Read that snapshot only:** `from` = `to` = that date, filter `ad_campaign_type =
SPONSORED_PRODUCTS` and `ad_campaign_id in (...)` for the candidates' campaigns,
columns `date`, `ad_keyword_id`, `ad_campaign_id`, `ad_group_id`, `ad_keyword_text`,
`ad_match_type`, `ad_keyword_state`, CSV, `orderByColumn ad_keyword_id` - it must be
among the selected columns (the backend rejects the request otherwise with
`FIELD_NOT_FOUND: Order by column ... must be in selected columns, group by, or
aggregations`) and it is unique within one snapshot, so `skip` pages are stable - page
until a page returns fewer rows, then keep the rows with `ad_keyword_state =
ENABLED`. Even filtered to the candidates' campaigns
this can run to thousands of rows (14,965 for 27 campaigns on one UK account - three
CSV pages); dedupe only after reading every page.
Drop every candidate whose lower-cased term already exists for the same `ad_campaign_id`
+ `ad_group_id` (match on `ad_campaign_id` + term alone when `ad_group_id` is null - it
is null for Sponsored Products rows before 2026-07-01). Report the skipped count as
"already negated". The snapshot is weekly, so a negative added in the last few days can
still slip through; if the live ADD then reports a duplicate for that term, treat it as
a no-op, not a failure.
5b. **Live state check (campaign and ad group).** `actions_start`
`AMAZON_ADS_CAMPAIGNS_FIND` with `campaignQuery.adProductFilter.include:
["SPONSORED_PRODUCTS"]`, `campaignIdFilter.include: [<candidate campaign ids>]`,
`stateFilter.include: ["ENABLED"]`, `maxResults: 100`; then `AMAZON_ADS_AD_GROUPS_FIND`
with `adGroupQuery.adGroupIdFilter.include: [<candidate ad group ids>]` and the same
product, state and `maxResults` settings. **Read every page before judging:** poll
`actions_get` until each FIND completes; while the result carries a `nextToken`, start
the same FIND again with that `nextToken` and an otherwise identical query, and collect
the returned ids across all pages. A page holds at most 100 results, and an ID filter
longer than 100 is queried in groups of 100 that page through `nextToken` as well (only
one ID filter per FIND may exceed 100). Only when both FINDs are exhausted: any
candidate whose campaign or ad group is missing from the collected ids is paused or
archived - drop it and list it under "Skipped: campaign / ad group paused". Observed:
a live FIND returned `deliveryReasons: ["AD_GROUP_PAUSED"]` for an ad group holding a
dead term - a negative there would validate and do nothing. Read only access is
enough for these FIND Actions. If FIND is refused because the Action type is
disabled, fall back to `ad_campaign_status` from the export and
`amazon_ads_ad_groups_raw.ad_group_state` (a 72-hour snapshot) and say the check
uses the snapshot. Do not ask for Read and write only to run FIND. Optional: when `ad_keyword` is
empty, `AMAZON_ADS_TARGETS_FIND` with `negativeFilter.include: [false]` and
`keywordFilter: { include: [<term>], queryTermMatchType: "EXACT_MATCH" }` on the ad
group confirms whether a positive keyword with that text exists.
### Phase 2 - Confirm
6. Show the ranked candidate list (most wasted spend first, ASIN-target terms excluded /
flagged) and the total spend it would stop. Ask the user which to negate and at what
match type - `EXACT` is safest (negates only that exact term); `PHRASE` is broader.
The term is negated by `negative: true`; the match type is just `EXACT` / `PHRASE` /
`BROAD`. Do not proceed without a selection.
### Phase 3 - Apply (dryRun, then real)
7. `actions_details_schema_get` for `AMAZON_ADS_TARGETS_ADD` and read the exact
`targetDetails` shape before building the payload.
8. Build one `targets[]` entry per approved term:
```json
{
"campaignId": "<ad_campaign_id>",
"adGroupId": "<ad_group_id>",
"adProduct": "SPONSORED_PRODUCTS",
"state": "ENABLED",
"negative": true,
"targetType": "KEYWORD",
"targetDetails": { "keywordTarget": { "keyword": "<ad_search_term>", "matchType": "EXACT" } }
}
```
`matchType` must be `EXACT` / `PHRASE` / `BROAD` (never `NEGATIVE_*`); the negativity
is the `negative: true` flag. `keywordTarget` is the schema's wrapper key; a flat
`targetDetails: { keyword, matchType }` also validates when `targetType` is set. Max
25 targets per action - split longer lists. Do NOT add `marketplaceScope`
/ `marketplaces` - `AMAZON_ADS_TARGETS_ADD` on Sponsored Products rejects them
("does not support marketplaceScope/marketplaces for SPONSORED_PRODUCTS"); the
`campaignId` / `adGroupId` already scope the negative to the right marketplace.
9. `actions_start type="AMAZON_ADS_TARGETS_ADD"` with **`dryRun: true`**. This validates
the whole batch without touching Amazon (works even if the Action type is disabled) -
confirm `status: VALIDATED, valid: true, actionId: null`.
10. Show the validated result and the before/after list. Only if the user explicitly
approves, call `actions_start` again with `dryRun: false`, poll `actions_get` until it
completes, and report per-term acceptance. Otherwise stop - nothing changed.
## Output format
```
Negative-keyword candidates - {marketplace} - last {N} days{ - from the Watchdog run of {window}, break-even {t}%}
Spend on these terms in the window: {currency}{sum} (past spend the negatives would have blocked){; the negate bleeders among them also had {o} orders / {currency}{sales} of sales, which a negative stops too}
Already negated (skipped): {m} terms (snapshot {date}; {n} existing negatives read)
Excluded: own keyword - route to bid optimizer: {k} terms ({ad_keyword_id}, ...){, {u} removed upstream by the Watchdog}
Skipped: campaign / ad group paused: {p} terms{, {u2} removed upstream by the Watchdog}
# Search term Spend Clicks Orders Campaign / Ad group Match
1 {term} {cur}{v} {n} {o} {campaign} / {group} EXACT (neg) (0 for dead terms; orders shown for negate bleeders)
...
Dry run: {k} targets validated, 0 errors ({b} batches of <= 25).
Reply "apply" to add these negatives for real, or edit the list first.
```
## Worked example (illustrative)
A term with ~€42 spend, ~61 clicks, 0 orders in an auto/discovery campaign: above
2x CPA, zero orders, plenty of clicks -> negative candidate. Proposed as a negative
(`negative: true`) with `matchType: "EXACT"`. Dry run returns `VALIDATED` / `actionId:
null`. On "apply", the negative is added and future spend on that term stops.
## Quality self-check
- Did I only include terms with enough clicks to trust the zero-order signal - or, for a
Watchdog hand-off, use its list as given and still run dedupe, live state and dry run?
- Did I find candidates from the grouped term-grain export (search term + campaign + ad
group), never from ungrouped daily rows truncated at 5,000, and never with keyword or
status columns in that `groupBy` - and if it needed more than one page, in ad-group
chunks rather than `skip` pages on spend?
- Did I select `ad_keyword_id` in the dedupe export, since it is the `orderByColumn`?
- Did I exclude / flag ASIN-target terms (`b0...`) so I don't kill competitor targeting?
- Did I use `matchType: EXACT` / `PHRASE` / `BROAD` + `negative: true` (never `NEGATIVE_*`)?
- Did I keep each negative in its own campaign/ad group (ids from the data)?
- Did I drop terms already present in `amazon_ads_negative_keywords` for that
campaign/ad group - reading only the newest snapshot, picked before any state filter
and filtered to the candidates' campaigns - and report how many I skipped?
- Did I split the batch so no action carries more than 25 targets?
- Did I exclude terms that are the ad group's own bid keyword and route them to the bid
optimizer instead of negating them?
- Did I confirm campaign and ad-group state live (`CAMPAIGNS_FIND` and `AD_GROUPS_FIND`,
ENABLED only) before the dry run? Read only access is enough. Follow `nextToken`
through every page before calling a missing id paused, and skip paused ones.
- Did I run `dryRun`, confirm `VALIDATED` / `actionId: null`, and show it before any real write?
- Did I get explicit approval before `dryRun: false`?
- Is the marketplace / currency right for the output display (it is NOT passed in the
ADD payload)?
## Common mistakes
- Negating a term after 2-3 clicks - too little data, you may kill a converter.
- Aggregating ungrouped daily search-term rows yourself - the export stops at 5,000 rows
(86,082 existed in 60 days on one account), so a term's converting days can fall off the
page and it looks dead. Group by search term, campaign and ad group in the export.
- Treating an id missing from the first FIND page as paused - FIND returns at most 100
results per page; follow `nextToken` with the same query until it runs out.
- Choosing the negatives snapshot after filtering `ad_keyword_state = ENABLED` - last
week's ENABLED row of a negative paused this week survives and suppresses a real
candidate. Pick the newest `date` first, then filter state.
- Adding a negative account-wide instead of to the campaign/ad group that spent.
- Skipping the dry run. Always validate first; you are responsible for writes.
- Confusing search term (what the shopper typed) with keyword (what you bid on) -
you negate the search term.
- Using `NEGATIVE_EXACT` / `NEGATIVE_PHRASE` as the match type - the live backend only
accepts `EXACT` / `PHRASE` / `BROAD`; negativity is the separate `negative: true` flag.
- Negating ASIN-target terms (`b0...` strings) - that's deliberate competitor targeting,
not a junk query.
- Re-adding a negative that already exists - check `amazon_ads_negative_keywords` first;
duplicates waste the 25-target budget and confuse the before/after report.
- Negating a term that is the ad group's own bid keyword - that silences the keyword
without anyone seeing why. Pause or lower it via the bid optimizer instead.
- Adding a negative inside a paused campaign or ad group - it validates and changes
nothing. Confirm state live first; the `*_raw` tables are 72-hour snapshots.
- Trusting the JSON schema alone - always dryRun against the live backend. The schema
still lists `marketplaceScope` / `marketplaces`, but the backend rejects them for
`AMAZON_ADS_TARGETS_ADD` on Sponsored Products (verified by dryRun 2026-10-03:
`EXACT` + `negative: true` -> `VALIDATED`; `NEGATIVE_EXACT` -> "Invalid option";
`marketplaceScope` -> "does not support marketplaceScope for SPONSORED_PRODUCTS").
## Notes
- Write skill. It uses DataDoe Actions and only writes on explicit approval;
`dryRun` covers demos and testing with no live changes.
- A DataDoe skill, built on the DataDoe Search Term Performance source +
`AMAZON_ADS_TARGETS_ADD`.