@aaaaqwq/skill-amazon-ads
AAmazon Ads API v3 skill for OpenClaw agents. List profiles, manage Sponsored Products campaigns, view budgets and performance. Works with any advertiser account.
Install
agr install @aaaaqwq/skill-amazon-ads --target claudeWrites 2 files into .claude/skills/, pinned to git-5d6deb37.
- .claude/skills/skill-amazon-ads/README.md
- .claude/skills/skill-amazon-ads/SKILL.md
Document
name: skill-amazon-ads description: "Amazon Ads API v3 skill for OpenClaw agents. List profiles, manage Sponsored Products campaigns, view budgets and performance. Works with any advertiser account." metadata: openclaw: requires: { bins: ["node"] }
Amazon Ads API Skill
Manage Amazon Sponsored Products campaigns from your OpenClaw agent — list profiles, view campaigns, check budgets, and pull performance data.
Setup
1. Create credentials file
{
"lwaClientId": "amzn1.application-oa2-client.YOUR_CLIENT_ID",
"lwaClientSecret": "YOUR_CLIENT_SECRET",
"refreshToken": "Atzr|YOUR_REFRESH_TOKEN",
"profileId": "YOUR_ADS_PROFILE_ID",
"region": "eu"
}
Save as amazon-ads-api.json. Set AMAZON_ADS_PATH env var to point to it (default: ./amazon-ads-api.json).
Regions & endpoints:
na→advertising-api.amazon.comeu→advertising-api-eu.amazon.comfe→advertising-api-fe.amazon.com
2. Get your Profile ID
node scripts/ads.js --profiles
Copy the profileId for your brand/marketplace and add it to the credentials file.
Scripts
ads.js — Campaigns & Summary
node scripts/ads.js --profiles # list all advertiser profiles
node scripts/ads.js --campaigns # list all SP campaigns
node scripts/ads.js --summary # active campaigns + budgets summary
node scripts/ads.js --campaigns --out c.json # save to file
Credentials Schema
| Field | Description |
|---|---|
lwaClientId | Ads app client ID (separate from SP-API) |
lwaClientSecret | Ads app client secret |
refreshToken | LWA refresh token |
profileId | Advertising profile ID (from --profiles) |
region | na, eu, or fe |
Notes
- Ads API uses a separate LWA app from SP-API — different client ID/secret
- Profile ID is required for all campaign operations
- Tokens are fetched fresh per request (no caching overhead for CLI use)
- For production/high-frequency use, add token caching
Related
- skill-amazon-spapi — Orders, inventory & listings
Trustgrade A
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- passLicense
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-5d6deb377be82026-07-31