Xpersona
A

Amazon Ads Reporter

CLAWHUB · Unverified

Fetch Amazon Ads Sponsored Products campaign reports asynchronously by requesting and polling separately to avoid API timeouts, with no npm dependencies. Skill: Amazon Ads Reporter Owner: zero2ai-hub Summary: Fetch Amazon Ads Sponsored Products campaign reports asynchronously by requesting and polling separately to avoid API timeouts, with no npm dependencies. Tags: latest:1.1.0 Version history: v1.1.0 | 2026-03-28T23:14:36.162Z | auto **Expanded functionality: adds keyword analytics and live bid inspection tools.** - Introduced keyword-report.js for keyword-level win

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17a1b8dv4hc6x68q9m057m67n83ryrt:skill-amazon-ads-reporter
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-zero2ai-hub-skill-amazon-ads-reporter/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

10,735 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

# skill-amazon-ads-reporter

## Description
Fetch Amazon Ads Sponsored Products campaign performance reports using a decoupled async pattern. Avoids timeout issues with the v3 Reporting API (2–10 min generation time) by splitting request and poll into separate steps. Also includes keyword-level winner/dead analysis and a quick bid inspector.

## Why two steps?
Amazon's Reporting API v3 is async — you request a report, get a `reportId`, and poll until it's ready. Doing this inline in a cron causes timeouts. The correct pattern:

```
request → save reportId → (wait 1-2 min) → poll + download
```

## Usage

### Campaign-level report (step-by-step, recommended for crons)
```bash
# Step 1: Request report — exits immediately with reportId
node scripts/request-report.js --days 7

# Step 2: Poll + download (run 1-2 min later, or from a separate cron)
node scripts/poll-report.js
```

### Campaign-level report (all-in-one, for manual runs)
```bash
node scripts/get-report.js --days 7
```

### Keyword-level winner/dead analysis (14-day async report)
```bash
node scripts/keyword-report.js
```
Output: table of all ENABLED keywords with clicks > 0 OR impressions ≥ 50 (winners), plus count of dead keywords (0 clicks, <50 imp).

### Quick bid inspector (live, across campaigns)
```bash
node scripts/get-bids.js
```
Output: all ENABLED + PAUSED keywords per campaign with current bids. Reads live data (no report needed).

## Arguments
| Arg | Default | Description |
|-----|---------|-------------|
| `--days N` | `7` | Number of days to include in report (campaign and keyword reports) |

## Configuration
Reads credentials from `AMAZON_ADS_PATH` env var, defaulting to `~/amazon-ads-api.json`.

### `amazon-ads-api.json` format
```json
{
  "refreshToken": "...",
  "lwaClientId": "...",
  "lwaClientSecret": "...",
  "profileId": "...",
  "region": "EU"
}
```

Regions: `EU` (default, includes UAE), `NA` (North America), `FE` (Far East).

## Output
- `~/.openclaw/workspace/tmp/amazon-report-pending.json` — created by request-report.js
- `~/.openclaw/workspace/tmp/amazon-report-latest.json` — created by poll-report.js after success
- Console table: Campaign | Impressions | Clicks | CTR% | Spend | Sales | ACOS%

## Report columns (campaign-level)
`campaignName`, `campaignId`, `impressions`, `clicks`, `spend`, `purchases7d`, `sales7d`

Paused campaigns are automatically filtered out by cross-referencing `GET /sp/campaigns/list`.

## Report columns (keyword-level — keyword-report.js)
`keywordId`, `keywordText`, `matchType`, `impressions`, `clicks`, `cost`, `purchases7d`, `sales7d`

## Dependencies
Node.js built-ins only (`https`, `zlib`, `fs`, `path`). No npm install required.

## Notes
- Access tokens expire — refresh via Amazon Login with Advertising if needed
- The `GZIP_JSON` format is gunzipped automatically by poll-report.js
- Reports are only available for the previous day and earlier (endDate = yesterday)
- `get-bids.js` uses the live v3 keyword list endpoint — no async

_meta.json

{
  "ownerId": "kn7dj907h1ps8kt92wbdspr01d820vzf",
  "slug": "skill-amazon-ads-reporter",
  "version": "1.1.0",
  "publishedAt": 1774739676162
}

skill-card.md

## Description:

Fetches Amazon Ads Sponsored Products campaign and keyword reports, including keyword performance analysis and live bid inspection, using user-provided Amazon Ads credentials.

This skill is ready for commercial/non-commercial use.

## Publisher:

[zero2ai-hub](https://clawhub.ai/user/zero2ai-hub)

### License/Terms of Use:

MIT-0

## Use Case:

Advertisers, operators, and marketing analysts use this skill to configure and run Amazon Ads API reporting scripts that inspect Sponsored Products campaign performance, keyword winners and dead keywords, and current keyword bids.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill uses Amazon Ads API credentials from a local JSON file.

Mitigation: Install only when Amazon Ads API access is intended, keep the credential file protected, and set AMAZON_ADS_PATH deliberately when the default path should not be used.

Risk: Some documented campaign-level commands reference scripts not included in this artifact.

Mitigation: Verify the available scripts before using campaign-level examples; this artifact includes keyword-report.js and get-bids.js.

## Reference(s):


## Skill Output:

**Output Type(s):** [text, markdown, shell commands, configuration]

**Output Format:** [Markdown guidance with bash commands and console or table report output]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Reads Amazon Ads credentials from a local JSON file and can produce local JSON report files or live keyword bid listings.]

## Skill Version(s):

1.1.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Amazon Ads Reporter and adjacent AI workflows.