亚马逊-广告报表
CLAWHUB · Unverified
亚马逊广告(Amazon Ads)报告一站式获取技能,覆盖 Sponsored Products (SP) / Sponsored Brands (SB) / Sponsored Display (SD) 全部报告类型。脚本自动完成报告的创建、等待、下载和解压,直接返回可读的结构化数据。真实可用的报告类型及每类的列清单/groupBy/filters 以 `references/report-types/{adProduct-dir}/{reportTypeId}.md` 为单一真相源。当用户提到拉取亚马逊广告报告、下载 Amazon Ads 报告、获取 SP/SB/SD 广告活动/关键词/搜索词/投放商品/购买商品/广告组/流量异常/Prompt 扩展等任意报告时触发。本技能依赖 linkfox-amazon-ads-auth。Sponsored Television (ST) / Amazon DSP 暂未覆盖。 Skill: 亚马逊-广告报表 Owner: linkfox-ai Summary: 亚马逊广告(Amazon Ads)报告一站式获取技能,覆盖 Sponsored Products (SP) / Sponsored Brands (SB) / Sponsored Display (SD) 全部报告类型。脚本自动完成报告的创建、等待、下载和解压,直接返回可读的结构化数据。真实可用的报告类型及每类的列清单/groupBy/filters 以 references/report-types/{adProduct-dir}/{reportTypeId}.md 为单一真相源。当用户提到拉取亚马逊广告报告、下载 Amazon Ads 报告、获取 SP/SB/SD 广告活动/关键词/搜索词/投放商品/购买商品/广告组/流量异常/Prompt 扩展等任意报告时触发。本技能依赖 linkfox-amazon-ads-auth。Sponsored
- 62
- Rank
- 84
- Safety
- 1.8k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 10, 2026
- Adoption signal
- 1.8K downloadsadoption · Oct 10, 2026
- Latest release
- 1.0.8release · Sep 14, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.0.8release
Update from 1.0.7 to 1.0.8
Observed Sep 14, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s171g8b6m2khwdy9ye8bxj0wx183vd4z:linkfox-amazon-ads-report- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-ads-report/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
156,913 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
---
name: linkfox-amazon-ads-report
description: 亚马逊广告(Amazon Ads)报告一站式获取技能,覆盖 Sponsored Products (SP) / Sponsored Brands (SB) / Sponsored Display (SD) 全部报告类型。脚本自动完成报告的创建、等待、下载和解压,直接返回可读的结构化数据。真实可用的报告类型及每类的列清单/groupBy/filters 以 `references/report-types/{adProduct-dir}/{reportTypeId}.md` 为单一真相源。当用户提到拉取亚马逊广告报告、下载 Amazon Ads 报告、获取 SP/SB/SD 广告活动/关键词/搜索词/投放商品/购买商品/广告组/流量异常/Prompt 扩展等任意报告时触发。本技能依赖 linkfox-amazon-ads-auth。Sponsored Television (ST) / Amazon DSP 暂未覆盖。
---
# Amazon Ads 报告获取
报告一站式获取:脚本经 `developerProxy` 传 `profileId`(服务端解析 token),自动完成报告的创建、等待(约 2–10 分钟)、下载和解压,直接返回可读的结构化数据。
脚本本身不做"该选哪些列 / 该怎么分组"的业务判断,这些由 agent 先查 `references/report-types/` 下对应的 `.md` 文件,再显式传给脚本。
**依赖 `linkfox-amazon-ads-auth`**(脚本启动自动检查;未安装时 exit 42,stderr 打 `DEPENDENCY_MISSING`)。
### ⚠️ 多账号场景:调用前必须解析好 profileId
用户经常只说自然语言("美国站"、"日本站"、"我的店铺"),本 skill 的所有脚本都必须拿到数字 `profileId` 才能调。按下列顺序处理,**不要跳过**:
1. 先调 `linkfox-amazon-ads-auth` 的 `authorized_stores.py` 拉出用户已授权的账号 × 站点清单。
2. 根据用户提到的站点(映射到 `countryCode`,如 美国→`US`)匹配候选 profile:
- **只有 1 个候选** → 静默取对应 profileId,继续调用;不要把 profileId 数字播报给用户。
- **≥ 2 个候选(同站点下多个授权账号)** → **必须向用户澄清**,用 `accountName` 问:"你在美国站授权了 A 和 B 两个账号,这次用哪个?"
- **0 个候选** → 告知用户该站点未授权,引导去 `linkfox-amazon-ads-auth` 做授权。
3. **严禁**让用户直接报 profileId 数字。
4. **严禁**在歧义下"挑第一个"或"选默认"绕过澄清。
完整决策表见 `linkfox-amazon-ads-auth` SKILL.md 的 **Usage Scenarios 第 4 节**。
## 调用方式
- **API 端点**:`POST /amazonAds/developerProxy`(不同操作通过请求体区分;完整参数/响应/错误码见 `references/api.md`)
- **Python 脚本**:`python scripts/<脚本名>.py '<JSON 参数>' [--inline]`(可用脚本见上文脚本一览)
- **成本约束**:本工具会消耗算力;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。
**输出策略(脚本默认行为)**:
- **始终**将完整响应写入 `<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json`(`<cwd>` 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;`<session>` 取自环境变量 `SESSION_ID`,按用户任务自动聚合;**禁止写入 /tmp**,当前目录不可写则报错)
- 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 `total`/`costToken`、最大列表字段的长度 + 前 3 条样本)
- 加 `--inline` 强制全量打印到 stdout(同样落盘)
**读数据建议**:先看摘要判断是否足够;需要具体字段时优先用 `jq`或`ConvertFrom-Json`或`ConvertFrom-Json` 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
## 解决认证和算力问题
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
### 异常情况
- **未配置API Key**:环境变量未配置 `LINKFOX_AGENT_API_KEY`,也未配置 `LINKFOXAGENT_API_KEY`。
- **响应401或402状态码**
- **响应提示算力或余额不足**:消息含"算力余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
## Core Concepts
- **覆盖**:SP / SB / SD 全部报告类型(以 `references/report-types/` 下存在的 `.md` 为准;ST / DSP 暂未覆盖)
- **一站式**:脚本内部自动完成报告创建 → 等待生成(约 2–10 分钟)→ 下载 → 解压,调用方只需等最终结果
- **单脚本**:`get_report.py`(覆盖 SP / SB 全部 adProduct)
- **元数据 vs. 运行参数**:
- 每个报告类型的**可用字段**(timeUnit / groupBy / filters / 全部列名)集中在 `references/report-types/<adProduct-dir>/<reportTypeId>.md`
- **脚本运行参数**(等待间隔、访问链接时效等)见本文件和 `references/api.md`
## 可用脚本
| 脚本 | 职责 |
|------|------|
| `get_report.py` ⭐ | 一站式执行。**必填** `adProduct` / `groupBy` / `columns`,由 agent 从 report-types/ 提取后传入 |
| `check_auth_dependency.py` | 检测 linkfox-amazon-ads-auth 是否安装 |
完整脚本参数、响应结构见 `refe_meta.json
{
"ownerId": "kn7dmc1t4j28hem1twwyav85p182pb1j",
"slug": "linkfox-amazon-ads-report",
"version": "1.0.8",
"publishedAt": 1789361654458
}references/api.md
# linkfox-amazon-ads-report — 参数与字段参考
Amazon Ads 报告自动化获取(SP / SB 覆盖;SD / ST / DSP 暂未覆盖)。授权见 `linkfox-amazon-ads-auth`;广告管理见 `linkfox-amazon-ads-manager`。
> **📌 报告类型的真相源**:每个 `reportTypeId` 的完整规格(可用 columns / groupBy / filters / timeUnit / 日期约束 / 官方示例)在 `references/report-types/<adProduct-dir>/<reportTypeId>.md`,**按 adProduct 分目录**:
> - `report-types/sp/`(Sponsored Products)
> - `report-types/sb/`(Sponsored Brands)
>
> 目录总览见 `report-types/index.md`。本文件仅给运行时脚本参数与通用规则。
## 支持的报告类型
完整列表见 `report-types/index.md` 及各 adProduct 子目录下的 `index.md`。常用快速索引:
| reportTypeId | 业务含义 | 文件 |
|--------------|---------|------|
| `spCampaigns` | 广告活动级(SP) | `report-types/sp/spCampaigns.md` |
| `spAdvertisedProduct` | 投放商品级(SP) | `report-types/sp/spAdvertisedProduct.md` |
| `spSearchTerm` | 搜索词级(SP) | `report-types/sp/spSearchTerm.md` |
| `spTargeting` | 定向/关键词级(SP) | `report-types/sp/spTargeting.md` |
| `sbCampaigns` / `sbAdGroup` / `sbAds` / ... | Sponsored Brands | `report-types/sb/*.md` |
## 输入参数
脚本支持两种模式:
- **全链路模式(默认)**:创建报告 → 轮询 → 下载。需要下表全部必填字段。
- **仅轮询模式**:入参中显式传入 `reportId`(见下方"可选流程参数"),跳过创建,只需 `profileId` / `region`,其余全部可省略。用于救回上次客户端超时但报告仍在跑的场景。
### 必填(全链路模式)
| 参数 | 类型 | 说明 |
|------|------|------|
| `profileId` | number | 从 ads-auth 获取 |
| `region` | string | `NA` / `EU` / `FE` |
| `reportTypeId` | string | 见 `report-types/index.md` 各 adProduct 子目录下的完整列表 |
| `adProduct` | string | 取自对应 `.md` 文件的 frontmatter(`SPONSORED_PRODUCTS` / `SPONSORED_BRANDS`)|
| `groupBy` | list | 取自对应 `.md` 文件的 frontmatter |
| `columns` | list | 取自对应 `.md` 文件 Base metrics 表的子集 |
| `startDate` | string | `YYYY-MM-DD`(含当天) |
| `endDate` | string | `YYYY-MM-DD`(含当天) |
### 可选业务参数
| 参数 | 默认 | 说明 |
|------|------|------|
| `name` | `{reportTypeId}_{startDate}_{endDate}` | 报告显示名 |
| `timeUnit` | `SUMMARY` | `DAILY`(每天一行) / `SUMMARY`(整期一行) |
| `format` | `GZIP_JSON` | 响应文件格式 |
| `filters` | 空 | 过滤条件数组,字段与取值见对应 `.md` 文件 |
### 可选流程参数
| 参数 | 默认 | 说明 |
|------|------|------|
| `reportId` | 无 | 若显式传入,脚本进入**仅轮询模式**:跳过创建步骤,直接对该 reportId 轮询与下载。此时只要 `profileId` / `region` + `reportId`,其他字段可省 |
| `pollInterval` | 30 | 轮询间隔秒 |
| `maxAttempts` | 15 | 最大轮询次数(默认约 7.5 分钟上限) |
| `skipDepCheck` | false | 跳过依赖检查 |
| `serveExtractedFileHttp` | true | 是否启本机 HTTP 服务 |
| `serveHost` | `127.0.0.1` | 绑定地址(仅本机可访问) |
| `servePort` | 0 | 端口(0=系统分配) |
| `serveSeconds` | 300 | HTTP 服务存活秒 |
| `includeAmazonSourceUrl` | false | 响应中带预签名 URL |
## 日期限制
- **跨度上限**:以对应 `.md` 文件 frontmatter 的 `dateRange.maxSpanDays` 为准(多数 31 天;`sbPurchasedProduct` 731 天;GrossAndInvalids 系列 365 天)。超出返回 HTTP 400 `"must not exceed maximum range"`。
- **回溯上限**:以 `dateRange.dataRetentionDays` 为准(SP 多为 95 天,SB 60 天)。
- **数据延迟**:~12 小时;`endDate >= 今天` 脚本会 stderr 警告但不拦截。建议 `endDate <= 昨天`。
## 各报告类型的列
每个 reportTypeId 的完整 Base metrics 列表、allowed groupBy、filters 枚举值,统一在 `report-types/<adProduct-dir>/<reportTypeId>.md` 中维护:
- `.md` 的 **frontmatter** 提供 `adProduct` / `groupBy` / `timeUnit`(可选值)/ `format` / `filters` / `dateRange`
- **Base references/onboarding.md
# 解决认证和算力问题
调用本 skill 时若网关返回 **auth** 或 **billing** 错误,走本 skill 自带的 `scripts/onboarding.py` 完成引导。
**auth 场景**:`errcode=401` 或消息含 `authorized error`/`鉴权失败`/`未授权`/`unauthorized`;或 `LINKFOX_AGENT_API_KEY` 与 `LINKFOXAGENT_API_KEY` 均为空。
1. 若已配置 key → 先让用户重启会话(最常见误判),仍失败让用户重新取 key 或换手机号重注册
2. 未配置 → 询问:自助去 https://agent.linkfox.com/ 取 key,或提供手机号让脚本注册
3. 手机号路径:
- `python scripts/onboarding.py send-code <phone>` → 展示 JSON 里的 phone/agreements
- 收到验证码后:`python scripts/onboarding.py login <phone> <code>`
- 拿到 `api_key` 后把下面三平台配置转发给用户,提示重启会话生效:
- Windows PowerShell(永久):`setx LINKFOX_AGENT_API_KEY "<key>"`
- macOS zsh:`echo 'export LINKFOX_AGENT_API_KEY="<key>"' >> ~/.zshrc && source ~/.zshrc`
- Linux bash:`echo 'export LINKFOX_AGENT_API_KEY="<key>"' >> ~/.bashrc && source ~/.bashrc`
- 变量名 `LINKFOX_AGENT_API_KEY`(主推)或 `LINKFOXAGENT_API_KEY`(老规范)任一即可
**billing 场景**:`errcode=402` 或消息含 `算力/余额/quota/insufficient/充值/套餐到期`。
- `python scripts/onboarding.py list-plans` → 有 AskUserQuestion 就弹菜单,否则输出编号清单让用户选
- 校验 `plan_id` ∈ 清单、支付方式 ∈ 该套餐 `available_methods`(通常 `wechat/alipay`)
- `python scripts/onboarding.py order <plan_id> <method>` → 展示优先级 PNG > `pay_url` > `ascii_qr`(标注兜底)
- 已付款可选调 `python scripts/onboarding.py query <order_id>`,不主动轮询
排除 `errcode=403`(无权限,不归入这两类)。所有子命令输出 stdout JSON,`error` 字段已含阶段前缀,透传给用户即可。完整用法:`python scripts/onboarding.py --help`。references/report-types/index.md
# Amazon Ads Report Types 按 `adProduct` 分类。每个 `.md` 文件名即 `reportTypeId`,内容为官方原文 + YAML frontmatter 结构化字段,用于构造 `POST /reporting/reports` 请求体。 ## 目录 | adProduct | 目录 | |-----------|------| | SPONSORED_PRODUCTS | [`sp/`](./sp/) | | SPONSORED_BRANDS | [`sb/`](./sb/) | | SPONSORED_DISPLAY | [`sd/`](./sd/) | > Sponsored Television (ST) / Amazon DSP 暂未覆盖,后续版本支持。 ## 数据源 https://advertising.amazon.com/API/docs/en-us/guides/reporting/v3/report-types
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-linkfox-ai-linkfox-amazon-ads-report. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about 亚马逊-广告报表. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-linkfox-ai-linkfox-amazon-ads-report, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-ads-report",
"sourceUrl": "https://clawhub.ai/linkfox-ai/skills/linkfox-amazon-ads-report",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T02:58:23.782Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-ads-report/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-ads-report/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T02:58:23.782Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.8K downloads",
"href": "https://clawhub.ai/linkfox-ai/linkfox-amazon-ads-report",
"sourceUrl": "https://clawhub.ai/linkfox-ai/linkfox-amazon-ads-report",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T02:58:23.782Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.0.8",
"href": "https://clawhub.ai/linkfox-ai/linkfox-amazon-ads-report",
"sourceUrl": "https://clawhub.ai/linkfox-ai/linkfox-amazon-ads-report",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-14T04:54:14.458Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-ads-report/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-ads-report/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.0.8",
"description": "Update from 1.0.7 to 1.0.8",
"href": "https://clawhub.ai/linkfox-ai/linkfox-amazon-ads-report",
"sourceUrl": "https://clawhub.ai/linkfox-ai/linkfox-amazon-ads-report",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-14T04:54:14.458Z",
"isPublic": true
}
]
}Record generated Nov 24, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-linkfox-ai-linkfox-amazon-ads-report/run-check
