siluzan-tso-cli 1.1.37-beta.13 → 1.1.37-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +4 -1
- package/dist/skill/AGENTS.md +31 -58
- package/dist/skill/SKILL.md +59 -70
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/assets/campaign-create-template.md +1 -1
- package/dist/skill/references/README.md +19 -12
- package/dist/skill/references/accounts/accounts-balance-stats.md +166 -0
- package/dist/skill/references/accounts/accounts-list.md +170 -0
- package/dist/skill/references/accounts/accounts-permissions.md +474 -0
- package/dist/skill/references/accounts/accounts.md +18 -931
- package/dist/skill/references/accounts/currency.md +2 -2
- package/dist/skill/references/accounts/finance.md +12 -2
- package/dist/skill/references/accounts/open-account-by-media.md +17 -2
- package/dist/skill/references/accounts/open-account-google-ui.md +1 -1
- package/dist/skill/references/analytics/account-analytics.md +16 -5
- package/dist/skill/references/analytics/google-analysis-batch.md +17 -2
- package/dist/skill/references/analytics/keyword-planner-workflows.md +20 -6
- package/dist/skill/references/analytics/market-analysis-guide.md +1 -4
- package/dist/skill/references/analytics/rag.md +1 -1
- package/dist/skill/references/analytics/reporting.md +2 -4
- package/dist/skill/references/analytics/website-diagnosis-guide.md +1 -1
- package/dist/skill/references/core/agent-conventions.md +111 -34
- package/dist/skill/references/core/intent-routing.md +18 -4
- package/dist/skill/references/core/playbooks.md +25 -27
- package/dist/skill/references/core/setup.md +1 -4
- package/dist/skill/references/core/skill-authoring.md +47 -0
- package/dist/skill/references/core/tips.md +18 -4
- package/dist/skill/references/core/user-communication-guide.md +2 -116
- package/dist/skill/references/core/workflows.md +27 -28
- package/dist/skill/references/google-ads/google-ads-batch.md +65 -0
- package/dist/skill/references/google-ads/google-ads-campaign-plan.md +5 -5
- package/dist/skill/references/google-ads/google-ads-read.md +271 -0
- package/dist/skill/references/google-ads/google-ads-write.md +399 -0
- package/dist/skill/references/google-ads/google-ads.md +14 -659
- package/dist/skill/references/google-ads/rules/README.md +20 -19
- package/dist/skill/references/google-ads/rules/google-ads-account-audit-assets.md +284 -0
- package/dist/skill/references/google-ads/rules/google-ads-account-audit-quick.md +223 -0
- package/dist/skill/references/google-ads/rules/google-ads-account-audit-report.md +79 -0
- package/dist/skill/references/google-ads/rules/google-ads-account-audit-structure.md +123 -0
- package/dist/skill/references/google-ads/rules/google-ads-account-audit.md +31 -653
- package/dist/skill/references/google-ads/rules/google-ads-audience-strategy.md +1 -2
- package/dist/skill/references/google-ads/rules/google-ads-campaign-optimization.md +1 -3
- package/dist/skill/references/google-ads/rules/google-ads-compliance-copy.md +201 -0
- package/dist/skill/references/google-ads/rules/google-ads-compliance-forbid.md +280 -0
- package/dist/skill/references/google-ads/rules/google-ads-compliance-ops.md +151 -0
- package/dist/skill/references/google-ads/rules/google-ads-compliance.md +24 -589
- package/dist/skill/references/google-ads/rules/google-ads-conversion-architecture.md +1 -2
- package/dist/skill/references/google-ads/rules/google-ads-creative-optimization.md +1 -3
- package/dist/skill/references/google-ads/rules/google-ads-keyword-optimization.md +1 -3
- package/dist/skill/references/google-ads/rules/google-ads-keyword-strategy.md +1 -3
- package/dist/skill/references/google-ads/rules/google-ads-keyword-taxonomy.md +1 -2
- package/dist/skill/references/google-ads/rules/google-ads-launch-plan-template.md +2 -6
- package/dist/skill/references/google-ads/rules/google-ads-plan-source-fidelity.md +1 -4
- package/dist/skill/references/google-ads/rules/google-ads-pmax-guide.md +1 -2
- package/dist/skill/references/google-ads/rules/sensitive-industries.md +1 -3
- package/dist/skill/references/operations/clue.md +1 -3
- package/dist/skill/references/operations/hosted-automation-monitoring-json.md +1 -1
- package/dist/skill/references/operations/hosted-automation-optimize-index.md +1 -1
- package/dist/skill/references/operations/hosted-automation-optimize-scale.md +3 -4
- package/dist/skill/references/operations/hosted-automation-optimize-weak-downbid.md +1 -1
- package/dist/skill/references/operations/hosted-automation-scenarios.md +2 -2
- package/dist/skill/references/operations/hosted-automation-self-control.md +14 -2
- package/dist/skill/references/operations/hosted-automation-user-catalog.md +33 -27
- package/dist/skill/references/operations/optimize.md +1 -3
- package/dist/skill/references/report-templates/REPORT-WORKFLOW.md +3 -1
- package/dist/skill/references/report-templates/google-ads-diagnosis.md +22 -1
- package/dist/skill/references/report-templates/google-inquiry-analysis.md +19 -3
- package/dist/skill/references/report-templates/meta-period-report-excel.md +1 -2
- package/dist/skill/references/report-templates/okki-weekly-google-client.md +13 -0
- package/dist/skill/report-templates/REPORT-WORKFLOW.md +3 -1
- package/dist/skill/report-templates/google-ads-diagnosis.md +22 -1
- package/dist/skill/report-templates/google-inquiry-analysis.md +19 -3
- package/dist/skill/report-templates/meta-period-report-excel.md +1 -2
- package/dist/skill/report-templates/okki-weekly-google-client.md +13 -0
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ siluzan-tso init -d /path/to/skills # 写入自定义目录
|
|
|
51
51
|
siluzan-tso init --force # 强制覆盖已存在文件
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
> **注意**:当前为测试版(1.1.37-beta.
|
|
54
|
+
> **注意**:当前为测试版(1.1.37-beta.15),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
|
|
55
55
|
|
|
56
56
|
| 助手 | 建议 `--ai` |
|
|
57
57
|
| ----------------------- | ------------------------------------ |
|
package/dist/index.js
CHANGED
|
@@ -131971,7 +131971,10 @@ configureCliJsonSnapshot({
|
|
|
131971
131971
|
fieldGuideRefs: [
|
|
131972
131972
|
"references/accounts/currency.md",
|
|
131973
131973
|
"references/core/tips.md",
|
|
131974
|
-
"references/accounts/accounts.md"
|
|
131974
|
+
"references/accounts/accounts.md",
|
|
131975
|
+
"references/accounts/accounts-list.md",
|
|
131976
|
+
"references/accounts/accounts-balance-stats.md",
|
|
131977
|
+
"references/accounts/accounts-permissions.md"
|
|
131975
131978
|
]
|
|
131976
131979
|
});
|
|
131977
131980
|
var program = new Command5();
|
package/dist/skill/AGENTS.md
CHANGED
|
@@ -1,62 +1,35 @@
|
|
|
1
|
-
# siluzan-tso —
|
|
1
|
+
# siluzan-tso — 文档目录
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 入口:`SKILL.md` → 按路由表 Read 列出的文件。改文档结构时对齐 `references/core/skill-authoring.md`。
|
|
4
|
+
|
|
5
|
+
## 怎么找文档
|
|
6
|
+
|
|
7
|
+
| 要做什么 | 读哪里 |
|
|
8
|
+
| -------- | ------ |
|
|
9
|
+
| 锁定工作流 | `SKILL.md` 路由表 |
|
|
10
|
+
| 报告类话术模糊 | `references/core/intent-routing.md` |
|
|
11
|
+
| 步骤与产物 | `playbooks.md`(P*)或 `workflows.md`(W*) |
|
|
12
|
+
| 命令参数 / 字段 | 路由表「必读文档」 |
|
|
13
|
+
| 纪律与对用户怎么说 | `references/core/agent-conventions.md` |
|
|
14
|
+
| 报告结构纲要 | `report-templates/*.md`(勿读 `*.html`) |
|
|
4
15
|
|
|
5
16
|
## 启动顺序
|
|
6
17
|
|
|
7
|
-
1. Read `SKILL.md
|
|
8
|
-
2.
|
|
9
|
-
3.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| **Templates** | `assets/`、`references/report-templates/`、`report-templates/*.html` | JSON 契约、报告纲要、HTML 样式 |
|
|
26
|
-
|
|
27
|
-
## 工作流目录
|
|
28
|
-
|
|
29
|
-
| 类别 | 文档 | 编号 |
|
|
30
|
-
| ------------- | ------------------------------ | ------ |
|
|
31
|
-
| 分析 / 报告类 | `references/core/playbooks.md` | P1–P9 |
|
|
32
|
-
| 操作 / 管理类 | `references/core/workflows.md` | W1–W12 |
|
|
33
|
-
|
|
34
|
-
专用报告模板(被工作流卡片引用):
|
|
35
|
-
|
|
36
|
-
| ID | 文档 |
|
|
37
|
-
| ----------------- | ----------------------------------------------------------------- |
|
|
38
|
-
| 网站诊断 | `references/report-templates/website-diagnosis-report.md` |
|
|
39
|
-
| 战略市场分析 | `references/report-templates/market-analysis-report.md` |
|
|
40
|
-
| Google 周期 Excel | `references/report-templates/google-period-report-excel.md`(P4) |
|
|
41
|
-
| 账户按日 Excel | `references/report-templates/stats-daily-excel.md`(P4-DAILY) |
|
|
42
|
-
| OKKI 周报 | `references/report-templates/okki-weekly-google-client.md` |
|
|
43
|
-
| 询盘分析 | `references/report-templates/google-inquiry-analysis.md` |
|
|
44
|
-
|
|
45
|
-
## 维护
|
|
46
|
-
|
|
47
|
-
- 源码唯一真相:`tso-cli/assets/siluzan-ads/`(勿编辑 `skills/siluzan-tso/` 副本)
|
|
48
|
-
- 通用纪律唯一真相源:`references/core/agent-conventions.md`(其他文档只单行指向,不复制规则)
|
|
49
|
-
|
|
50
|
-
## CLI 代码域(与文档对齐)
|
|
51
|
-
|
|
52
|
-
| CLI 模块 | 文档域 |
|
|
53
|
-
| ----------------------------------------------------------------------- | ------------------------------------- |
|
|
54
|
-
| `src/commands/list-accounts/`、`accounts-digest/`、`balance-scan/` | accounts |
|
|
55
|
-
| `src/commands/open-account/`、`account-manage-register.ts` | accounts |
|
|
56
|
-
| `src/commands/ad/` | google-ads |
|
|
57
|
-
| `src/commands/google-analysis/`、`google-analysis-batch.ts` | analytics |
|
|
58
|
-
| `src/commands/facebook-analysis/`、`bing-analysis/`、`tiktok-analysis/` | analytics(架构对齐 google-analysis) |
|
|
59
|
-
| `src/commands/website-diagnosis/` | analytics(网站诊断) |
|
|
60
|
-
| `src/commands/market-analysis/` | analytics(战略市场分析) |
|
|
61
|
-
| `src/commands/report/` | analytics + report-templates |
|
|
62
|
-
| `src/commands/forewarning/`、`optimize/`、`clue.ts` | operations |
|
|
18
|
+
1. Read `SKILL.md` 路由表,锁定唯一工作流
|
|
19
|
+
2. 报告类模糊 → Read `intent-routing.md`
|
|
20
|
+
3. Read「必读文档」+ 对应 playbook/workflow 卡片
|
|
21
|
+
4. 写操作 / 报告交付 / 批量 / 对用户写结论 → Read `agent-conventions.md` 相关节
|
|
22
|
+
5. P5/P6/P7 或长 CLI:可选 `subagent-orchestration.md`
|
|
23
|
+
|
|
24
|
+
## 按域
|
|
25
|
+
|
|
26
|
+
| 域 | 路径 | 说明 |
|
|
27
|
+
| -- | ---- | ---- |
|
|
28
|
+
| Core | `references/core/` | conventions、intent-routing、playbooks、workflows |
|
|
29
|
+
| Accounts | `references/accounts/` | 直接读 `accounts-list` / `accounts-balance-stats` / `accounts-permissions` |
|
|
30
|
+
| Google Ads | `references/google-ads/` | `google-ads-read` / `write` / `batch`;`rules/` 先 README 再单文件 |
|
|
31
|
+
| Analytics | `references/analytics/` | 拉数、批处理、拓词 |
|
|
32
|
+
| Operations | `references/operations/` | 预警、线索;自动化仅用户问起时 |
|
|
33
|
+
| Templates | `report-templates/*.md`、`assets/` | 报告纲要 / JSON 契约 |
|
|
34
|
+
|
|
35
|
+
源码目录:`tso-cli/assets/siluzan-ads/`。
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: siluzan-tso
|
|
3
|
-
description:
|
|
3
|
+
description: >
|
|
4
|
+
Manages Siluzan TSO ads (Google/Bing/Yandex/TikTok/Kwai/MetaAd): accounts, balance,
|
|
5
|
+
spend, open-account, Google Ads CRUD/PMax, Keyword Planner, invoices, forewarning,
|
|
6
|
+
and HTML reports (account diagnosis, period, website, market analysis). Use when the
|
|
7
|
+
user mentions 丝路赞/TSO/广告账户/出价预算, asks for 行业/市场分析报告, 网站诊断 with a
|
|
8
|
+
URL, 拓词/月搜索量/Keyword Planner, or Google Ads campaign plans. Do not use for CSO
|
|
9
|
+
content publishing (siluzan-cso).
|
|
4
10
|
license: MIT
|
|
5
11
|
compatibility: 需要 Node.js 18+、已安装 siluzan-tso-cli,通过 send-login-code + login 或 config set 完成鉴权
|
|
6
12
|
metadata:
|
|
@@ -11,99 +17,87 @@ allowed-tools: Bash(siluzan-tso:*) Read Write
|
|
|
11
17
|
|
|
12
18
|
# Siluzan TSO Skill
|
|
13
19
|
|
|
14
|
-
|
|
20
|
+
本文件只做 **任务路由**:意图 → **唯一**工作流 → 按需 Read 子文档(参数与步骤不在此重复)。
|
|
15
21
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
22
|
+
- 分析 / 报告 → `references/core/playbooks.md`(P1–P9)
|
|
23
|
+
- 操作 / 管理 → `references/core/workflows.md`(W1–W12)
|
|
24
|
+
- 命令参数 → 路由表「必读文档」
|
|
25
|
+
- 通用纪律与沟通 → `references/core/agent-conventions.md`
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
> **Agent 纪律(每个新任务必读)**:先 Read `references/core/agent-conventions.md`(唯一规则真相源:加载纪律、数据处理协议、时间/币种、批量约束、交付前自检),再按下方路由表 Read「必读文档」与对应工作流卡片。向用户回复时另 Read `references/core/user-communication-guide.md`(伙伴式沟通:结论先行、先执行后解释、禁止机械贴 CLI/编号)。禁止跨话题复用参数记忆;数据类任务一律 `--json-out` + **仅用代码**读落盘 JSON(脚本示例见 `references/core/tips.md`)。
|
|
24
|
-
>
|
|
25
|
-
> **报告 / 分析类统一消歧(必读)**:用户话术含「报告 / 诊断 / 分析 / 检测 / 监测 / 月报 / 周报」等,或对象不清(只有「帮我出份报告」)→ **必须先 Read `references/core/intent-routing.md`**。**§零 优先**:**网址/域名/官网/链接 + 诊断类词**(含用户说的「网络诊断/网络检测」)→ **直接 P8**,禁止走 P9/P1。**§零·B 次优先**:未命中 §零 的**行业/市场分析报告**(行业分析、市场分析、行业分析报告、「写一份 XX 行业报告」、战略/KA 市场报告、竞品/GTM 等,**无论是否提及丝路赞/广告**)→ **100% 走 P9 `market-analysis collect`+`render`**,**禁止**纯 WebSearch/WebFetch 在对话里写 Markdown/HTML 当终稿,**禁止**改走 P8/P1/P4/W5。**§零·C 关键词规划**:**拓词 / Keyword Planner / 长尾关键词 / 月搜索量 / 竞争度 / 核心词扩词**(含读 URL/文章后出 Google 词表,**无论是否提及丝路赞/账户**)→ **100% 走 W5 `keyword -k … --google-only --json-out`**,**禁止** WebSearch 编造搜索量。再按 §一 定唯一工作流。**禁止**见「报告」就默认 P4 周期或 P1 诊断。
|
|
27
|
+
> **加载**:按下方路由表 Read **一个**工作流卡片 + **一个**命令/报告 reference 后执行。写操作、报告交付、批量拉数、对用户写结论、或上下文被压缩时,再 Read `references/core/agent-conventions.md`(含 §十四沟通)。
|
|
26
28
|
>
|
|
27
|
-
>
|
|
29
|
+
> **报告 / 诊断 / 分析 / 拓词话术模糊**:先 Read `references/core/intent-routing.md`,再回路由表。数据任务一律 `--json-out` + 代码读盘(示例见 `references/core/tips.md`)。未指定格式时 P1/P4/P4-FB/P8/P9 默认 **HTML**。
|
|
28
30
|
|
|
29
31
|
---
|
|
30
32
|
|
|
31
|
-
##
|
|
33
|
+
## 基本使用
|
|
32
34
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
- **Windows PowerShell:**
|
|
38
|
-
```powershell
|
|
39
|
-
irm https://unpkg.com/siluzan-tso-cli@latest/dist/skill/scripts/install.ps1 | iex
|
|
40
|
-
```
|
|
35
|
+
```bash
|
|
36
|
+
siluzan-tso -h
|
|
37
|
+
```
|
|
41
38
|
|
|
42
|
-
|
|
39
|
+
未安装 / 未登录 / 401 → Read `references/core/setup.md`。
|
|
43
40
|
|
|
44
|
-
|
|
41
|
+
**步骤**:① 报告类模糊 → Read `intent-routing.md` → ② 锁定下方**唯一**工作流行 → ③ Read 该行「必读文档」+ 工作流卡片 → ④ 按编号步骤执行;写操作前与用户确认;对用户写结论时 Read conventions §十四。**禁止** Read `report-templates/*.html`(由 CLI `render` 使用)。
|
|
45
42
|
|
|
46
43
|
---
|
|
47
44
|
|
|
48
|
-
##
|
|
45
|
+
## 即时规范
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
**Agent 三步法**:① **网址+诊断类词(含「网络诊断」)→ 直接 P8**(`intent-routing.md` §零);其余报告类若话术模糊,先 Read `references/core/intent-routing.md` → ② 在下方路由表锁定**唯一**工作流行 → ③ Read 该行「必读文档」与工作流卡片 → ④ 按卡片**编号步骤**执行,写操作前先与用户确认。
|
|
47
|
+
- `entityId`(UUID)≠ `mediaCustomerId`(媒体数字 ID);MetaAd 列表 ID 常带 `act_`。
|
|
48
|
+
- `list-accounts` 无余额/消耗;列全部用 `--page-size 999`。
|
|
49
|
+
- 多户余额用 `balance-scan`(P2),多户消耗用 `accounts-digest`(P3);禁止外层 for-loop 逐户拉数。
|
|
50
|
+
- `stats` 的 `spend` = **区间合计**,不是日消耗。
|
|
51
|
+
- 行业/市场报告禁止纯 WebSearch 当终稿;须 P9 `market-analysis collect`+`render`。
|
|
57
52
|
|
|
58
53
|
---
|
|
59
54
|
|
|
60
55
|
## 路由表(意图 → 工作流 → 必读文档)
|
|
61
56
|
|
|
62
|
-
>
|
|
57
|
+
> 写操作 / 报告交付 / 批量拉数 / 对用户回复 → Read `agent-conventions.md`。找不到行 → 澄清或 Read `intent-routing.md`(勿整本加载 `references/README.md`)。
|
|
63
58
|
|
|
64
59
|
### 账户与财务
|
|
65
60
|
|
|
66
61
|
| 用户意图(关键词) | 工作流 | 必读文档 |
|
|
67
62
|
| ------------------ | ------ | -------- |
|
|
68
|
-
| 账户列表 / 有哪些 / 有多少 / 列出全部某媒体 | W1 | `references/accounts/accounts.md
|
|
69
|
-
| 单户实时余额 | W1 | `references/accounts/accounts.md`(balance) |
|
|
70
|
-
| 多账户余额 / 续航不足预警 | **P2** | `references/accounts/accounts.md`(balance-scan) |
|
|
71
|
-
| 单户消耗 / 投放数据 | W1 / **P1** | `references/accounts/accounts.md`(stats) |
|
|
72
|
-
| 多账户消耗/对比汇总 | **P3** | `references/accounts/accounts.md`(accounts-digest) |
|
|
73
|
-
| 激活/充值账单明细 | W1 | `references/accounts/accounts.md`(account-active-bills) |
|
|
74
|
-
| 开户(六大媒体)/ 开户进度 | W2 | `references/accounts/open-account-by-media.md`(**首次须列全必填项**;Google 加 `
|
|
75
|
-
| 账户权限:分享/取消/解绑/重授权/MCC/BC/BM/关闭/提现/邮箱授权 | W9 | `references/accounts/accounts.md
|
|
76
|
-
| 充值 / 钱包 | W8 | `references/accounts/finance.md
|
|
77
|
-
| 转账记录 / 账户间转账 | W8 | `references/accounts/finance.md`(transfer) |
|
|
78
|
-
| 发票 / 开票 / 发票抬头 | W8 | `references/accounts/finance.md`(invoice / invoice-info) |
|
|
63
|
+
| 账户列表 / 有哪些 / 有多少 / 列出全部某媒体 | W1 | `references/accounts/accounts-list.md`(list-accounts) |
|
|
64
|
+
| 单户实时余额 | W1 | `references/accounts/accounts-balance-stats.md`(balance) |
|
|
65
|
+
| 多账户余额 / 续航不足预警 | **P2** | `references/accounts/accounts-balance-stats.md`(balance-scan) |
|
|
66
|
+
| 单户消耗 / 投放数据 | W1 / **P1** | `references/accounts/accounts-balance-stats.md`(stats) |
|
|
67
|
+
| 多账户消耗/对比汇总 | **P3** | `references/accounts/accounts-balance-stats.md`(accounts-digest) |
|
|
68
|
+
| 激活/充值账单明细 | W1 | `references/accounts/accounts-list.md`(account-active-bills) |
|
|
69
|
+
| 开户(六大媒体)/ 开户进度 | W2 | `references/accounts/open-account-by-media.md`(**首次须列全必填项**;Google 加 `open-account-google-ui.md`) |
|
|
70
|
+
| 账户权限:分享/取消/解绑/重授权/MCC/BC/BM/关闭/提现/邮箱授权 | W9 | `references/accounts/accounts-permissions.md` |
|
|
71
|
+
| 充值 / 钱包 / 转账 / 发票 / 抬头 | W8 | `references/accounts/finance.md` |
|
|
79
72
|
| 审计 / 误操作恢复 | — | `references/accounts/write-audit-restore.md` |
|
|
80
73
|
|
|
81
74
|
### Google 广告投放
|
|
82
75
|
|
|
83
76
|
| 用户意图(关键词) | 工作流 | 必读文档 |
|
|
84
77
|
| ------------------ | ------ | -------- |
|
|
85
|
-
| 新建搜索系列 / 出投放方案 /
|
|
86
|
-
| 广告系列/组/广告/关键词
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
78
|
+
| 新建搜索系列 / 出投放方案 / Excel·表格方案 / 官网生成搜索广告 | **W3** | `references/google-ads/google-ads-campaign-plan.md` + **`assets/campaign-create-template.json`**(先 Read)+ `assets/campaign-create-template.md`;有方案文件时加 `references/google-ads/rules/google-ads-plan-source-fidelity.md`。**≠ P8 / ≠ P9 / ≠ W5** |
|
|
79
|
+
| 广告系列/组/广告/关键词 **查询** / 拒审字段 | W3 | `references/google-ads/google-ads-read.md` |
|
|
80
|
+
| 广告系列/组/广告/关键词 **创建·编辑·启停** | W3 | `references/google-ads/google-ads-write.md` |
|
|
81
|
+
| PMax 系列 | W3 | **`assets/pmax-create-template.json`**(先 Read)+ `assets/pmax-create-template.md` + `references/google-ads/pmax-api.md` + `google-ads-write.md`(PMax 节) |
|
|
82
|
+
| AI 智投草稿 list/get/update/publish | W4 | `references/google-ads/google-ads-batch.md` |
|
|
83
|
+
| 拓词 / keyword / 关键词规划 / 月搜索量 / 竞争度 / Keyword Planner | **W5** | `references/analytics/keyword-planner-workflows.md`(**§零·C**;客户背景先 `references/analytics/rag.md`) |
|
|
90
84
|
| AI 广告优化记录 / 建议 | W6 | `references/operations/optimize.md` |
|
|
91
|
-
| 优化/合规 SOP | W3 / W6 | `references/google-ads/rules/README.md` |
|
|
85
|
+
| 优化/合规 SOP | W3 / W6 | `references/google-ads/rules/README.md`(**仅读索引表** → 再 Read **一个**具体 `rules/*.md`) |
|
|
92
86
|
|
|
93
|
-
###
|
|
87
|
+
### 分析与报告
|
|
94
88
|
|
|
95
89
|
| 用户意图(关键词) | 工作流 | 必读文档 |
|
|
96
90
|
| ------------------ | ------ | -------- |
|
|
97
|
-
|
|
|
98
|
-
| Google
|
|
99
|
-
| Meta/Facebook
|
|
100
|
-
| TikTok / Bing 周期报告 | **P4** | `references/analytics/account-analytics.md
|
|
101
|
-
| 账户级按日 Excel
|
|
91
|
+
| Google 广告账户诊断 / 健康检查(**含账户 ID**) | **P1** | `references/analytics/account-analytics.md` + `report-templates/google-ads-diagnosis.md`(可选对照 `report-templates/google-account-diagnosis-report.md`) |
|
|
92
|
+
| Google 账户周期 / 月度 / 季度报告(非 OKKI / 非询盘 / 非强调健康诊断) | **P4** | `report-templates/google-period-report.md` + `references/analytics/account-analytics.md`;Excel 加 `google-period-report-excel.md` |
|
|
93
|
+
| Meta/Facebook 周期或诊断 | **P4-FB** | `report-templates/meta-period-report.md` + `assets/meta-period-report-rules.md` + `references/analytics/facebook-analysis-guide.md` |
|
|
94
|
+
| TikTok / Bing 周期报告 | **P4** | `references/analytics/account-analytics.md` + 对应 `report-templates/*-period-report.md` |
|
|
95
|
+
| 账户级按日 Excel | **P4-DAILY** | `report-templates/stats-daily-excel.md` |
|
|
102
96
|
| 多账户 × 多维度批处理 | **P5** | `references/analytics/google-analysis-batch.md` + `references/analytics/account-analytics.md` |
|
|
103
|
-
| OKKI 周报 | **P6** | `
|
|
104
|
-
| Google 询盘分析 | **P7** | `
|
|
105
|
-
|
|
|
106
|
-
|
|
|
97
|
+
| OKKI 周报 | **P6** | `report-templates/okki-weekly-google-client.md` |
|
|
98
|
+
| Google 询盘分析 | **P7** | `report-templates/google-inquiry-analysis.md` + `references/analytics/geo-continents.json` |
|
|
99
|
+
| 网址/域名/官网 + 网站或网络诊断·检测·监测·报告 | **P8** | `references/core/intent-routing.md` §零 + `references/analytics/website-diagnosis-guide.md` + `assets/website-diagnosis-rules.md`(**≠ P9 ≠ W3**) |
|
|
100
|
+
| 市场/行业分析报告 / 战略市场 / KA 市场报告 | **P9** | `references/analytics/market-analysis-guide.md` + `assets/market-analysis-rules.md`(须 collect+render;**≠ P8**) |
|
|
107
101
|
| TSO 平台优化报告:列表/生成/推送 | W7 | `references/analytics/reporting.md` |
|
|
108
102
|
| RAG 知识库检索 | W5 | `references/analytics/rag.md` |
|
|
109
103
|
|
|
@@ -113,24 +107,19 @@ siluzan-tso -h # 查看帮助
|
|
|
113
107
|
| ------------------ | ------ | -------- |
|
|
114
108
|
| 智能预警:创建/查询/启停/触发记录 | W10 | `references/operations/forewarning.md` |
|
|
115
109
|
| TikTok / Meta 线索表单 | W11 | `references/operations/clue.md` |
|
|
116
|
-
| 日/周巡检 | W12 | `references/core/workflows.md`(W12)+ `references/accounts/accounts.md` |
|
|
117
|
-
| 宿主编排 / 投放自控 / 异常监控 / 自动优化 | — | `references/operations/hosted-automation-user-catalog.md
|
|
110
|
+
| 日/周巡检 | W12 | `references/core/workflows.md`(W12)+ `references/accounts/accounts-balance-stats.md` |
|
|
111
|
+
| 宿主编排 / 投放自控 / 异常监控 / 自动优化 | — | `references/operations/hosted-automation-user-catalog.md`(**仅当用户问自动化/巡检/熔断**;表内每行只 Read **一个** SOP) |
|
|
118
112
|
|
|
119
113
|
---
|
|
120
114
|
|
|
121
115
|
## Subagent 自主委派(可选)
|
|
122
116
|
|
|
123
|
-
宿主具备
|
|
117
|
+
宿主具备 Task / subagent 时:复杂报告或批处理(**P5 / P6 / P7**)、预计 CLI 输出很长 → Read `references/core/subagent-orchestration.md`;handoff 在 `snippets/handoff-p{5,6,7}-*.md`。写操作确认、`--commit`、401/`resume` 与最终交付留在主 Agent。
|
|
124
118
|
|
|
125
119
|
---
|
|
126
120
|
|
|
127
121
|
## 职责划分
|
|
128
122
|
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
| 写命令语义与读命令复核文档 | IF 条件计算与决策 |
|
|
133
|
-
| 金额、ID、字段口径一致 | 触达(钉钉/飞书)与工单 |
|
|
134
|
-
| references 与命令对齐 | 批处理循环、限速、重试;**可选** subagent 并行 |
|
|
135
|
-
|
|
136
|
-
详见 `references/operations/hosted-automation-self-control.md`、`references/operations/hosted-automation-monitoring-json.md`、`references/operations/hosted-automation-optimize-index.md`。
|
|
123
|
+
| 本 Skill + CLI | 宿主 / 外部调度 |
|
|
124
|
+
| -------------- | --------------- |
|
|
125
|
+
| 结构化拉数(`--json-out`)、写命令语义、金额/ID 口径 | 触发时机、IF 决策、触达(钉钉/飞书)、批处理限速;可选 subagent 并行 |
|
package/dist/skill/_meta.json
CHANGED
|
@@ -267,4 +267,4 @@ siluzan-tso ad batch diff --batch-id <taskId> --config-file ./campaign.json --js
|
|
|
267
267
|
| 否词误填 | `KeywordsForBatchJob` 含常见否词词根或与 `NegativeKeywordsForBatchJob` 重复 → **warnings**(不阻断,须 Agent 修正后再 create) |
|
|
268
268
|
| 实务 | 日期格式与先后、出价策略与配套字段一致 |
|
|
269
269
|
|
|
270
|
-
`ad campaign-validate` 通过不保证 BatchJob 成功(例如仅写 `DestinationUrl` 未写 `Finalurl` 时 validate 仍可能 ✅)。异步结果用 `ad batch get` 轮询;`HasFailed` / 部分失败时用 `ad batch diff` 对照 JSON 补缺,系列级失败时改 JSON 重提,勿在半成品上反复整包创建。**附加信息(Sitelink 等)batch 漏建时**:`batch diff` 后 **自动** `ad extension *` 补挂,勿仅询问用户(见 `references/google-ads/google-ads-campaign-plan.md` § batch diff 后自动补建)。写操作须 `--commit`,见 `references/google-ads/google-ads.md` § ad campaign-create。
|
|
270
|
+
`ad campaign-validate` 通过不保证 BatchJob 成功(例如仅写 `DestinationUrl` 未写 `Finalurl` 时 validate 仍可能 ✅)。异步结果用 `ad batch get` 轮询;`HasFailed` / 部分失败时用 `ad batch diff` 对照 JSON 补缺,系列级失败时改 JSON 重提,勿在半成品上反复整包创建。**附加信息(Sitelink 等)batch 漏建时**:`batch diff` 后 **自动** `ad extension *` 补挂,勿仅询问用户(见 `references/google-ads/google-ads-campaign-plan.md` § batch diff 后自动补建)。写操作须 `--commit`,见 `references/google-ads/google-ads-write.md` § ad campaign-create。
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
# References 索引
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> **运行时**:按 `SKILL.md` 路由表直接 Read 列出的文件,**不要**为找路径加载本文件全文。改文档结构见 `skill-authoring.md`。
|
|
4
4
|
|
|
5
5
|
## 基础与纪律
|
|
6
6
|
|
|
7
7
|
| 文件 | 用途 |
|
|
8
8
|
| ------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
9
9
|
| `references/core/setup.md` | 安装、登录(手机验证码优先)、配置、更新 |
|
|
10
|
-
| `references/core/agent-conventions.md` |
|
|
11
|
-
| `references/core/user-communication-guide.md` |
|
|
12
|
-
| `references/core/intent-routing.md` |
|
|
13
|
-
| `references/core/tips.md` | `--json-out`
|
|
14
|
-
| `references/core/playbooks.md` |
|
|
15
|
-
| `references/core/workflows.md` |
|
|
16
|
-
| `references/core/subagent-orchestration.md` |
|
|
10
|
+
| `references/core/agent-conventions.md` | 通用纪律 + §十四沟通 |
|
|
11
|
+
| `references/core/user-communication-guide.md` | 重定向 → `agent-conventions.md` §十四 |
|
|
12
|
+
| `references/core/intent-routing.md` | 报告/分析/拓词话术消歧 |
|
|
13
|
+
| `references/core/tips.md` | `--json-out` 脚本食谱 |
|
|
14
|
+
| `references/core/playbooks.md` | 分析/报告工作流(P1–P9) |
|
|
15
|
+
| `references/core/workflows.md` | 操作/管理工作流(W1–W12) |
|
|
16
|
+
| `references/core/subagent-orchestration.md` | 可选:P5/P6/P7 委派 subagent |
|
|
17
|
+
| `references/core/skill-authoring.md` | 维护约定(运行时勿加载) |
|
|
17
18
|
|
|
18
19
|
## 账户与财务
|
|
19
20
|
|
|
20
21
|
| 文件 | 用途 |
|
|
21
22
|
| ----------------------------------------------- | ---------------------------------------------------------------- |
|
|
22
|
-
| `references/accounts/accounts.md` |
|
|
23
|
+
| `references/accounts/accounts.md` | **账户域索引**(按任务再读子文件) |
|
|
24
|
+
| `references/accounts/accounts-list.md` | list-accounts、激活账单、开户申请历史 |
|
|
25
|
+
| `references/accounts/accounts-balance-stats.md` | balance、**balance-scan(P2)**、stats、**accounts-digest(P3)** |
|
|
26
|
+
| `references/accounts/accounts-permissions.md` | 分享/解绑/重授权/MCC/BC/BM/关闭/提现/邮箱授权 |
|
|
23
27
|
| `references/accounts/currency.md` | CNY/USD 字段来源、符号、跨币种禁止求和 |
|
|
24
28
|
| `references/accounts/open-account-by-media.md` | 各媒体开户命令与参数 |
|
|
25
29
|
| `references/accounts/open-account-google-ui.md` | Google 开户字段与 Agent 流程 |
|
|
@@ -30,7 +34,10 @@
|
|
|
30
34
|
|
|
31
35
|
| 文件 | 用途 |
|
|
32
36
|
| --------------------------------------------------- | ------------------------------------ |
|
|
33
|
-
| `references/google-ads/google-ads.md` | Google Ads
|
|
37
|
+
| `references/google-ads/google-ads.md` | **Google Ads 索引**(金额/ID Gotchas) |
|
|
38
|
+
| `references/google-ads/google-ads-read.md` | 系列/组/创意/关键词/搜索词/地理查询 |
|
|
39
|
+
| `references/google-ads/google-ads-write.md` | 创建/编辑/启停/扩展/PMax/设备出价 |
|
|
40
|
+
| `references/google-ads/google-ads-batch.md` | batch 流水线、ad batch、智投草稿 |
|
|
34
41
|
| `references/google-ads/google-ads-campaign-plan.md` | 搜索系列 7 步流水线、validate/create |
|
|
35
42
|
| `references/google-ads/pmax-api.md` | PMax 网关路径、金额口径 |
|
|
36
43
|
| `references/analytics/keyword-planner-workflows.md` | keyword / google-analysis 拓词 |
|
|
@@ -77,9 +84,9 @@
|
|
|
77
84
|
| `pmax-assets-update-template.json` | PMax 素材更新 |
|
|
78
85
|
| `pmax-patch-campaign-template.json` | PMax 系列 patch |
|
|
79
86
|
|
|
80
|
-
## 报告模板纲要(`
|
|
87
|
+
## 报告模板纲要(`report-templates/`)
|
|
81
88
|
|
|
82
|
-
> 安装包内与 `report-templates/*.md` 同源;HTML 样式在 `report-templates/*.html`。索引见 `
|
|
89
|
+
> 安装包内与 `report-templates/*.md` 同源;HTML 样式在 `report-templates/*.html`。索引见 `report-templates/README.md`。
|
|
83
90
|
|
|
84
91
|
| 文件 | 适用场景 |
|
|
85
92
|
| ---------------------------------------------------------------- | ------------------------------ |
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# 余额、消耗与多账户汇总
|
|
2
|
+
|
|
3
|
+
> 流程见 `playbooks.md` **P2** / **P3**;单户读数见 `workflows.md` **W1**。币种口径见 `currency.md`。
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- balance
|
|
8
|
+
- balance-scan(P2)
|
|
9
|
+
- accounts-digest(P3)
|
|
10
|
+
- stats
|
|
11
|
+
|
|
12
|
+
## balance-scan — 多账户余额续航扫描
|
|
13
|
+
|
|
14
|
+
一键扫描某媒体下账户余额,筛出续航天数不足的账户。**P2 必用**;**禁止**外层循环逐户 `balance`。
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
siluzan-tso balance-scan -m <媒体类型> [选项]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
| 选项 | 说明 | 默认 |
|
|
21
|
+
| ---- | ---- | ---- |
|
|
22
|
+
| `-m, --media <type>` | 必填:`Google \| TikTok \| Yandex \| MetaAd \| BingV2 \| Kwai` | — |
|
|
23
|
+
| `-a, --accounts <ids>` | 指定 `mediaCustomerId`(逗号分隔);**跳过清单翻页**,拉取后全部输出(不按阈值过滤) | — |
|
|
24
|
+
| `--threshold-days <n>` | 剩余续航天数阈值(按近 7 日日均消耗估算) | `7` |
|
|
25
|
+
| `--min-balance <n>` | 绝对余额阈值(与 threshold 取并集) | — |
|
|
26
|
+
| `--min-daily-spend <n>` | 日均消耗低于此值视为僵尸账户,不做续航估算 | `0.01` |
|
|
27
|
+
| `--target-days <n>` | 建议充值目标续航天数 | `30` |
|
|
28
|
+
| `--page-size <n>` / `--max-pages <n>` | 全量扫描分页(上限 500 / 200) | `200` / `20` |
|
|
29
|
+
| `--json-out` | Agent 推荐落盘 | — |
|
|
30
|
+
|
|
31
|
+
**示例:**
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# 全量巡检(Playbook P2)
|
|
35
|
+
siluzan-tso balance-scan -m Google --threshold-days 7 --json-out ./snap-p2
|
|
36
|
+
|
|
37
|
+
# 已知子集
|
|
38
|
+
siluzan-tso balance-scan -m BingV2 -a id1,id2,id3 --json-out ./snap-p2-subset
|
|
39
|
+
|
|
40
|
+
# Meta 余额续航
|
|
41
|
+
siluzan-tso balance-scan -m MetaAd --json-out ./snap-p2-meta
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**读盘要点**:按 `remainingDays` 升序交付;`hitReason="none"` 表示未触阈值;用 **`dailySpend`** 做日均,勿把 `stats` 区间合计 `spend` 当「每天消耗」。与 `balance` / `accounts-digest` 分工见 `references/core/agent-conventions.md` §八。
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## balance — 查询实时余额
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
siluzan-tso balance -m <媒体类型> -a <账户ID列表>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
| 选项 | 说明 |
|
|
55
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
56
|
+
| `-m, --media <type>` | 媒体类型(必填):`Google \| TikTok \| Yandex \| MetaAd \| BingV2 \| Kwai`(MetaAd 走 `GetMediaAccountInfo`,余额字段为 `spend_cap`) |
|
|
57
|
+
| `-a, --accounts <ids>` | 账户 `mediaCustomerId`(数字 ID),多个用逗号分隔(必填)。**注意:不是 `entityId`** |
|
|
58
|
+
| `--json-out` | 输出原始 JSON;不支持或查询失败时 stdout 为 `{"ok":false,"error":"..."}` |
|
|
59
|
+
|
|
60
|
+
**示例:**
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# 查询单个 Google 账户余额(传 mediaCustomerId)
|
|
64
|
+
siluzan-tso balance -m Google -a 6326027735
|
|
65
|
+
|
|
66
|
+
# 查询多个 TikTok 账户余额
|
|
67
|
+
siluzan-tso balance -m TikTok -a 1234567890,9876543210
|
|
68
|
+
|
|
69
|
+
# 查询 Meta 广告账户余额
|
|
70
|
+
siluzan-tso balance -m MetaAd -a <mediaCustomerId>
|
|
71
|
+
|
|
72
|
+
# JSON 输出,供脚本使用
|
|
73
|
+
siluzan-tso balance -m Google -a 6326027735 --json-out ./snap
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**单户余额与续航**:`balance` 只反映当前余额;判断「还能跑几天 / 是否够花」需结合 `stats`(或业务侧日均消耗)。多账户续航预警用 `balance-scan`(P2)、多账户投放画像用下文 `accounts-digest`(P3)。
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## accounts-digest — 多账户投放画像汇总
|
|
81
|
+
|
|
82
|
+
一条命令替代 AI 对每个账户循环 `list-accounts -k` + `stats`。**多账户汇总表、对比消耗、跨账户巡检** 应优先本命令,禁止外层 for-loop 逐户 `stats`。
|
|
83
|
+
|
|
84
|
+
> **数据时效性**:与 `stats` / `balance-scan` 相同(Google `account-spend-overview` 分流;TikTok/Yandex/BingV2/Kwai/**MetaAd** 为截至昨天的 `accountsoverview`)。完整表见 `references/analytics/account-analytics.md` 顶部。
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
siluzan-tso accounts-digest -m <媒体类型> [选项]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
| 选项 | 说明 | 默认 |
|
|
91
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------- | ------- |
|
|
92
|
+
| `-m, --media <type>` | 媒体类型(必填):`Google \| TikTok \| Yandex \| MetaAd \| BingV2 \| Kwai` | — |
|
|
93
|
+
| `-a, --accounts <ids>` | 指定 `mediaCustomerId`,逗号分隔;**留空**则翻页拉该媒体全部账户 | — |
|
|
94
|
+
| `--start <YYYY-MM-DD>` | 统计开始日期(SKILL 要求 AI 先与用户确认区间) | 近 7 天 |
|
|
95
|
+
| `--end <YYYY-MM-DD>` | 统计结束日期 | 昨天 |
|
|
96
|
+
| `--min-spend <n>` | 过滤:区间内消耗 ≤ 此值的账户不返回 | `0` |
|
|
97
|
+
| `--page-size <n>` | 全量扫描时清单分页大小(上限 500) | `200` |
|
|
98
|
+
| `--max-pages <n>` | 全量扫描时最多页数(上限 200) | `20` |
|
|
99
|
+
| `--json-out` | stdout 输出完整 JSON() | — |
|
|
100
|
+
| `--json-out <path>` | **Agent 推荐**:落盘目录或 `*.json` 文件;stdout 一行摘要(含 `outlineFile`、`writtenFiles`、`manifestFile`) | — |
|
|
101
|
+
|
|
102
|
+
**`--json-out` 落盘**:
|
|
103
|
+
|
|
104
|
+
- 目录模式典型文件:`accounts-digest-<媒体小写>.json`、同 stem 的 `*.outline.txt`、`cli-manifest-<媒体小写>.json`(读盘协议见 `references/core/agent-conventions.md` §三)。
|
|
105
|
+
- 响应结构:`{ ok, data: { items: [...] }, meta: { media, window, scanned, returned, source, totals, currencyNote, generatedAt } }`。
|
|
106
|
+
- `meta.source`:`list` = 全量翻清单后拉数;`subset` = 传了 `-a`,跳过清单翻页(**`advertiserName` 会缺失**,公司名列显示 `-`)。
|
|
107
|
+
|
|
108
|
+
**与 `stats` / `balance-scan` 的分工**见 `references/core/agent-conventions.md` §八 批量任务硬约束。
|
|
109
|
+
|
|
110
|
+
**示例:**
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# 指定账户子集(跳过清单翻页,Playbook P3)
|
|
114
|
+
siluzan-tso accounts-digest -m Google -a 6326027735,4256317784 \
|
|
115
|
+
--start 2026-04-01 --end 2026-04-15 \
|
|
116
|
+
--json-out ./snap-p3
|
|
117
|
+
|
|
118
|
+
# 扫描某媒体全部账户(内部翻页,勿先 list-accounts 再拼 -a)
|
|
119
|
+
siluzan-tso accounts-digest -m BingV2 --start 2026-05-01 --end 2026-05-24 \
|
|
120
|
+
--json-out ./snap-digest-bing
|
|
121
|
+
|
|
122
|
+
# 过滤低消耗账户
|
|
123
|
+
siluzan-tso accounts-digest -m Google -a id1,id2 --min-spend 10 \
|
|
124
|
+
--start 2026-04-01 --end 2026-04-15 --json-out ./snap-p3
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**`data.items[]` 主要字段**:`mediaCustomerId`、`name`、`advertiserName`、`currencyCode`、`balance`、`spend`(**区间合计**,同 `stats`)、`impressions`、`clicks`、`conversions`、`ctr`(%)、`cpc`、`cpa`。跨币种汇总见 `references/accounts/currency.md`(**禁止**对 `meta.totals` 跨币种直接当最终结论)。
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## stats — 查询投放消耗数据
|
|
132
|
+
|
|
133
|
+
> **数据时效性**:
|
|
134
|
+
> - **Google**:走 `account-spend-overview`(2026-05 起),后端按日期窗口分流——
|
|
135
|
+
> - 窗口完全在历史 → `database` 模式:含余额、状态、币种、账户名、当期展点消等完整字段;
|
|
136
|
+
> - 窗口包含今天 → `googleCombined` 模式:只返回实时聚合的展点消(**没有**余额/状态/币种/账户名)。
|
|
137
|
+
> - **TikTok / Yandex / BingV2 / Kwai**:走旧版 `accountsoverview`,每日凌晨同步昨天数据,**不能查今天**。判断这几家的「今天/当天/今日消耗」仍需走 `google-analysis(-batch) --sections overview`(仅 Google)。
|
|
138
|
+
> - 完整时效性表见 `references/analytics/account-analytics.md` 顶部。
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
siluzan-tso stats -m <媒体类型> [选项]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
| 选项 | 说明 | 默认 |
|
|
145
|
+
| ----------------------------- | ----------------------------------------------------------------------------- | ------ |
|
|
146
|
+
| `-m, --media <type>` | 媒体类型(必填) | — |
|
|
147
|
+
| `-a, --accounts <ids>` | 账户 `mediaCustomerId`(数字 ID),逗号分隔(**必填**,接口不支持查全部账户) | — |
|
|
148
|
+
| `--start <YYYY-MM-DD>` | 开始日期 | 7 天前 |
|
|
149
|
+
| `--end <YYYY-MM-DD>` | 结束日期 | 昨天 |
|
|
150
|
+
| `--start-date` / `--end-date` | 与 `--start` / `--end` 同义(CLI 别名,与 SKILL Playbook 一致) | — |
|
|
151
|
+
| `--by-day` | 按日明细(`items[]` 带 `date`);按日 Excel 见 `stats-daily-excel.md` | 关 |
|
|
152
|
+
| `--json-out` | 输出原始 JSON;**失败时 stdout 仍为 JSON**(`{"ok":false,"error":"..."}`) | — |
|
|
153
|
+
|
|
154
|
+
**口径(易错)**:默认 **`spend` = 区间合计**(非日消耗)。按日加 `--by-day`;单日可用 `start=end`;日均用 `spend/天数` 或 `balance-scan` 的 `dailySpend`。
|
|
155
|
+
|
|
156
|
+
**示例:**
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
siluzan-tso stats -m Google -a <id>
|
|
160
|
+
siluzan-tso stats -m Google -a <id> --start 2026-03-01 --end 2026-03-31
|
|
161
|
+
siluzan-tso stats -m Yandex -a <id> --start <S> --end <E> --by-day --json-out ./snap/daily.json
|
|
162
|
+
siluzan-tso stats -m BingV2 -a <id1>,<id2> --start 2026-03-01
|
|
163
|
+
siluzan-tso stats -m Google -a <id> --json-out ./snap
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|