# Amazon Ads Search Term Audit — Sponsored Products PPC (`natstandridge/amazon-ads-search-term-audit`) Actor

Turn a seller-exported Sponsored Products search-term summary CSV into a ranked review queue for zero-purchase spend, high ACoS and potential target harvesting. No Ads login or external requests. Pay only for delivered recommendations.

- **URL**: https://apify.com/natstandridge/amazon-ads-search-term-audit.md
- **Developed by:** [Nathaniel Standridge](https://apify.com/natstandridge) (community)
- **Categories:** Marketing, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$50.00 / 1,000 delivered amazon ads search-term reviews

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Amazon Ads Search Term Audit — Sponsored Products PPC

Amazon sellers and PPC agencies can review a Sponsored Products search-term report each week to find terms worth investigating. Paste an **Amazon Ads seller Search term report** downloaded with the **Summary** time unit from unified Reporting or the legacy report center. The Actor groups rows by campaign, ad group, and customer search term, then returns a ranked review queue:

- **No attributed purchases:** enough clicks and spend, but zero purchases in the selected report window.
- **High ACoS:** spend divided by attributed sales exceeds your target ACoS.
- **Harvest review:** a term with at least your minimum purchases and ACoS at or below 75% of your target may deserve dedicated targeting.

Every row is a **manual review prompt**. The Actor does not alter bids or negative targets, estimate guaranteed savings, or decide whether a term is profitable. Check product margin, attribution, campaign goals, existing targets, and search relevance before acting. Amazon's search-term report includes terms with at least one ad click; zero-click searches are not available here.

### One complete workflow

1. In Amazon Ads, open **Measurement and Reporting → Reporting**, choose the **Search term** template, filter to **Sponsored Products** and one seller advertiser account, then download a **Summary** report in one currency. Choose a period ending at least eight UTC days ago so seven-day purchase attribution has time to mature.
2. Paste the CSV text into `reportCsv`. Set `targetAcosPercent` to your own margin and advertising goal, then set minimum clicks, spend, and purchases to avoid tiny samples.
3. Review the dataset in order. Check `OUTPUT` for source row count, groups analyzed, report maturity, delivery count, and result truncation. Export the dataset to a spreadsheet or automation queue if useful.

[Unified Reporting example input](examples/unified-input.json) and [legacy example input](examples/input.json) use invented kitchen-product data. The default form contains the unified-format sample. Each input produces three review rows under the default thresholds; the linked [example dataset](examples/output.json) and [summary](examples/summary.json) correspond to the legacy input. The unified sample omits targeting columns, so its `targetingCount` is zero.

### Input and output

Unified Reporting CSVs need `Campaign name`, `Ad group name`, `Search term`, `Clicks`, `Total cost`, `Sales`, `Purchases`, `Budget currency` (or `Campaign currency code`), and `Date range`. The `Date range` cell must contain two English month-day-year dates such as `Oct 1, 2026 - Oct 14, 2026`; keep its quotes in CSV because the dates contain commas. An `Ad product` column, if present, must say `Sponsored Products` on every row. If `Advertiser account ID` is present, every row must use the same ID. `Targeting` and `Targeting match type` are optional; the standard Search term template may omit them.

Legacy seller CSVs remain supported with `Campaign Name`, `Ad Group Name`, `Customer Search Term`, `Clicks`, `Spend`, `Sales`, `Purchases`, `Currency`, `Start Date`, and `End Date`. The legacy seller `7 Day Total Sales` and `7 Day Total Orders (#)` headers are also accepted. Both formats require one report period and currency. Other columns are ignored and never copied to output. Vendor 14-day reports, daily reports, mixed date columns or periods, mixed currencies or account IDs when present, non-Sponsored-Products rows when identified, duplicate source rows, and incomplete or malformed metrics are rejected without a dataset charge. If `Ad product` or `Advertiser account ID` is absent, the Actor cannot verify the selected product or account.

One dataset row contains the campaign, ad group, term, review category and guidance, aggregated clicks, spend, attributed sales and purchases, ACoS and ROAS, report period, and source-row count. Search terms that look like ASINs are labeled `asin`. Text beginning with `=`, `+`, `-`, or `@` receives an apostrophe in the output to reduce spreadsheet formula injection risk; `formulaEscaped` marks that change. The original report text is not echoed to logs, output, or the dataset.

The Actor accepts at most **2 MiB UTF-8 CSV, 20,000 data rows, and 100 delivered recommendations**. It makes no external network requests to Amazon or another data source. Input and output are stored by Apify as part of the Actor run; supply only account data you are authorized to process, and do not include personal data. No Ads API key or seller login is needed.

### Billing and limits

Pay **$0.05 per delivered recommendation dataset row**. No startup charge. The default 20-row limit costs at most **$1.00** when all 20 rows are delivered. A report with no qualifying recommendations, an empty CSV with headers, a recent report with immature attribution, or invalid input produces no charged recommendation rows. If a run charge limit stops delivery, `OUTPUT` reports `incomplete` and the exact number delivered; only delivered rows are charged. `maxRecommendations` caps rows, and `truncatedByResultLimit` reports whether more qualifying groups existed.

Seller sales and purchases in the report use seven-day post-click attribution. For a recent report, this Actor returns a free `recent_report` summary and no recommendation rows. Even after eight days, later reporting corrections remain possible. ACoS is **spend ÷ attributed sales × 100** and ROAS is **attributed sales ÷ spend**, using the seller's reported currency and attribution. This is not total advertising cost of sales or a whole-account profit calculation.

Amazon's [Sponsored Products search-term report documentation](https://advertising.amazon.com/help/G3HEFZYWZF84NPS9) defines the report, metrics, available time units, and 65-day lookback. Amazon [documents the unified Reporting migration](https://advertising.amazon.com/help/GK3JZZE5QLTF8U8A) and its [standardized dimension names](https://advertising.amazon.com/help/G9GZFET7Q5EN4LBR). The Actor analyzes a user-supplied export only; it cannot confirm whether the export itself is complete, current, or from the intended account.

# Actor input Schema

## `reportCsv` (type: `string`):

Paste a Sponsored Products seller Search term CSV from Amazon Ads unified Reporting. Use Summary time unit, one advertiser account, one currency and one date range. Unified columns: Campaign name, Ad group name, Search term, Clicks, Total cost, Sales, Purchases, Budget currency, Date range. Legacy seller Start Date/End Date and field names remain accepted. Maximum 2 MiB UTF-8 and 20,000 data rows. Do not include personal data.

## `targetAcosPercent` (type: `number`):

Advertiser's review threshold, not an assumed profit margin. High ACoS means spend/sales is above this value; harvest review requires at most 75% of it.

## `minSpend` (type: `number`):

Only review groups spending at least this amount in the report currency.

## `minClicks` (type: `integer`):

Only review groups with at least this many clicks in the report window.

## `minPurchasesForHarvest` (type: `integer`):

A low-ACoS group needs at least this many attributed purchases before a harvest review is suggested.

## `maxRecommendations` (type: `integer`):

Return up to this many sorted recommendation rows. Summary reports if additional rows were available.

## Actor input object example

```json
{
  "reportCsv": "Campaign name,Ad group name,Search term,Clicks,Total cost,Sales,Purchases,Budget currency,Date range,Ad product\nKitchen launch,Storage,glass pantry jars,20,25.00,0,0,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products\nKitchen launch,Storage,bamboo spice rack,18,40.00,80.00,2,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products\nKitchen launch,Storage,drawer organizer,25,20.00,200.00,6,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products\nKitchen launch,Storage,utensil tray,4,2.00,0,0,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products",
  "targetAcosPercent": 30,
  "minSpend": 10,
  "minClicks": 10,
  "minPurchasesForHarvest": 3,
  "maxRecommendations": 20
}
```

# Actor output Schema

## `recommendations` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "reportCsv": `Campaign name,Ad group name,Search term,Clicks,Total cost,Sales,Purchases,Budget currency,Date range,Ad product
Kitchen launch,Storage,glass pantry jars,20,25.00,0,0,USD,"Oct 1, 2026 - Oct 14, 2026",Sponsored Products
Kitchen launch,Storage,bamboo spice rack,18,40.00,80.00,2,USD,"Oct 1, 2026 - Oct 14, 2026",Sponsored Products
Kitchen launch,Storage,drawer organizer,25,20.00,200.00,6,USD,"Oct 1, 2026 - Oct 14, 2026",Sponsored Products
Kitchen launch,Storage,utensil tray,4,2.00,0,0,USD,"Oct 1, 2026 - Oct 14, 2026",Sponsored Products`
};

// Run the Actor and wait for it to finish
const run = await client.actor("natstandridge/amazon-ads-search-term-audit").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "reportCsv": """Campaign name,Ad group name,Search term,Clicks,Total cost,Sales,Purchases,Budget currency,Date range,Ad product
Kitchen launch,Storage,glass pantry jars,20,25.00,0,0,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products
Kitchen launch,Storage,bamboo spice rack,18,40.00,80.00,2,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products
Kitchen launch,Storage,drawer organizer,25,20.00,200.00,6,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products
Kitchen launch,Storage,utensil tray,4,2.00,0,0,USD,\"Oct 1, 2026 - Oct 14, 2026\",Sponsored Products""" }

# Run the Actor and wait for it to finish
run = client.actor("natstandridge/amazon-ads-search-term-audit").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "reportCsv": "Campaign name,Ad group name,Search term,Clicks,Total cost,Sales,Purchases,Budget currency,Date range,Ad product\\nKitchen launch,Storage,glass pantry jars,20,25.00,0,0,USD,\\"Oct 1, 2026 - Oct 14, 2026\\",Sponsored Products\\nKitchen launch,Storage,bamboo spice rack,18,40.00,80.00,2,USD,\\"Oct 1, 2026 - Oct 14, 2026\\",Sponsored Products\\nKitchen launch,Storage,drawer organizer,25,20.00,200.00,6,USD,\\"Oct 1, 2026 - Oct 14, 2026\\",Sponsored Products\\nKitchen launch,Storage,utensil tray,4,2.00,0,0,USD,\\"Oct 1, 2026 - Oct 14, 2026\\",Sponsored Products"
}' |
apify call natstandridge/amazon-ads-search-term-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,natstandridge/amazon-ads-search-term-audit"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PcmgHdtEp4dYC92jC/builds/bfsCjasRxhXHaX0GP/openapi.json
