skill-amazon-ads

$npx mdskill add aAAaqwq/AGI-Super-Team/skill-amazon-ads

Manage Amazon Sponsored Products campaigns and performance data.

  • List advertiser profiles, budgets, and campaign metrics instantly.
  • Integrates with Amazon Ads API v3 and OpenClaw agents.
  • Executes commands via node scripts using stored credentials.
  • Outputs structured data or text summaries to the agent context.

SKILL.md

.github/skills/skill-amazon-adsView on GitHub ↗
---
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
```json
{
  "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.com`
> - `eu` → `advertising-api-eu.amazon.com`
> - `fe` → `advertising-api-fe.amazon.com`

### 2. Get your Profile ID
```bash
node scripts/ads.js --profiles
```
Copy the `profileId` for your brand/marketplace and add it to the credentials file.

---

## Scripts

### `ads.js` — Campaigns & Summary
```bash
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](https://github.com/Zero2Ai-hub/skill-amazon-spapi) — Orders, inventory & listings

More from aAAaqwq/AGI-Super-Team

SkillDescription
a-fund-monitor监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。
add-leadAdd company/person/relationship to CRM
ads-agentAI-агент для управления Facebook рекламой. Вызывай для анализа, оптимизации, создания кампаний и отчётов.
afrexai-compliance-auditRun internal compliance audits against major governance and security
afrexai-personal-financeComplete personal finance system — budgeting, debt payoff, investing, tax optimization, net worth tracking, and financial independence planning. Use when managing money, building wealth, paying off debt, planning retirement, or optimizing taxes. Zero dependencies.
after-salesUse when managing post-purchase experience, building customer loyalty, or increasing repeat purchases
agent-contactsAI agent contacts — add, list, remove MCP contacts. Use when someone gives an agent URL, or when you need to view/remove contacts.
agent-model-switcher批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。
agent-patternsFormat SPAWN REQUEST messages to launch parallel agents, generate structured agent status reports, and define communication protocols within the sprint system. Use when the user needs to coordinate multiple agents, format spawn requests, produce agent reports, or establish inter-agent communication patterns.
agent-task-confirmUse when confirming whether a dispatched agent task was actually received, activated, and progressing after sessions_send or other task handoff actions.