Skip to content

nexscope-ai/nexscope-ecommerce-skills / ecommerce-amazon-ads-reporting-api

ecommerce.amazon-ads-reporting-api

Verified

Create, poll, resume, download, and save Amazon Ads v3 reports.

FileKindSize
SKILL.mdskill md7.0 KB
manifest.jsonconfig547 B
references/ads-report-types.jsonconfig288.8 KB
references/api.jsonconfig3.1 KB
references/api.mdmarkdown4.0 KB
references/testing.mdmarkdown2.7 KB
scripts/amazon_ads_report_workflow.pyscript11.8 KB

references/testing.md

View on GitHub
# Verification guide

## Directly executable prompts

1. Basic: "Run `python scripts/amazon_ads_report_workflow.py '{"workspaceId":"user:42","connectionId":7,"startDate":"2026-07-01","endDate":"2026-07-31","reportTypeId":"spCampaigns","adProduct":"SPONSORED_PRODUCTS","groupBy":["campaign"],"columns":["campaignId","impressions","clicks"]}'` and show the unwrapped result without exposing credentials."
2. Filtered: "Run `python scripts/amazon_ads_report_workflow.py '{"workspaceId":"user:42","connectionId":7,"startDate":"2026-07-01","endDate":"2026-07-31","reportTypeId":"spCampaigns","adProduct":"SPONSORED_PRODUCTS","groupBy":["campaign"],"columns":["campaignId","impressions","clicks"],"configuration":{"reportTypeId":"spCampaigns","adProduct":"SPONSORED_PRODUCTS","groupBy":["campaign"],"columns":["campaignId","impressions","clicks"],"timeUnit":"SUMMARY","format":"GZIP_JSON"}}'` and summarize the bounded page, status, or alternate operation result."
3. Advanced: "Run `python scripts/amazon_ads_report_workflow.py '{"workspaceId":"user:42","connectionId":7,"reportId":"REPORT-001"}'`; 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 report creation, polling, and opaque-token download use `POST /api/skill/amazon/ads/read`; they use an owned Ads connection and never a Seller SP-API connection.
- 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
- [x] 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