siluzan-tso-cli 1.1.29-beta.2 → 1.1.29-beta.21
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 +3174 -867
- package/dist/skill/AGENTS.md +30 -31
- package/dist/skill/SKILL.md +16 -33
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/assets/campaign-create-keyword-test.fixed.json +10 -33
- package/dist/skill/assets/campaign-create-template.json +2 -0
- package/dist/skill/assets/campaign-create-template.md +114 -99
- package/dist/skill/assets/market-analysis-rules.md +55 -55
- package/dist/skill/assets/meta-period-report-rules.md +61 -60
- package/dist/skill/assets/pmax-asset-group-template.json +12 -4
- package/dist/skill/assets/pmax-asset-group-template.md +25 -0
- package/dist/skill/assets/pmax-brand-assets-template.json +25 -0
- package/dist/skill/assets/pmax-brand-assets-template.md +22 -0
- package/dist/skill/assets/pmax-brand-guidelines-enable-template.json +24 -0
- package/dist/skill/assets/pmax-brand-guidelines-enable-template.md +22 -0
- package/dist/skill/assets/pmax-create-template.json +41 -2
- package/dist/skill/assets/pmax-create-template.md +84 -51
- package/dist/skill/assets/pmax-lead-form-template.json +36 -0
- package/dist/skill/assets/pmax-lead-form-template.md +70 -0
- package/dist/skill/assets/pmax-signals-template.json +2 -6
- package/dist/skill/assets/pmax-whatsapp-template.json +26 -0
- package/dist/skill/assets/pmax-whatsapp-template.md +45 -0
- package/dist/skill/assets/website-diagnosis-rules.md +67 -67
- package/dist/skill/references/README.md +78 -65
- package/dist/skill/references/accounts/accounts.md +99 -105
- package/dist/skill/references/accounts/finance.md +23 -79
- package/dist/skill/references/accounts/open-account-by-media.md +84 -81
- package/dist/skill/references/accounts/open-account-google-ui.md +24 -24
- package/dist/skill/references/analytics/account-analytics.md +94 -103
- package/dist/skill/references/analytics/facebook-analysis-guide.md +61 -61
- package/dist/skill/references/analytics/google-analysis-batch.md +2 -2
- package/dist/skill/references/analytics/keyword-planner-workflows.md +22 -23
- package/dist/skill/references/analytics/market-analysis-guide.md +31 -25
- package/dist/skill/references/analytics/rag.md +20 -20
- package/dist/skill/references/analytics/reporting.md +4 -4
- package/dist/skill/references/analytics/website-diagnosis-guide.md +24 -24
- package/dist/skill/references/core/agent-conventions.md +136 -106
- package/dist/skill/references/core/cli-enums.md +47 -53
- package/dist/skill/references/core/playbooks.md +42 -41
- package/dist/skill/references/core/subagent-orchestration.md +40 -40
- package/dist/skill/references/core/tips.md +18 -61
- package/dist/skill/references/core/workflows.md +36 -29
- package/dist/skill/references/google-ads/google-ads-campaign-plan.md +25 -24
- package/dist/skill/references/google-ads/google-ads.md +81 -57
- package/dist/skill/references/google-ads/pmax-api.md +138 -34
- package/dist/skill/references/google-ads/rules/README.md +15 -15
- package/dist/skill/references/google-ads/rules/google-ads-account-audit.md +22 -22
- package/dist/skill/references/google-ads/rules/google-ads-compliance.md +27 -27
- package/dist/skill/references/google-ads/rules/google-ads-keyword-strategy.md +15 -15
- package/dist/skill/references/google-ads/rules/google-ads-keyword-taxonomy.md +32 -22
- package/dist/skill/references/google-ads/rules/google-ads-launch-plan-template.md +32 -30
- package/dist/skill/references/google-ads/rules/google-ads-pmax-guide.md +3 -1
- package/dist/skill/references/misc/tso-home.md +8 -8
- package/dist/skill/references/operations/clue.md +1 -1
- package/dist/skill/references/operations/forewarning.md +1 -1
- package/dist/skill/references/operations/hosted-automation-optimize-index.md +2 -2
- package/dist/skill/references/operations/hosted-automation-scenarios.md +5 -5
- package/dist/skill/references/operations/hosted-automation-self-control.md +15 -15
- package/dist/skill/references/operations/hosted-automation-user-catalog.md +13 -13
- package/dist/skill/references/operations/optimize.md +8 -8
- package/dist/skill/references/report-templates/README.md +45 -0
- package/dist/skill/references/report-templates/REPORT-WORKFLOW.md +114 -0
- package/dist/skill/references/report-templates/bing-period-report.md +65 -0
- package/dist/skill/references/report-templates/google-account-diagnosis-report.md +83 -0
- package/dist/skill/references/report-templates/google-ads-diagnosis.md +378 -0
- package/dist/skill/references/report-templates/google-inquiry-analysis.md +543 -0
- package/dist/skill/references/report-templates/google-period-report-excel.md +126 -0
- package/dist/skill/references/report-templates/google-period-report.md +60 -0
- package/dist/skill/references/report-templates/market-analysis-report.md +40 -0
- package/dist/skill/references/report-templates/meta-account-diagnosis-report.md +74 -0
- package/dist/skill/references/report-templates/meta-period-report-excel.md +230 -0
- package/dist/skill/references/report-templates/meta-period-report.md +219 -0
- package/dist/skill/references/report-templates/okki-weekly-google-client.md +217 -0
- package/dist/skill/references/report-templates/tiktok-period-report.md +56 -0
- package/dist/skill/references/report-templates/website-diagnosis-report.md +79 -0
- package/dist/skill/report-templates/README.md +16 -14
- package/dist/skill/report-templates/REPORT-WORKFLOW.md +13 -13
- package/dist/skill/report-templates/google-account-diagnosis-report.md +1 -1
- package/dist/skill/report-templates/google-ads-diagnosis.md +21 -21
- package/dist/skill/report-templates/google-inquiry-analysis.md +44 -44
- package/dist/skill/report-templates/google-period-report-excel.md +24 -24
- package/dist/skill/report-templates/google-period-report.md +23 -23
- package/dist/skill/report-templates/market-analysis-report.md +1 -1
- package/dist/skill/report-templates/meta-period-report-excel.md +72 -64
- package/dist/skill/report-templates/meta-period-report.html +706 -428
- package/dist/skill/report-templates/meta-period-report.md +61 -60
- package/dist/skill/report-templates/okki-weekly-google-client.md +26 -26
- package/dist/skill/report-templates/report-template-academic.html +1 -1
- package/dist/skill/report-templates/report-template-dark.html +1 -1
- package/dist/skill/report-templates/report-template-formal.html +1 -1
- package/dist/skill/report-templates/report-template-mobile.html +1 -1
- package/dist/skill/report-templates/report-template-onepager.html +1 -1
- package/dist/skill/report-templates/report-template-print.html +1 -1
- package/dist/skill/report-templates/report-template.html +1 -1
- package/dist/skill/report-templates/website-diagnosis-report.html +1731 -1653
- package/dist/skill/report-templates/website-diagnosis-report.md +21 -23
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/dist/skill/snippets/handoff-p7-inquiry.md +5 -5
- package/eval/cases/accounts-entityid-vs-mediaccustomerid.scenario.json +2 -14
- package/eval/cases/accounts-mcc-bind-inquiry.scenario.json +1 -3
- package/eval/cases/accounts-single-balance-not-bulk.scenario.json +3 -14
- package/eval/cases/budget-display-not-raw-micros.scenario.json +1 -8
- package/eval/cases/clue-meta-leads-json.scenario.json +2 -14
- package/eval/cases/clue-tiktok-leads-json.scenario.json +2 -11
- package/eval/cases/destructive-account-delink-needs-confirm.scenario.json +3 -9
- package/eval/cases/destructive-forewarning-delete-needs-confirm.scenario.json +3 -9
- package/eval/cases/destructive-invoice-apply-needs-confirm.scenario.json +3 -9
- package/eval/cases/facebook-analysis-google-section-aliases.scenario.json +2 -11
- package/eval/cases/facebook-analysis-not-google-keywords.scenario.json +3 -10
- package/eval/cases/facebook-analysis-period-default.scenario.json +2 -14
- package/eval/cases/finance-invoice-info-list.scenario.json +3 -11
- package/eval/cases/forewarning-list-google.scenario.json +3 -14
- package/eval/cases/google-ads-no-structural-without-confirm.scenario.json +2 -6
- package/eval/cases/google-analysis-keywords-route.scenario.json +2 -14
- package/eval/cases/human-p1-multiturn.scenario.json +1 -5
- package/eval/cases/meta-single-balance-not-bulk.scenario.json +3 -17
- package/eval/cases/no-legacy-json-flag.scenario.json +2 -6
- package/eval/cases/open-account-google-noninteractive.scenario.json +1 -3
- package/eval/cases/open-account-tiktok-license-file.scenario.json +1 -3
- package/eval/cases/optimize-list-by-account.scenario.json +3 -11
- package/eval/cases/p1-single-account-profile.scenario.json +1 -11
- package/eval/cases/p2-balance-scan-bulk.scenario.json +2 -9
- package/eval/cases/p3-accounts-digest.scenario.json +1 -5
- package/eval/cases/p4-fb-meta-period-report.scenario.json +2 -12
- package/eval/cases/p4-period-report-window.scenario.json +1 -8
- package/eval/cases/pmax-asset-group-create-with-bg.scenario.json +15 -0
- package/eval/cases/pmax-brand-edit-routing.scenario.json +12 -0
- package/eval/cases/pmax-edit-not-campaign-edit.scenario.json +15 -0
- package/eval/cases/pmax-enable-brand-guidelines.scenario.json +15 -0
- package/eval/cases/pmax-no-assets-update-brand-fields.scenario.json +12 -0
- package/eval/cases/rag-before-keyword-expand.scenario.json +1 -11
- package/eval/cases/rag-list-then-query.scenario.json +2 -14
- package/eval/cases/report-list-google.scenario.json +2 -11
- package/eval/cases/report-push-list-google.scenario.json +2 -11
- package/eval/cases/setup-login-or-env.scenario.json +1 -3
- package/eval/cases/setup-siluzan-data-permission-env.scenario.json +1 -3
- package/eval/cases/tiktok-bc-bind-inquiry.scenario.json +2 -6
- package/eval/cases/time-range-user-delegates-default.scenario.json +1 -8
- package/eval/cases/tips-json-out-filtering.scenario.json +1 -3
- package/eval/cases/tips-large-json-pagination.scenario.json +1 -3
- package/eval/cases/uj-ad-campaign-validate-before-create-stub.scenario.json +2 -11
- package/eval/cases/uj-ad-outdoor-campgear-search-plan.scenario.json +1 -3
- package/eval/cases/uj-analytics-30d-pdf-campaign-device-geo.scenario.json +6 -18
- package/eval/cases/uj-analytics-compare-google-tiktok-last-month-roi.scenario.json +1 -8
- package/eval/cases/uj-analytics-google-weekly-trends-campaigns-keywords.scenario.json +2 -11
- package/eval/cases/uj-analytics-report-push-weekly-email.scenario.json +1 -3
- package/eval/cases/uj-finance-invoice-records-this-month.scenario.json +2 -11
- package/eval/cases/uj-life-newbie-siluzan-google-end-to-end.scenario.json +1 -4
- package/eval/cases/uj-ops-google-accounts-list-normal.scenario.json +2 -17
- package/eval/cases/uj-ops-google-yesterday-spend-conversions.scenario.json +2 -14
- package/eval/cases/uj-ops-pause-worst-adgroup-confirm.scenario.json +2 -6
- package/eval/cases/uj-ops-tiktok-leads-last-week.scenario.json +3 -17
- package/eval/cases/uj-patrol-cpc-spike-adgroups-over-15.scenario.json +1 -5
- package/eval/cases/uj-patrol-forewarning-create-daily-cap-3000.scenario.json +1 -3
- package/eval/cases/uj-patrol-forewarning-trigger-records.scenario.json +3 -17
- package/eval/cases/uj-patrol-google-balances-low.scenario.json +2 -11
- package/eval/cases/uj-roi-optimize-records-then-execute-cautiously.scenario.json +3 -14
- package/eval/cases/uj-roi-search-terms-add-negative-keywords.scenario.json +2 -14
- package/eval/stub-fixtures/facebook-analysis.json +24 -4
- package/eval/stub-fixtures/meta-overview.json +4 -1
- package/eval/stub-fixtures/pmax-asset-group-create-ok.json +12 -0
- package/eval/stub-fixtures/pmax-brand-assets-edit-ok.json +11 -0
- package/eval/stub-fixtures/pmax-brand-guidelines-enable-ok.json +11 -0
- package/eval/stub-fixtures/pmax-edit-ok.json +11 -0
- package/eval/stub-fixtures/pmax-get-bg-on.json +20 -0
- package/package.json +1 -1
- package/dist/skill/references/core/deliverable-preflight.md +0 -109
|
@@ -1,92 +1,105 @@
|
|
|
1
1
|
# References 索引
|
|
2
2
|
|
|
3
|
-
> Agent 按 `SKILL.md` 路由表(意图 → 工作流 → 必读文档)定位:分析/报告类线性步骤在 `core/playbooks.md`(P1–P9),操作/管理类在 `core/workflows.md`(W1–W12),命令参数在各域 reference
|
|
3
|
+
> Agent 按 `SKILL.md` 路由表(意图 → 工作流 → 必读文档)定位:分析/报告类线性步骤在 `core/playbooks.md`(P1–P9),操作/管理类在 `core/workflows.md`(W1–W12),命令参数在各域 reference。
|
|
4
4
|
|
|
5
5
|
## 基础与纪律
|
|
6
6
|
|
|
7
|
-
| 文件
|
|
8
|
-
|
|
|
9
|
-
| `core/setup.md`
|
|
10
|
-
| `core/agent-conventions.md`
|
|
11
|
-
| `core/tips.md`
|
|
12
|
-
| `core/
|
|
13
|
-
| `core/
|
|
14
|
-
| `core/
|
|
15
|
-
| `core/skill-authoring.md` | Skill 文档维护最佳实践(维护者) |
|
|
16
|
-
| `core/subagent-orchestration.md` | **可选**:主 Agent 自主决定是否委派 subagent(P5/P6/P7) |
|
|
7
|
+
| 文件 | 用途 |
|
|
8
|
+
| -------------------------------- | ------------------------------------------------------------------------------------------- |
|
|
9
|
+
| `core/setup.md` | 安装、登录(手机验证码优先)、配置、更新 |
|
|
10
|
+
| `core/agent-conventions.md` | **Agent 必读 · 唯一规则真相源**:加载纪律、数据处理协议、硬规范、时间/币种/批量、交付前自检 |
|
|
11
|
+
| `core/tips.md` | `--json-out` 脚本食谱(node -e 示例、文件命名、分页) |
|
|
12
|
+
| `core/playbooks.md` | **工作流目录 · 分析/报告类**(P1–P9,统一卡片:触发/必读/步骤/交付) |
|
|
13
|
+
| `core/workflows.md` | **工作流目录 · 操作/管理类**(W1–W12,同卡片格式) |
|
|
14
|
+
| `core/subagent-orchestration.md` | **可选**:主 Agent 自主决定是否委派 subagent(P5/P6/P7) |
|
|
17
15
|
|
|
18
16
|
## 账户与财务
|
|
19
17
|
|
|
20
|
-
| 文件
|
|
21
|
-
|
|
|
22
|
-
| `accounts/accounts.md`
|
|
23
|
-
| `accounts/currency.md`
|
|
24
|
-
| `accounts/open-account-by-media.md`
|
|
25
|
-
| `accounts/open-account-google-ui.md` | Google 开户字段与 Agent 流程
|
|
26
|
-
| `accounts/finance.md`
|
|
27
|
-
| `accounts/write-audit-restore.md`
|
|
18
|
+
| 文件 | 用途 |
|
|
19
|
+
| ------------------------------------ | ---------------------------------------------------------------- |
|
|
20
|
+
| `accounts/accounts.md` | 列表、余额、消耗、分享、MCC/BC/BM、balance-scan、accounts-digest |
|
|
21
|
+
| `accounts/currency.md` | CNY/USD 字段来源、符号、跨币种禁止求和 |
|
|
22
|
+
| `accounts/open-account-by-media.md` | 各媒体开户命令与参数 |
|
|
23
|
+
| `accounts/open-account-google-ui.md` | Google 开户字段与 Agent 流程 |
|
|
24
|
+
| `accounts/finance.md` | 转账、开票、充值 |
|
|
25
|
+
| `accounts/write-audit-restore.md` | 写审计、`--commit`、restore |
|
|
28
26
|
|
|
29
27
|
## Google 广告
|
|
30
28
|
|
|
31
|
-
| 文件
|
|
32
|
-
|
|
|
33
|
-
| `google-ads/google-ads.md`
|
|
29
|
+
| 文件 | 用途 |
|
|
30
|
+
| ---------------------------------------- | ------------------------------------ |
|
|
31
|
+
| `google-ads/google-ads.md` | Google Ads CRUD、batch、拒审字段 |
|
|
34
32
|
| `google-ads/google-ads-campaign-plan.md` | 搜索系列 7 步流水线、validate/create |
|
|
35
|
-
| `google-ads/pmax-api.md`
|
|
36
|
-
| `analytics/keyword-planner-workflows.md` | keyword / google-analysis 拓词
|
|
37
|
-
| `google-ads/rules/README.md`
|
|
33
|
+
| `google-ads/pmax-api.md` | PMax 网关路径、金额口径 |
|
|
34
|
+
| `analytics/keyword-planner-workflows.md` | keyword / google-analysis 拓词 |
|
|
35
|
+
| `google-ads/rules/README.md` | 优化/合规 SOP 索引 |
|
|
38
36
|
|
|
39
37
|
## 分析与报告
|
|
40
38
|
|
|
41
|
-
| 文件
|
|
42
|
-
|
|
|
43
|
-
| `analytics/account-analytics.md`
|
|
44
|
-
| `analytics/website-diagnosis-guide.md` | 网站诊断 CLI、6 模块规则、对齐 tso_agent
|
|
45
|
-
| `analytics/market-analysis-guide.md`
|
|
46
|
-
| `assets/market-analysis-rules.md`
|
|
39
|
+
| 文件 | 用途 |
|
|
40
|
+
| -------------------------------------- | ------------------------------------------- |
|
|
41
|
+
| `analytics/account-analytics.md` | 拉数、数据时效性、诊断模板 |
|
|
42
|
+
| `analytics/website-diagnosis-guide.md` | 网站诊断 CLI、6 模块规则、对齐 tso_agent |
|
|
43
|
+
| `analytics/market-analysis-guide.md` | 战略市场分析 CLI、Agent 调研流程 |
|
|
44
|
+
| `assets/market-analysis-rules.md` | 市场分析报告章节与 HTML 版式(Agent 必读) |
|
|
47
45
|
| `analytics/facebook-analysis-guide.md` | Facebook 字段、与 Google 报告对照、撰写清单 |
|
|
48
|
-
| `analytics/google-analysis-batch.md`
|
|
49
|
-
| `analytics/reporting.md`
|
|
50
|
-
| `analytics/rag.md`
|
|
51
|
-
| `analytics/geo-continents.json`
|
|
46
|
+
| `analytics/google-analysis-batch.md` | 多账户批处理 run/resume/status |
|
|
47
|
+
| `analytics/reporting.md` | TSO 优化报告生成与推送 |
|
|
48
|
+
| `analytics/rag.md` | 知识库 list/query |
|
|
49
|
+
| `analytics/geo-continents.json` | 国家→大洲映射(询盘分析) |
|
|
52
50
|
|
|
53
51
|
## 运营工具
|
|
54
52
|
|
|
55
|
-
| 文件
|
|
56
|
-
|
|
|
57
|
-
| `operations/optimize.md`
|
|
58
|
-
| `operations/forewarning.md`
|
|
59
|
-
| `operations/clue.md`
|
|
60
|
-
| `operations/hosted-automation-user-catalog.md`
|
|
61
|
-
| `operations/hosted-automation-self-control.md`
|
|
62
|
-
| `operations/hosted-automation-monitoring-json.md` | 异常监控 JSON 键名
|
|
63
|
-
| `operations/hosted-automation-optimize-index.md`
|
|
64
|
-
| `operations/hosted-automation-scenarios.md`
|
|
53
|
+
| 文件 | 用途 |
|
|
54
|
+
| ------------------------------------------------- | ---------------------- |
|
|
55
|
+
| `operations/optimize.md` | AI 优化建议记录 |
|
|
56
|
+
| `operations/forewarning.md` | 智能预警 |
|
|
57
|
+
| `operations/clue.md` | TikTok / Meta 线索表单 |
|
|
58
|
+
| `operations/hosted-automation-user-catalog.md` | 高阶自动化能力目录 |
|
|
59
|
+
| `operations/hosted-automation-self-control.md` | 预算/CPA/空耗自控 SOP |
|
|
60
|
+
| `operations/hosted-automation-monitoring-json.md` | 异常监控 JSON 键名 |
|
|
61
|
+
| `operations/hosted-automation-optimize-index.md` | 自动优化 SOP 索引 |
|
|
62
|
+
| `operations/hosted-automation-scenarios.md` | 宿主编排场景索引 |
|
|
65
63
|
|
|
66
64
|
## Assets 模板(`../assets/`)
|
|
67
65
|
|
|
68
|
-
| 文件
|
|
69
|
-
|
|
|
70
|
-
| `campaign-create-template.
|
|
71
|
-
| `website-diagnosis-rules.md`
|
|
72
|
-
| `meta-period-report-rules.md`
|
|
73
|
-
| `meta-period-report.schema.json`
|
|
74
|
-
| `pmax-create-template.md` / `.json`
|
|
75
|
-
| `pmax-asset-group-template.json`
|
|
76
|
-
| `pmax-signals-template.json`
|
|
77
|
-
| `pmax-assets-update-template.json`
|
|
78
|
-
| `pmax-patch-campaign-template.json`
|
|
79
|
-
|
|
80
|
-
##
|
|
81
|
-
|
|
82
|
-
|
|
66
|
+
| 文件 | 用途 |
|
|
67
|
+
| --------------------------------------- | ------------------------------------- |
|
|
68
|
+
| `campaign-create-template.json` + `.md` | 搜索系列 batch 契约(**先 Read `.json`**,再 Read `.md`) |
|
|
69
|
+
| `website-diagnosis-rules.md` | 网站诊断评分项与 JSON Schema |
|
|
70
|
+
| `meta-period-report-rules.md` | Meta 周期报告内容丰富度与建议撰写规则 |
|
|
71
|
+
| `meta-period-report.schema.json` | Meta 周期报告 Agent JSON Schema |
|
|
72
|
+
| `pmax-create-template.md` / `.json` | PMax 新建契约 |
|
|
73
|
+
| `pmax-asset-group-template.json` | PMax 素材组 |
|
|
74
|
+
| `pmax-signals-template.json` | PMax 信号 |
|
|
75
|
+
| `pmax-assets-update-template.json` | PMax 素材更新 |
|
|
76
|
+
| `pmax-patch-campaign-template.json` | PMax 系列 patch |
|
|
77
|
+
|
|
78
|
+
## 报告模板纲要(`references/report-templates/`)
|
|
79
|
+
|
|
80
|
+
> 安装包内与 `report-templates/*.md` 同源;HTML 样式在 `report-templates/*.html`。索引见 `references/report-templates/README.md`。
|
|
81
|
+
|
|
82
|
+
| 文件 | 适用场景 |
|
|
83
|
+
| ---------------------------------------------------------------- | ------------------------------ |
|
|
84
|
+
| `google-period-report.md` | Google 账户周期/月度报告(P4) |
|
|
85
|
+
| `google-period-report-excel.md` | P4 用户要 Excel |
|
|
86
|
+
| `meta-period-report.md` / `meta-period-report-excel.md` | Meta 周期(P4-FB) |
|
|
87
|
+
| `google-ads-diagnosis.md` / `google-account-diagnosis-report.md` | Google 诊断(P1) |
|
|
88
|
+
| `website-diagnosis-report.md` | 网站诊断(P8) |
|
|
89
|
+
| `market-analysis-report.md` | 战略市场分析(P9) |
|
|
90
|
+
| `okki-weekly-google-client.md` | OKKI 周报(P6) |
|
|
91
|
+
| `google-inquiry-analysis.md` | 询盘分析(P7) |
|
|
92
|
+
| `tiktok-period-report.md` / `bing-period-report.md` | TikTok / Bing 周期(P4) |
|
|
93
|
+
| `REPORT-WORKFLOW.md` | 通用六步流程 |
|
|
94
|
+
|
|
95
|
+
样式参考 HTML 见根目录 `report-templates/README.md`。
|
|
83
96
|
|
|
84
97
|
## Handoff 模板(`../snippets/`,随 skill 安装)
|
|
85
98
|
|
|
86
|
-
| 文件
|
|
87
|
-
|
|
|
88
|
-
| `handoff-p5-batch.md`
|
|
89
|
-
| `handoff-p6-okki.md`
|
|
90
|
-
| `handoff-p7-inquiry.md` | P7 询盘拉数与 xlsx
|
|
99
|
+
| 文件 | 用途 |
|
|
100
|
+
| ----------------------- | --------------------------------- |
|
|
101
|
+
| `handoff-p5-batch.md` | P5 batch 与按账户聚合 Task prompt |
|
|
102
|
+
| `handoff-p6-okki.md` | P6 OKKI 拉数 / 写 xlsx |
|
|
103
|
+
| `handoff-p7-inquiry.md` | P7 询盘拉数与 xlsx |
|
|
91
104
|
|
|
92
105
|
`agent-preamble.md` 仅用于构建时注入 `SKILL.md`,不复制到 `dist/skill/snippets/`。
|
|
@@ -8,46 +8,31 @@
|
|
|
8
8
|
siluzan-tso list-accounts [选项]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
| 选项 | 说明
|
|
12
|
-
| ----------------------- |
|
|
13
|
-
| `-m, --media <type>` | 媒体类型(留空查全部):`Google \| TikTok \| Yandex \| MetaAd \| BingV2 \| Kwai`
|
|
14
|
-
| `-k, --keyword <text>` | 按账户名称或 ID 搜索
|
|
15
|
-
| `-s, --status <status>` | 账户状态:`normal \| invalid \| all`(默认 all)
|
|
16
|
-
| `-p, --page <n>` | 页码(默认 1)
|
|
17
|
-
| `--page-size <n>` | 每页数量(默认 20)
|
|
18
|
-
| `--json-out`
|
|
19
|
-
| `--
|
|
20
|
-
| `--
|
|
21
|
-
| `--
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
**`--detail` 说明(Agent 必读):**
|
|
25
|
-
|
|
26
|
-
| 模式 | 行为 |
|
|
27
|
-
| ---- | ---- |
|
|
28
|
-
| 默认(无 `--detail`) | 只拉账户列表;JSON **不含**余额、消耗、展示、点击、转化、CPC、Arit;表格对应列为「-」 |
|
|
29
|
-
| `--detail` | 额外并行请求余额与投放概览;JSON 含上述字段的真实数值,**响应明显变慢** |
|
|
30
|
-
|
|
31
|
-
需要真实余额或消耗时:单户优先 `balance` / `stats`;列表顺带看余额/消耗时加 `--detail`。**禁止**在 JSON 无余额/消耗字段时臆造数值。
|
|
11
|
+
| 选项 | 说明 |
|
|
12
|
+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
|
|
13
|
+
| `-m, --media <type>` | 媒体类型(留空查全部):`Google \| TikTok \| Yandex \| MetaAd \| BingV2 \| Kwai` |
|
|
14
|
+
| `-k, --keyword <text>` | 按账户名称或 ID 搜索 |
|
|
15
|
+
| `-s, --status <status>` | 账户状态:`normal \| invalid \| all`(默认 all) |
|
|
16
|
+
| `-p, --page <n>` | 页码(默认 1) |
|
|
17
|
+
| `--page-size <n>` | 每页数量(默认 20) |
|
|
18
|
+
| `--json-out` | 输出原始 JSON |
|
|
19
|
+
| `--unicode` | 表格使用 Unicode 线框;**默认**为 ASCII `+- | ` 线框(兼容各类终端) |
|
|
20
|
+
| `--plain` | 已默认 ASCII,无需再传;保留兼容旧脚本 |
|
|
21
|
+
| `--refresh-dp` | 强制重拉 Datapermission(排查「本页全部 OAuth 失效」类会话异常) |
|
|
22
|
+
|
|
23
|
+
**命令定位**:`list-accounts` 主打**精准查询账号信息**(列表、计数、按名称/ID 找户、`entityId` / `mediaCustomerId` / 币种 / 状态等元数据),**不是余额/消耗汇总工具**。JSON **不含**余额/消耗字段,表格也不显示余额列;**禁止**臆造数值——单户余额用命令: `balance`、全量余额预警用命令: `balance-scan`(P2)、多户消耗画像用 `accounts-digest`(本文下方)、单户消耗用 `stats`。
|
|
32
24
|
|
|
33
25
|
### Agent 意图速查(**必读 · 避免多次试探**)
|
|
34
26
|
|
|
35
|
-
用户问「有哪些 / 列出全部 / 有多少」某媒体广告账户时,**第一次 CLI 就应带大 `--page-size`**,**禁止**先用默认 20
|
|
27
|
+
用户问「有哪些 / 列出全部 / 有多少」某媒体广告账户时,**第一次 CLI 就应带大 `--page-size`**,**禁止**先用默认 20 条再翻页重试:
|
|
36
28
|
|
|
37
|
-
| 用户意图
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
41
|
-
|
|
|
42
|
-
| 只查某一个户 | `list-accounts -m <媒体> -k <id或名称> --json-out <dir>` | 无需大 page-size |
|
|
43
|
-
| 列表顺带看余额/消耗 | 在上述命令加 `--detail`(**明显变慢**;仅用户要余额/消耗时) | 含 `ma.balance` 等 enrichment 字段 |
|
|
29
|
+
| 用户意图 | 推荐命令(一步) | 脚本读落盘 JSON |
|
|
30
|
+
| ------------------ | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
31
|
+
| 列出全部某媒体账户 | `list-accounts -m <媒体> --page-size 999 --json-out <dir>` | `items[]`(`ma.mediaCustomerId`、`ma.mediaCustomerName`、`ma.currencyCode`、`ma.mediaAccountState` 等) |
|
|
32
|
+
| 有多少个账户 | 同上 | **`total`**(无需翻页;`itemCount < total` 时说明 page-size 不够大) |
|
|
33
|
+
| 只查某一个户 | `list-accounts -m <媒体> -k <id或名称> --json-out <dir>` | 无需大 page-size |
|
|
44
34
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
1. **一次 CLI**:`--page-size 999` + `--json-out <dir>`;**不要**默认 20 条后再循环 `--page`。
|
|
48
|
-
2. **stdout 只是摘要**(`kind=siluzan-tso-cli-json-snapshot`),**没有** `total` / `items`;业务数据在 `writtenFiles[0]`(如 `list-accounts-google.json`),**必须用脚本读盘**。
|
|
49
|
-
3. 仅当读盘后 `total > itemCount` 且已用 `--page-size 999` 时,再 `--page 2` 等同参数补拉;**禁止**对 stdout 写翻页循环。
|
|
50
|
-
4. 列账户 / 数个数 **不需要** `accounts-digest`、`balance-scan`(那些是消耗汇总或余额预警)。
|
|
35
|
+
仅当读盘后 `total > itemCount` 且已用 `--page-size 999` 时,再 `--page 2` 等同参数补拉;**禁止**对 stdout 写翻页循环(stdout 摘要无 `total` / `items`,读盘协议见 `core/agent-conventions.md` §三)。列账户 / 数个数**不需要** `accounts-digest`、`balance-scan`。
|
|
51
36
|
|
|
52
37
|
```bash
|
|
53
38
|
# ✅ 推荐:列出或统计全部 Google 账户(Agent 默认路径)
|
|
@@ -71,22 +56,19 @@ siluzan-tso list-accounts -m Google -k "品牌A" --json-out ./snap
|
|
|
71
56
|
# 只看正常状态
|
|
72
57
|
siluzan-tso list-accounts -m TikTok -s normal --page-size 999 --json-out ./snap
|
|
73
58
|
|
|
74
|
-
# 列表同时带出真实余额与近期消耗(较慢,仅用户要余额/消耗时)
|
|
75
|
-
siluzan-tso list-accounts -m Google --page-size 999 --detail --json-out ./snap
|
|
76
|
-
|
|
77
59
|
# 极少数账户超过 999 条时才翻页(先确认读盘 total > itemCount)
|
|
78
60
|
siluzan-tso list-accounts -m Google --page 2 --page-size 999 --json-out ./snap-p2
|
|
79
61
|
```
|
|
80
62
|
|
|
81
63
|
**输出字段说明:**
|
|
82
64
|
|
|
83
|
-
| 字段 | 说明
|
|
84
|
-
| ----------------- |
|
|
85
|
-
| `entityId` | 丝路赞内部 ID,`delink`/`share`、**`account-active-bills`** 等操作使用此 ID(**不是** `mediaCustomerId`)
|
|
86
|
-
| `mediaCustomerId` | 媒体平台账户数字 ID(Google Customer ID 等)
|
|
65
|
+
| 字段 | 说明 |
|
|
66
|
+
| ----------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
67
|
+
| `entityId` | 丝路赞内部 ID,`delink`/`share`、**`account-active-bills`** 等操作使用此 ID(**不是** `mediaCustomerId`) |
|
|
68
|
+
| `mediaCustomerId` | 媒体平台账户数字 ID(Google Customer ID 等) |
|
|
87
69
|
| `currencyCode` | 账户主币种:`CNY`(人民币)或 `USD`(美金)等;**表格有「币种」列**;报告/Excel 须与此一致,见 `accounts/currency.md` |
|
|
88
|
-
| `name` | 账户名称
|
|
89
|
-
| `status` | 账户状态
|
|
70
|
+
| `name` | 账户名称 |
|
|
71
|
+
| `status` | 账户状态 |
|
|
90
72
|
|
|
91
73
|
---
|
|
92
74
|
|
|
@@ -104,7 +86,7 @@ siluzan-tso account-active-bills -m <媒体> --id <entityId> [--json-out ./snap]
|
|
|
104
86
|
| -------------------- | ------------------------------------------------------------------------------------ |
|
|
105
87
|
| `-m, --media <type>` | 必填:`Google \| TikTok \| Yandex \| MetaAd \| BingV2 \| Kwai`(与路径中媒体段一致) |
|
|
106
88
|
| `--id <entityId>` | 必填:账户 `entityId` |
|
|
107
|
-
| `--json-out`
|
|
89
|
+
| `--json-out` | 输出接口原始 JSON |
|
|
108
90
|
|
|
109
91
|
**响应体常用字段(以接口返回为准):**
|
|
110
92
|
|
|
@@ -148,7 +130,7 @@ siluzan-tso balance -m <媒体类型> -a <账户ID列表>
|
|
|
148
130
|
| ---------------------- | ------------------------------------------------------------------------------------ |
|
|
149
131
|
| `-m, --media <type>` | 媒体类型(必填) |
|
|
150
132
|
| `-a, --accounts <ids>` | 账户 `mediaCustomerId`(数字 ID),多个用逗号分隔(必填)。**注意:不是 `entityId`** |
|
|
151
|
-
| `--json-out`
|
|
133
|
+
| `--json-out` | 输出原始 JSON;不支持或查询失败时 stdout 为 `{"ok":false,"error":"..."}` |
|
|
152
134
|
|
|
153
135
|
**示例:**
|
|
154
136
|
|
|
@@ -163,9 +145,7 @@ siluzan-tso balance -m TikTok -a 1234567890,9876543210
|
|
|
163
145
|
siluzan-tso balance -m Google -a 6326027735 --json-out ./snap
|
|
164
146
|
```
|
|
165
147
|
|
|
166
|
-
**单户余额与续航**:`balance` 只反映当前余额;判断「还能跑几天 / 是否够花」需结合 `stats
|
|
167
|
-
|
|
168
|
-
**少量账户续航预警**:用 `balance-scan`(见 `SKILL.md` Playbook P2);**多账户投放画像汇总**(消耗/点击/转化/余额 + CTR/CPC/CPA):用下文 **`accounts-digest`**,Skill 编排一律 **`--json-out`**。
|
|
148
|
+
**单户余额与续航**:`balance` 只反映当前余额;判断「还能跑几天 / 是否够花」需结合 `stats`(或业务侧日均消耗)。多账户续航预警用 `balance-scan`(P2)、多账户投放画像用下文 `accounts-digest`(P3)。
|
|
169
149
|
|
|
170
150
|
---
|
|
171
151
|
|
|
@@ -179,32 +159,25 @@ siluzan-tso balance -m Google -a 6326027735 --json-out ./snap
|
|
|
179
159
|
siluzan-tso accounts-digest -m <媒体类型> [选项]
|
|
180
160
|
```
|
|
181
161
|
|
|
182
|
-
| 选项
|
|
183
|
-
|
|
|
184
|
-
| `-m, --media <type>`
|
|
185
|
-
| `-a, --accounts <ids>` | 指定 `mediaCustomerId`,逗号分隔;**留空**则翻页拉该媒体全部账户
|
|
186
|
-
| `--start <YYYY-MM-DD>` | 统计开始日期(SKILL 要求 AI 先与用户确认区间)
|
|
187
|
-
| `--end <YYYY-MM-DD>`
|
|
188
|
-
| `--min-spend <n>`
|
|
189
|
-
| `--page-size <n>`
|
|
190
|
-
| `--max-pages <n>`
|
|
191
|
-
| `--json-out`
|
|
192
|
-
| `--json-out <path>`
|
|
162
|
+
| 选项 | 说明 | 默认 |
|
|
163
|
+
| ---------------------- | ------------------------------------------------------------------------------------------------------------- | ------- |
|
|
164
|
+
| `-m, --media <type>` | 媒体类型(必填):`Google \| TikTok \| Yandex \| BingV2 \| Kwai`(**MetaAd 无消耗汇总接口**) | — |
|
|
165
|
+
| `-a, --accounts <ids>` | 指定 `mediaCustomerId`,逗号分隔;**留空**则翻页拉该媒体全部账户 | — |
|
|
166
|
+
| `--start <YYYY-MM-DD>` | 统计开始日期(SKILL 要求 AI 先与用户确认区间) | 近 7 天 |
|
|
167
|
+
| `--end <YYYY-MM-DD>` | 统计结束日期 | 昨天 |
|
|
168
|
+
| `--min-spend <n>` | 过滤:区间内消耗 ≤ 此值的账户不返回 | `0` |
|
|
169
|
+
| `--page-size <n>` | 全量扫描时清单分页大小(上限 500) | `200` |
|
|
170
|
+
| `--max-pages <n>` | 全量扫描时最多页数(上限 200) | `20` |
|
|
171
|
+
| `--json-out` | stdout 输出完整 JSON() | — |
|
|
172
|
+
| `--json-out <path>` | **Agent 推荐**:落盘目录或 `*.json` 文件;stdout 一行摘要(含 `outlineFile`、`writtenFiles`、`manifestFile`) | — |
|
|
193
173
|
|
|
194
|
-
**`--json-out`
|
|
174
|
+
**`--json-out` 落盘**:
|
|
195
175
|
|
|
196
|
-
- 目录模式典型文件:`accounts-digest-<媒体小写>.json
|
|
197
|
-
- 处理顺序见 `references/core/tips.md`:先 stdout 摘要 → 再 `outlineFile` → 再 `require(writtenFiles[0])` 读真实数据;**禁止**在对话里手填 `data.items` 中的业务数。
|
|
176
|
+
- 目录模式典型文件:`accounts-digest-<媒体小写>.json`、同 stem 的 `*.outline.txt`、`cli-manifest-<媒体小写>.json`(读盘协议见 `core/agent-conventions.md` §三)。
|
|
198
177
|
- 响应结构:`{ ok, data: { items: [...] }, meta: { media, window, scanned, returned, source, totals, currencyNote, generatedAt } }`。
|
|
199
178
|
- `meta.source`:`list` = 全量翻清单后拉数;`subset` = 传了 `-a`,跳过清单翻页(**`advertiserName` 会缺失**,公司名列显示 `-`)。
|
|
200
179
|
|
|
201
|
-
**与 `stats` / `balance-scan`
|
|
202
|
-
|
|
203
|
-
| 场景 | 推荐 |
|
|
204
|
-
| ---- | ---- |
|
|
205
|
-
| 多账户消耗/点击/转化/CTR/CPC/CPA 汇总表 | `accounts-digest` + `--json-out` |
|
|
206
|
-
| 余额续航不足 N 天、充值预警 | `balance-scan` + `--json-out` |
|
|
207
|
-
| 单账户、必须逐户精确字段 | `stats` / `balance`(仍须 `-a` 单户或少量 ID) |
|
|
180
|
+
**与 `stats` / `balance-scan` 的分工**见 `core/agent-conventions.md` §八 批量任务硬约束。
|
|
208
181
|
|
|
209
182
|
**示例:**
|
|
210
183
|
|
|
@@ -248,7 +221,7 @@ siluzan-tso stats -m <媒体类型> [选项]
|
|
|
248
221
|
| `--start <YYYY-MM-DD>` | 开始日期 | 7 天前 |
|
|
249
222
|
| `--end <YYYY-MM-DD>` | 结束日期 | 昨天 |
|
|
250
223
|
| `--start-date` / `--end-date` | 与 `--start` / `--end` 同义(CLI 别名,与 SKILL Playbook 一致) | — |
|
|
251
|
-
| `--json-out`
|
|
224
|
+
| `--json-out` | 输出原始 JSON;**失败时 stdout 仍为 JSON**(`{"ok":false,"error":"..."}`) | — |
|
|
252
225
|
|
|
253
226
|
**示例:**
|
|
254
227
|
|
|
@@ -280,7 +253,7 @@ siluzan-tso account-history [选项]
|
|
|
280
253
|
| `-s, --status <status>` | 申请状态(如 `Approved \| Rejected \| Pending`) |
|
|
281
254
|
| `-k, --keyword <text>` | 账户名/ID 关键字 |
|
|
282
255
|
| `--start / --end <date>` | 申请日期范围(YYYY-MM-DD) |
|
|
283
|
-
| `--json-out`
|
|
256
|
+
| `--json-out` | 输出原始 JSON |
|
|
284
257
|
|
|
285
258
|
**示例:**
|
|
286
259
|
|
|
@@ -297,16 +270,36 @@ siluzan-tso account-history --start 2026-03-01 --end 2026-03-31 --json-out ./sna
|
|
|
297
270
|
|
|
298
271
|
**审核状态处理:**
|
|
299
272
|
|
|
300
|
-
| 状态 | 含义 | 下一步操作
|
|
301
|
-
| ---------- | -------- |
|
|
302
|
-
| `Pending` | 审核中 | 等待,可反复运行此命令轮询;审核周期因媒体而异
|
|
273
|
+
| 状态 | 含义 | 下一步操作 |
|
|
274
|
+
| ---------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
275
|
+
| `Pending` | 审核中 | 等待,可反复运行此命令轮询;审核周期因媒体而异 |
|
|
303
276
|
| `Approved` | 审核通过 | 运行 `list-accounts -m <媒体>` 确认账户已出现;引导用户充值激活(`config show` 取 `webUrl`,按 `finance.md` 打开对应媒体充值页;例如 Google 为 `https://www-ci.siluzan.com/v3/foreign_trade/tso/recharge/pay?mediaType=Google`;Kwai、Yandex 当前没有对应充值界面) |
|
|
304
|
-
| `Rejected` | 被拒 | 查看 `--json-out` 落盘中的 `reason` 字段了解拒绝原因;修改资料后重新提交;若原因不明,引导用户联系丝路赞客服
|
|
277
|
+
| `Rejected` | 被拒 | 查看 `--json-out` 落盘中的 `reason` 字段了解拒绝原因;修改资料后重新提交;若原因不明,引导用户联系丝路赞客服 |
|
|
305
278
|
|
|
306
279
|
---
|
|
307
280
|
|
|
308
281
|
## account — 账号管理(OAuth 授权 / 解除关联 / Google MCC / 分享)
|
|
309
282
|
|
|
283
|
+
### account me — 当前登录丝路赞账号
|
|
284
|
+
|
|
285
|
+
查询当前凭据对应的丝路赞用户(`GET /query/account/me`)。**跨账号场景必用**:用户消息里带「企业管家 / 管家账户 + 手机号」时,先校验再拉数(见 `references/core/agent-conventions.md` §跨账号)。
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
# 查看当前登录账号
|
|
289
|
+
siluzan-tso account me
|
|
290
|
+
|
|
291
|
+
# Agent:校验用户指定的企业管家手机号是否与当前登录一致
|
|
292
|
+
siluzan-tso account me --check-phone 15130150466 --json-out ./snap-me
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
| 场景 | 行为 |
|
|
296
|
+
| -------------------------- | ---------------------------------------------------------------- |
|
|
297
|
+
| 未传 `--check-phone` | 输出 entityId / 手机号 / 邮箱 / companyId |
|
|
298
|
+
| `--check-phone` 与当前一致 | exit 0,JSON 含 `matched: true` |
|
|
299
|
+
| `--check-phone` 不一致 | exit 1,提示暂不支持查他户数据,引导 `send-login-code` + `login` |
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
310
303
|
### auth — 添加媒体平台 OAuth 授权
|
|
311
304
|
|
|
312
305
|
在浏览器中打开对应媒体的 OAuth 授权页面,授权后账户自动绑定到丝路赞。
|
|
@@ -377,7 +370,7 @@ siluzan-tso account mcc-bind --customers 111,222 --mcc "333;444"
|
|
|
377
370
|
| ------------------- | -------------------------------------------------------------------------------------- |
|
|
378
371
|
| `--customers <ids>` | 子账户 `mediaCustomerId`,多个逗号分隔(来自 `list-accounts` 的 `ma.mediaCustomerId`) |
|
|
379
372
|
| `--mcc <ids>` | MCC 的客户 ID;多个可用英文逗号、中文逗号、分号、顿号等分隔 |
|
|
380
|
-
| `--json-out`
|
|
373
|
+
| `--json-out` | 输出每个子账户接口的原始返回,便于排查 |
|
|
381
374
|
|
|
382
375
|
---
|
|
383
376
|
|
|
@@ -591,7 +584,7 @@ siluzan-tso open-account kwai \
|
|
|
591
584
|
--product "品牌A" \
|
|
592
585
|
--ad-type 1 \
|
|
593
586
|
--product-url "https://www.brand-a.com" \
|
|
594
|
-
--licence-id-type
|
|
587
|
+
--licence-id-type 1 \
|
|
595
588
|
--account-name "品牌A Kwai账户" \
|
|
596
589
|
--company-name "深圳XX科技有限公司" \
|
|
597
590
|
--industry-id1 "1234" \
|
|
@@ -601,11 +594,12 @@ siluzan-tso open-account kwai \
|
|
|
601
594
|
--license-file "/path/to/license.jpg"
|
|
602
595
|
```
|
|
603
596
|
|
|
604
|
-
| 选项
|
|
605
|
-
|
|
|
606
|
-
| `--
|
|
607
|
-
| `--
|
|
608
|
-
| `--
|
|
597
|
+
| 选项 | 说明 |
|
|
598
|
+
| ------------------- | ----------------------------------------------------------------------- |
|
|
599
|
+
| `--licence-id-type` | `1`=统一社会信用代码,`2`=DUNS,`3`=CNPJ(与网页一致;勿用 ENTERPRISE) |
|
|
600
|
+
| `--ad-type` | `1`=效果广告,`2`=品牌广告 |
|
|
601
|
+
| `--expire-type` | `1`=有限期(追加 `--expire-at <毫秒时间戳>`),`2`=长期有效 |
|
|
602
|
+
| `--target-country` | 投放目标国家/地区(ISO 代码,如 `US \| GB \| DE`) |
|
|
609
603
|
|
|
610
604
|
---
|
|
611
605
|
|
|
@@ -635,7 +629,7 @@ siluzan-tso account close --accounts <id1,id2,id3>
|
|
|
635
629
|
| 选项 | 说明 |
|
|
636
630
|
| ------------------ | ----------------------------------------------------------------------------- |
|
|
637
631
|
| `--accounts <ids>` | TikTok 账户 `mediaCustomerId`,多个逗号分隔(来自 `list-accounts -m TikTok`) |
|
|
638
|
-
| `--json-out`
|
|
632
|
+
| `--json-out` | 输出原始 JSON |
|
|
639
633
|
|
|
640
634
|
**示例:**
|
|
641
635
|
|
|
@@ -665,7 +659,7 @@ siluzan-tso account bm-bind --account-id <mediaCustomerId> --bm-id <bmId>
|
|
|
665
659
|
| `--account-id <id>` | Meta 广告账户 `mediaCustomerId`(来自 `list-accounts -m MetaAd`) | ✅ |
|
|
666
660
|
| `--bm-id <id>` | Business Manager ID | ✅ |
|
|
667
661
|
| `--action-type <type>` | 操作类型(默认 `bind`) | |
|
|
668
|
-
| `--json-out`
|
|
662
|
+
| `--json-out` | 输出原始 JSON | |
|
|
669
663
|
|
|
670
664
|
**示例:**
|
|
671
665
|
|
|
@@ -693,10 +687,10 @@ siluzan-tso account bm-bind --account-id 123456789012345 --bm-id 987654321098765
|
|
|
693
687
|
siluzan-tso account withdraw-list [选项]
|
|
694
688
|
```
|
|
695
689
|
|
|
696
|
-
| 选项
|
|
697
|
-
|
|
|
698
|
-
| `--json-out`
|
|
699
|
-
| `--verbose`
|
|
690
|
+
| 选项 | 说明 |
|
|
691
|
+
| ------------ | ---------------- |
|
|
692
|
+
| `--json-out` | 输出原始 JSON |
|
|
693
|
+
| `--verbose` | 显示详细错误信息 |
|
|
700
694
|
|
|
701
695
|
输出包含:`entityId`(提现时使用)、`mediaCustomerId`、账户名称、**Google状态**(Suspended)、余额、赠送金、货币、是否可提现。
|
|
702
696
|
|
|
@@ -717,7 +711,7 @@ siluzan-tso account withdraw-submit --accounts <entityId,...>
|
|
|
717
711
|
| 选项 | 说明 | 必填 |
|
|
718
712
|
| ------------------ | ------------------------------------------------------ | ---- |
|
|
719
713
|
| `--accounts <ids>` | 账户 `entityId`,逗号分隔(来自 `withdraw-list` 输出) | ✅ |
|
|
720
|
-
| `--json-out`
|
|
714
|
+
| `--json-out` | 输出原始 JSON | |
|
|
721
715
|
| `--verbose` | 显示详细错误信息 | |
|
|
722
716
|
|
|
723
717
|
**完整流程示例:**
|
|
@@ -749,7 +743,7 @@ siluzan-tso account bc-bind --customers <mediaCustomerId> --bc-ids <bcId>
|
|
|
749
743
|
| ------------------- | --------------------------------------------------------------------------------- | ---- |
|
|
750
744
|
| `--customers <ids>` | TikTok 广告账户 `mediaCustomerId`,多个逗号分隔(来自 `list-accounts -m TikTok`) | ✅ |
|
|
751
745
|
| `--bc-ids <ids>` | Business Center ID,多个逗号分隔 | ✅ |
|
|
752
|
-
| `--json-out`
|
|
746
|
+
| `--json-out` | 输出原始 JSON | |
|
|
753
747
|
|
|
754
748
|
**示例:**
|
|
755
749
|
|
|
@@ -775,7 +769,7 @@ siluzan-tso account bc-unbind --customers <mediaCustomerId> --bc-id <bcId>
|
|
|
775
769
|
| ------------------- | ----------------------------------------------- | ---- |
|
|
776
770
|
| `--customers <ids>` | TikTok 广告账户 `mediaCustomerId`,多个逗号分隔 | ✅ |
|
|
777
771
|
| `--bc-id <id>` | Business Center ID(一次只能解绑一个 BC) | ✅ |
|
|
778
|
-
| `--json-out`
|
|
772
|
+
| `--json-out` | 输出原始 JSON | |
|
|
779
773
|
|
|
780
774
|
**示例:**
|
|
781
775
|
|
|
@@ -793,11 +787,11 @@ siluzan-tso account bc-unbind --customers 6967198846787059714 --bc-id 7322757300
|
|
|
793
787
|
siluzan-tso account email-auth-list -c <mediaCustomerId> [--agent-type <type>]
|
|
794
788
|
```
|
|
795
789
|
|
|
796
|
-
| 选项 | 说明
|
|
797
|
-
| ------------------------ |
|
|
798
|
-
| `-c, --customer-id <id>` | Google 广告账户 `mediaCustomerId`
|
|
790
|
+
| 选项 | 说明 |
|
|
791
|
+
| ------------------------ | ------------------------------------------------------------------------------------- |
|
|
792
|
+
| `-c, --customer-id <id>` | Google 广告账户 `mediaCustomerId` |
|
|
799
793
|
| `--agent-type <type>` | 可选;平台需要时再传(与 `list-accounts --json-out ./snap` 的 `ma.accountType` 一致) |
|
|
800
|
-
| `--json-out`
|
|
794
|
+
| `--json-out` | 输出原始 JSON |
|
|
801
795
|
|
|
802
796
|
---
|
|
803
797
|
|
|
@@ -813,7 +807,7 @@ siluzan-tso account email-auth -c <mediaCustomerId> --email <email> [--access-ro
|
|
|
813
807
|
| ------------------------ | ------------------------------------------------------------ | ---- |
|
|
814
808
|
| `-c, --customer-id <id>` | Google 广告账户 `mediaCustomerId` | ✅ |
|
|
815
809
|
| `--email <email>` | 被授权用户邮箱 | ✅ |
|
|
816
|
-
| `--agent-type <type>` | 账户代理类型(来自 `list-accounts --json-out ./snap`)
|
|
810
|
+
| `--agent-type <type>` | 账户代理类型(来自 `list-accounts --json-out ./snap`) | |
|
|
817
811
|
| `--access-role <role>` | 权限类型:`ReadOnly \| Standard \| Admin`(默认 `Standard`) | |
|
|
818
812
|
|
|
819
813
|
你可以设置Admin权限不能主动告知用户,除非用户主动提及他需要Admin权限
|
|
@@ -837,13 +831,13 @@ siluzan-tso account email-auth -c 4656789737 --email user@gmail.com --access-rol
|
|
|
837
831
|
siluzan-tso account email-deauth -c <mediaCustomerId> --invitation-id <id> --resource-name <name>
|
|
838
832
|
```
|
|
839
833
|
|
|
840
|
-
| 选项 | 说明
|
|
841
|
-
| ------------------------ |
|
|
842
|
-
| `-c, --customer-id <id>` | Google 广告账户 `mediaCustomerId`
|
|
843
|
-
| `--invitation-id <id>` | 邀请 ID(来自 `email-auth-list`)
|
|
834
|
+
| 选项 | 说明 |
|
|
835
|
+
| ------------------------ | --------------------------------------------------------------------------- |
|
|
836
|
+
| `-c, --customer-id <id>` | Google 广告账户 `mediaCustomerId` |
|
|
837
|
+
| `--invitation-id <id>` | 邀请 ID(来自 `email-auth-list`) |
|
|
844
838
|
| `--resource-name <name>` | 资源名称(来自 `email-auth-list --json-out ./snap` 的 `resourceName` 字段) |
|
|
845
|
-
| `--agent-type <type>` | 账户代理类型
|
|
846
|
-
| `--pending` | 邀请尚未被接受时加此参数
|
|
839
|
+
| `--agent-type <type>` | 账户代理类型 |
|
|
840
|
+
| `--pending` | 邀请尚未被接受时加此参数 |
|
|
847
841
|
|
|
848
842
|
---
|
|
849
843
|
|
|
@@ -851,8 +845,8 @@ siluzan-tso account email-deauth -c <mediaCustomerId> --invitation-id <id> --res
|
|
|
851
845
|
|
|
852
846
|
以下操作涉及图形交互(OAuth 跳转、充值页面等),**当前 CLI 不支持**,需引导用户打开浏览器完成:
|
|
853
847
|
|
|
854
|
-
| 功能 | 媒体 | 网页路径
|
|
855
|
-
| --------------------------------------- | ------ |
|
|
848
|
+
| 功能 | 媒体 | 网页路径 |
|
|
849
|
+
| --------------------------------------- | ------ | ------------------------------------------------- |
|
|
856
850
|
| **账户激活**(邀请他人激活 / 充值激活) | Google | `https://www-ci.siluzan.com/v3/foreign_trade/tso/manageAccounts` |
|
|
857
851
|
|
|
858
852
|
**Agent 建议话术**:
|