Skip to content

nexscope-ai/nexscope-ecommerce-skills / ecommerce-amazon-advertising-api

ecommerce.amazon-advertising-api

Verified

Authorize Amazon Ads accounts, manage SP, SB, and SD entities, and retrieve advertising reports.

FileKindSize
SKILL.mdskill md36.6 KB
manifest.jsonconfig674 B
references/ads-report-types.jsonconfig288.8 KB
references/api.jsonconfig154.6 KB
references/api.mdmarkdown130.0 KB
references/testing.mdmarkdown2.6 KB
scripts/amazon_ads_report_workflow.pyscript11.8 KB
scripts/amazon_api.pyscript21.2 KB
scripts/amazon_connection.pyscript2.4 KB

references/testing.md

View on GitHub
# Verification guide

## Directly executable prompts

SP v3 filter check: `ads_manager.sp.list_campaigns` accepts `"campaignIdFilter":{"include":["123456789"]}` or `"stateFilter":{"include":["ENABLED"]}` in the request body. A bare array or `queryString` must fail locally before an upstream call.

1. Basic: "Run `python scripts/amazon_connection.py '{"action":"connections","workspaceId":"user:42"}'` and show the unwrapped result without exposing credentials."
2. Filtered: "Run `python scripts/amazon_api.py '{"operation":"ads_manager.sb.list_ad_groups","workspaceId":"user:42","connectionId":7,"fetchAll":true,"maxPages":5}'` and summarize the bounded page, status, or alternate operation result."
3. Advanced: "Run `python scripts/amazon_connection.py '{"action":"authorize","workspaceId":"user:42","region":"NA","marketplaceId":"ATVPDKIKX0DER","accountName":"Example account"}'`; if it returns a write preview, show the exact preview and wait for explicit approval before a separate confirm invocation."

## Required user information

Collect an owned `connectionId`, the intended Amazon account, marketplace, and region, plus the operation-specific path, query, and body fields in `api.json`. `workspaceId` is optional: omit it when the API key is already bound to the workspace. Never request provider access or refresh tokens.

## Expected route and result

- Ads reads use `POST /api/skill/amazon/ads/read`; Ads mutations use `POST /api/skill/amazon/ads/write-preview` followed after exact approval by `write-confirm`. The aggregate package also uses the Amazon Ads connection routes.
- Documents are represented by opaque tokens. Download envelopes may contain JSON, CSV, text, or binary `contentBase64`; an optional caller path may save at most 20 MiB. Existing files are not overwritten unless `overwrite:true` is supplied, and symlink or non-regular targets are rejected.

## Operational notes

Amazon may charge advertising spend or apply account mutations. Confirm writes explicitly. Respect region and marketplace selection, rate limits, next-token pagination, bounded `maxPages`, polling timeout, and resume IDs. Treat order, customer, advertising, and document content as private. Do not log secrets or opaque document tokens.

## Error cases

Test missing and invalid fields, invalid JSON, 401, 403, 429, 5xx, polling timeout, empty results, malformed or non-JSON gateway responses, a mismatched confirmation token, expired document tokens, and unsupported document encodings. No live provider request is part of static validation.

## Evidence

- [x] Static
- [ ] Mock
- [ ] Sandbox
- [ ] Live
- [ ] ZIP
- [x] English
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall