mcpField

skill-amazon-ads

github.com/zero2ai-hubMarketing & growth48 installs
Repository

About skill-amazon-ads

A command-line skill for Amazon advertising operators using an OpenClaw agent. It lists Sponsored Products profiles and campaigns, summarizes budgets, and retrieves performance data.

Key features

  1. 01List advertiser profiles
  2. 02View Sponsored Products campaigns
  3. 03Summarize campaigns and budgets
  4. 04Export campaign data

Use cases

  1. 01Review advertising profiles
  2. 02Check campaign status and budgets
  3. 03Retrieve advertising performance data

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/zero2ai-hub/skill-amazon-ads-optimizer --skill skill-amazon-ads

After installing, type/skill-amazon-adsin Claude Code to confirm it loaded.

Bundled filesREADME.mdscripts/ads.js

Details

From the project README

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.com
  • eu → advertising-api-eu.amazon.com
  • fe → 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

FieldDescription
lwaClientIdAds app client ID (separate from SP-API)
lwaClientSecretAds app client secret
refreshTokenLWA refresh token
profileIdAdvertising profile ID (from --profiles)
regionna, 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

Comments

Markdown supported