Authorize Amazon Ads accounts and inspect safe connection and profile metadata.
npx skills add https://github.com/nexscope-ai/nexscope-ecommerce-skills --skill ecommerce.amazon-ads-api-access
Authorize Amazon Ads accounts and inspect safe connection and profile metadata.
The package preserves 5 Amazon-platform operations (4 read or connection operations and 1 mutation). It uses only NEXSCOPE_PROXY_BASE and NEXSCOPE_API_KEY. Provider credentials, refresh, request signing, authorization state, upload locations, and document locations remain on the backend.
The concise index below is generated from the same contract consumed by the runtime. See references/api.md for full request, validation, pagination, result, status, and example details, and references/api.json for the machine-readable contract.
authorize_url - Authorize UrlPOST /api/skill/amazon/connections/amazon-ads/authorize; access: write; execution: specialized.region, marketplaceId.- Optional: workspaceId, accountName, returnPath.- Query: None; body: workspaceId, region, marketplaceId, accountName, returnPath.none.authorized_stores - Authorized StoresGET /api/skill/amazon/connections/amazon-ads; access: read; execution: specialized.workspaceId.- Query: workspaceId; body: None.none.profiles - ProfilesGET /api/skill/amazon/connections/amazon-ads/profiles; access: read; execution: specialized.connectionId.- Optional: workspaceId.- Query: workspaceId, connectionId; body: None.none.refresh_token - Refresh TokenNONE backend-owned token refresh; access: write; execution: removed.none. The backend owns token storage and refresh; use authorization status and connection metadata.store_tokens - Store TokensNONE backend-owned OAuth callback token storage; access: write; execution: removed.none. The backend owns token storage and refresh; use authorization status and connection metadata.Ask for an owned connectionId, the intended account, marketplace, and region. workspaceId is optional: omit it when the API key is already bound to the workspace. Select an exact callable operation from references/api.json; do not invent paths or use a removed compatibility row. Run the relevant script from: scripts/amazon_connection.py.
Reads may follow a continuation token only when fetchAll is true and always stop at maxPages. Paginated reads expose stable execution metadata: success, pagesFetched, truncated, and total when the list field is known. Client-side ASIN/SKU filters additionally report serverTotalBeforeClientFilter and clientSideFilters.
Authorization is a connection-lifecycle action executed once through the dedicated connection route; it is not an Ads entity mutation and does not use write preview/confirm.
Authorization state, OAuth application parameters, token exchange, encrypted credential storage, and profile discovery remain backend-owned. The skill receives only the authorization URL and safe connection metadata.
NEXSCOPE_PROXY_BASE to the approved gateway base and NEXSCOPE_API_KEY to the caller credential.workspaceId override) and an owned connectionId to select the account. Do not ask for Ads access tokens, refresh tokens, OAuth client credentials, or signing secrets.python scripts/amazon_connection.py '{"action":"connections","workspaceId":"user:42"}'
python scripts/amazon_connection.py '{"action":"authorize","workspaceId":"user:42","region":"NA","marketplaceId":"ATVPDKIKX0DER","accountName":"Example account"}'
Examples use placeholders. The authorization command starts the backend-owned Ads OAuth flow and never accepts provider credentials.
pagesFetched, total when known, truncated, and the continuation token only when another bounded call is required.outputFile, byte count, content type, and decode/compression metadata when returned; never expose a provider download location.Retry-After; do not hardcode a universal requests-per-second value.references/api.md; this package intentionally contains no direct external host URL.| Classification | Guidance |
|---|---|
| Applicable | Authorize Ads and list safe profiles or connections |
| Not applicable | Manage campaigns or download reports |
When the request crosses package boundaries, use the aggregate package only if its catalog contains the exact operation; otherwise choose the narrower package.
Do not request, print, cache, or store provider credentials. Treat advertising account, campaign, targeting, metric, and report data as private. Scripts exit nonzero for HTTP, application, upstream, invalid JSON, and malformed response failures. See references/testing.md for executable prompts, expected routes, error cases, and evidence.
Set the NEXSCOPE_API_KEY environment variable. If credentials are missing or expire, visit https://www.nexscope.ai/help/skills-external-access?co-from=skillNS to top up credits.
Take nexscope-ai/ecommerce.amazon-ads-api-access from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.