skill-amazon-ads
Amazon Ads API v3 skill for OpenClaw agents. List profiles, manage Sponsored Products campaigns, view budgets and performance. Works with any advertiser account.
How do I install this agent skill?
npx skills add https://github.com/zero2ai-hub/skill-amazon-ads-optimizer --skill skill-amazon-adsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill integrates with the Amazon Ads API to allow agents to manage advertising campaigns and monitor budgets. It requires a local configuration file for API credentials and uses official Amazon endpoints. A standard indirect prompt injection surface is present due to the processing of external API data like campaign names and profiles without specific sanitization.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerfail
3/3 files flagged
What does this agent skill do?
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/zero2ai-hub/skill-amazon-ads-optimizer/skill-amazon-ads">View skill-amazon-ads on skillZs</a>