Manage Amazon Sponsored Products campaigns from your OpenClaw agent — list profiles, view campaigns, check budgets, and pull performance data.
{
"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
node scripts/ads.js --profiles
Copy the profileId for your brand/marketplace and add it to the credentials file.
ads.js — Campaigns & Summarynode 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
| 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 |
共 1 个版本