siluzan-tso-cli 1.1.22-beta.7 → 1.1.22
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 -2
- package/dist/index.js +651 -179
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/assets/campaign-create-template.md +12 -12
- package/dist/skill/assets/pmax-create-template.md +8 -2
- package/dist/skill/references/README.md +1 -1
- package/dist/skill/references/accounts/accounts.md +14 -26
- package/dist/skill/references/accounts/finance.md +9 -11
- package/dist/skill/references/accounts/open-account-by-media.md +2 -3
- package/dist/skill/references/accounts/open-account-google-ui.md +43 -74
- package/dist/skill/references/analytics/account-analytics.md +27 -2
- package/dist/skill/references/analytics/keyword-planner-workflows.md +5 -5
- package/dist/skill/references/analytics/rag.md +2 -2
- package/dist/skill/references/analytics/reporting.md +10 -17
- package/dist/skill/references/core/setup.md +6 -6
- package/dist/skill/references/core/skill-authoring.md +1 -1
- package/dist/skill/references/core/workflows.md +19 -41
- package/dist/skill/references/google-ads/google-ads.md +9 -13
- package/dist/skill/references/google-ads/pmax-api.md +43 -41
- package/dist/skill/references/misc/tso-home.md +20 -84
- package/dist/skill/references/operations/clue.md +1 -1
- package/dist/skill/references/operations/forewarning.md +0 -2
- package/dist/skill/references/operations/optimize.md +2 -4
- package/dist/skill/report-templates/README.md +1 -1
- package/dist/skill/report-templates/bing-period-report.md +2 -3
- package/dist/skill/report-templates/google-ads-diagnosis.md +2 -2
- package/dist/skill/report-templates/google-inquiry-analysis.md +4 -4
- package/dist/skill/report-templates/google-period-report.md +1 -1
- package/dist/skill/report-templates/meta-period-report.md +2 -3
- package/dist/skill/report-templates/okki-weekly-google-client.md +1 -1
- package/dist/skill/report-templates/tiktok-period-report.md +4 -7
- package/dist/skill/scripts/install.ps1 +3 -3
- package/dist/skill/scripts/install.sh +3 -3
- package/package.json +1 -1
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
> 所属 skill:`siluzan-tso`。
|
|
4
4
|
>
|
|
5
|
-
> 对应页面:`/advertising/AiGoogleOptimize`
|
|
6
|
-
|
|
7
5
|
```bash
|
|
8
6
|
siluzan-tso optimize list [选项] # 账户级优化主列表
|
|
9
7
|
siluzan-tso optimize records [选项] # 优化操作记录列表(系列粒度,见下)
|
|
10
|
-
siluzan-tso optimize get --id <id> #
|
|
8
|
+
siluzan-tso optimize get --id <id> # 单条详情
|
|
11
9
|
siluzan-tso optimize children --parent-id <id> # 广告系列级明细
|
|
12
10
|
```
|
|
13
11
|
|
|
@@ -49,4 +47,4 @@ siluzan-tso optimize get --id 4ced1f51-da71-4aac-84f9-4e2c4a25675f
|
|
|
49
47
|
siluzan-tso optimize list -a 6326027735 --json-out ./snap
|
|
50
48
|
```
|
|
51
49
|
|
|
52
|
-
|
|
50
|
+
`optimize get` 输出格式化 JSON 到 stdout;字段以后端返回为准。
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
|
|
18
18
|
| `google-period-report.md` | Google 账户分析报告(周期/月度/诊断均用此模板) |
|
|
19
19
|
| `google-account-diagnosis-report.md` | Google 账户深度诊断(健康度/转化/结构等) |
|
|
20
|
-
| `google-ads-diagnosis.md` |
|
|
20
|
+
| `google-ads-diagnosis.md` | Google 账户诊断报告纲要(配合 `google-analysis`) |
|
|
21
21
|
| `meta-period-report.md` | Meta(Facebook)账户周期报告 |
|
|
22
22
|
| `tiktok-period-report.md` | TikTok 广告主周期报告 |
|
|
23
23
|
| `bing-period-report.md` | Bing(BingV2)分析报告 |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 统计区间:`{startDate}` ~ `{endDate}`(**不可包含今天或昨天**,见下文)
|
|
4
4
|
> 账户:`{mediaCustomerId}`(`{mediaCustomerName}`)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
数据块:总览、设备、地域、受众(年龄/性别)、系列、广告组、广告、关键词、搜索字词。
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
## 1. 执行摘要(总览)
|
|
19
19
|
|
|
20
20
|
- **CLI**:`siluzan-tso report bing-overview -a <mediaCustomerId> [--start … --end …] --json-out <dir>`
|
|
21
|
-
- **HTTP**:`GET …/OverviewSectionData?startDate=&endDate=`
|
|
22
21
|
|
|
23
22
|
## 2. 设备与地域
|
|
24
23
|
|
|
@@ -29,7 +28,7 @@
|
|
|
29
28
|
|
|
30
29
|
- 年龄:`report bing-age-audience` → `AgeAudienceData`
|
|
31
30
|
- 性别:`report bing-gender-audience` → `GenderAudienceData`
|
|
32
|
-
-
|
|
31
|
+
- 合并输出:`report bing-audience-merged`(**固定输出合并 JSON**,含年龄+性别)
|
|
33
32
|
|
|
34
33
|
## 4. 广告结构
|
|
35
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Google Ads 账户诊断报告
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> 账户诊断报告纲要:配合 `google-analysis` CLI 拉数后填充。
|
|
4
4
|
> 占位符:`{reportDate}` `{companyName}` `{period}` 等。
|
|
5
5
|
|
|
6
6
|
---
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
|
|
248
248
|
### 8.3 搜索词洞察
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
列:搜索词、**已添加/已排除**(`queryTargetingStatusZh`)、展示、点击、点击率、转化、转化率、每次转化费用
|
|
251
251
|
|
|
252
252
|
- **数据分析** / **优化建议**:`fullSearchTerms.analysis`、`fullSearchTerms.suggestions`
|
|
253
253
|
|
|
@@ -308,7 +308,7 @@ Sheet 5 整段系列明细读:`./snap-inquiry/campaigns-<accountId>_<S>-<E>.js
|
|
|
308
308
|
| --- | --- |
|
|
309
309
|
| 数据源 | `./snap-inquiry/<YYYY-MM>/campaigns-<accountId>_<月1号>-<月末>.json`(每月单独拉 `campaigns`;见「落盘防覆盖」) |
|
|
310
310
|
| 聚合范围 | 该月内 **全部** `campaigns[]` 行(含已暂停但在区间内有消耗的系列;**禁止**只取 Top N 或手工筛系列) |
|
|
311
|
-
|
|
|
311
|
+
| 数据口径 | `google-analysis campaigns` 与账户月表一致;账户月表 = 各系列在当月起止日内指标之和 |
|
|
312
312
|
| 禁止 | `daily-metrics` / `stats` / `overview` 填上区投放列(询盘列仍来自 `inquiries.json`) |
|
|
313
313
|
|
|
314
314
|
**脚本聚合(每月一份 `campaigns-*.json`)**:
|
|
@@ -443,7 +443,7 @@ CPL = 询盘个数 > 0 ? spend / 询盘个数 : —
|
|
|
443
443
|
| R1 | `搜索字词--TOP100` |
|
|
444
444
|
| R2 | `<S> - <E>`(如 `2026年4月1日 - 2026年4月30日` 等中文区间) |
|
|
445
445
|
| R3(A→Q,17 列) | `搜索字词` \| `搜索字词匹配类型` \| `已添加/已排除` \| `广告系列` \| `广告组` \| `搜索广告关键字` \| `点击次数` \| `展示次数` \| `点击率` \| `货币代码` \| `平均每次点击费用` \| `费用` \| `绝对页首展示次数百分比` \| `页首展示次数百分比` \| `转化次数` \| `每次转化费用` \| `转化率` |
|
|
446
|
-
| R4… | 读 `search-terms-*.json`(`data[]`):`searchTermText` / `matchTypeZh` /
|
|
446
|
+
| R4… | 读 `search-terms-*.json`(`data[]`):`searchTermText` / `matchTypeZh` / **`queryTargetingStatusZh`**(已添加/已排除/都没有;网关字段 `queryTargetingStatus`)/ `campaignName` / `adGroupName` / `keywordText` / 数值字段;`货币代码` 来自 `list-accounts` 同账户 `currencyCode` |
|
|
447
447
|
|
|
448
448
|
按 `费用` 降序前 100。
|
|
449
449
|
|
|
@@ -453,8 +453,8 @@ CPL = 询盘个数 > 0 ? spend / 询盘个数 : —
|
|
|
453
453
|
|
|
454
454
|
| # | 洞察类别 | 内容(每条引用本 Sheet 具体数字) |
|
|
455
455
|
| --- | ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
456
|
-
| 1 | **未添加但高转化搜索词**(候选加为关键词) |
|
|
457
|
-
| 2 | **已添加但 0 转化高消耗搜索词**(候选加为否定关键词) |
|
|
456
|
+
| 1 | **未添加但高转化搜索词**(候选加为关键词) | `queryTargetingStatusZh` = "都没有" 且 `转化次数` ≥ `{阈值}`,按转化降序前 10;阈值取本期搜索词转化中位数 |
|
|
457
|
+
| 2 | **已添加但 0 转化高消耗搜索词**(候选加为否定关键词) | `queryTargetingStatusZh` = "已添加" 且 `转化次数` = 0 且 `费用` > `¥{阈值}`,按消耗降序前 10;阈值取本期搜索词消耗 P75 |
|
|
458
458
|
| 3 | **无关搜索词**(意图偏离候选) | 基于 `搜索字词` 文本扫描,标出与广告组 / 关键字 主题明显不符的词(如"工厂"系列出现"价格便宜""免费""教程"等),前 5;**仅展示**,**不**自动判定,由运营会上拍板 |
|
|
459
459
|
| 4 | **匹配方式分布** | `Broad`:`{n_b}` 个、占消耗 `{p_b}%`;`Phrase`:`{n_p}` 个、占消耗 `{p_p}%`;`Exact`:`{n_e}` 个、占消耗 `{p_e}%` |
|
|
460
460
|
| 5 | **页首展示低 / 高消耗搜索词**(仅当 `页首展示次数百分比` 字段可用) | 列 `费用` Top20 中 `页首展示次数百分比` < 50% 的搜索词,前 5;提示"花了钱但很少展示到页首,出价/质量得分待优化" |
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
| ------------- | ----------------------------------------------- | ------------------------------------------------------------ |
|
|
31
31
|
| 系列按小时 | `google-analysis --sections campaign-hour` | `campaign-hour`;根为 JSON 数组,含 `date`/`hour`/消耗与效果 |
|
|
32
32
|
| 受众分布 | `google-analysis --sections audience` | 可分 `SystemDefined` / `UserDefined` |
|
|
33
|
-
| 搜索词报告 | `google-analysis --sections search-terms` |
|
|
33
|
+
| 搜索词报告 | `google-analysis --sections search-terms` | 高消耗搜索词;`queryTargetingStatusZh` 列(已添加/已排除/都没有) |
|
|
34
34
|
| 广告创意表现 | `google-analysis --sections ads` | 广告标题/类型/到达网址 |
|
|
35
35
|
| 附加信息 | `google-analysis --sections extensions` | 附加链接/电话/宣传信息等状态 |
|
|
36
36
|
| 图片/视频素材 | `google-analysis --sections materials` | 图片 + 视频合并视图 |
|
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
> 统计区间:`{startDate}` ~ `{endDate}`
|
|
4
4
|
> 账户:`{mediaCustomerId}`(`{mediaCustomerName}`)
|
|
5
5
|
|
|
6
|
-
当前
|
|
6
|
+
当前 CLI 对 **Meta** 仅提供 **账户总览**(`report meta-overview`);系列/关键词/地域等维度待后端开放后再补章节。
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
## 1. 执行摘要
|
|
11
11
|
|
|
12
|
-
- 总消耗、余额(若有)、活跃天数、日均消耗、优化得分(接口若为 0–1,展示时 ×100
|
|
12
|
+
- 总消耗、余额(若有)、活跃天数、日均消耗、优化得分(接口若为 0–1,展示时 ×100)
|
|
13
13
|
- 本期 / 上期:展示、点击、消耗、转化、CTR、CVR、CPC、CPA
|
|
14
14
|
- **CLI**:`siluzan-tso report meta-overview -a <mediaCustomerId> [--start YYYY-MM-DD --end YYYY-MM-DD]`
|
|
15
|
-
- **HTTP(TSO)**:`GET {tsoApiBaseUrl}/reporting/media-account/MetaAd/{mediaCustomerId}/OverviewSectionData?startDate=&endDate=`
|
|
16
15
|
|
|
17
16
|
## 2. 深度分析(占位)
|
|
18
17
|
|
|
@@ -148,7 +148,7 @@ siluzan-tso google-analysis -a <mediaCustomerId> --start <S> --end <E> --json-ou
|
|
|
148
148
|
| R1 | `搜索字词报告` |
|
|
149
149
|
| R2 | 统计区间 |
|
|
150
150
|
| R3(A→N,14 列) | `搜索字词` \| `匹配类型` \| `已添加/已排除` \| `广告系列` \| `广告组` \| `关键字` \| `展示次数` \| `点击次数` \| `点击率` \| `平均每次点击费用` \| `费用` \| `转化次数` \| `每次转化费用` \| `转化率` |
|
|
151
|
-
| R4… | `search-terms-*.json
|
|
151
|
+
| R4… | `search-terms-*.json`:`queryTargetingStatusZh`(`Added`→已添加、`Excluded`→已排除、`None`→都没有);无该字段时读 `queryTargetingStatus` 按上表映射,仍无则「—」;`ctr` / `conversionRate` 已归一,直接写入 |
|
|
152
152
|
|
|
153
153
|
---
|
|
154
154
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> 统计区间:`{startDate}` ~ `{endDate}`
|
|
4
4
|
> 账户:`{mediaCustomerId}`(`{mediaCustomerName}`)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
数据块:总览、系列/组/广告、视频素材、受众(含性别/年龄/兴趣合并)、地域与设备(**以 `--json-out` 实际字段为准**)。
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
- 账户级消耗、展示、点击、转化、CTR、CPC 等(接口返回结构因版本可能略有差异)
|
|
13
13
|
- **CLI**:`siluzan-tso report tiktok-overview -a <mediaCustomerId> [--start YYYY-MM-DD --end YYYY-MM-DD] --json-out <dir>`
|
|
14
|
-
- **HTTP**:`GET {tsoApiBaseUrl}/reporting/media-account/TikTok/{id}/OverviewSectionData?startDate=&endDate=`
|
|
15
14
|
|
|
16
15
|
## 2. 广告结构(系列 / 广告组 / 广告)
|
|
17
16
|
|
|
@@ -22,19 +21,17 @@
|
|
|
22
21
|
## 3. 素材与创意(视频)
|
|
23
22
|
|
|
24
23
|
- **CLI**:`siluzan-tso report tiktok-videos -a <id> [--start … --end …] [--take N] --json-out <dir>`
|
|
25
|
-
- **HTTP**:`.../VideoReport?startDate=&endDate=&take=`
|
|
26
24
|
|
|
27
25
|
## 4. 受众分析
|
|
28
26
|
|
|
29
27
|
- 单维度:`report tiktok-audience -a <id> -d <dimension> [--take N] --json-out <dir>`
|
|
30
28
|
可选 `dimension`:`gender` | `age` | `interest_category` | `country_code` | `platform` | `language`
|
|
31
|
-
-
|
|
32
|
-
- 周期报告中常与网页一致的三块合并:`report tiktok-audience-merged`(**固定输出合并 JSON**,含 `gender` / `age` / `interest_category` 三次响应)
|
|
29
|
+
- 三块合并:`report tiktok-audience-merged`(**固定输出合并 JSON**,含 `gender` / `age` / `interest_category`)
|
|
33
30
|
|
|
34
31
|
## 5. 地域 / 兴趣辅助数据
|
|
35
32
|
|
|
36
|
-
- 地区代码枚举:`report tiktok-areacode
|
|
37
|
-
- 兴趣类目树:`report tiktok-interest-list -a <id
|
|
33
|
+
- 地区代码枚举:`report tiktok-areacode`(解析地域报表、对照名称)
|
|
34
|
+
- 兴趣类目树:`report tiktok-interest-list -a <id>`(需配置 **`tiktokApiUrl`**)
|
|
38
35
|
|
|
39
36
|
## 6. 附录
|
|
40
37
|
|
|
@@ -9,11 +9,11 @@ $ErrorActionPreference = 'Stop'
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
$PKG_NAME = 'siluzan-tso-cli'
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
$PKG_VERSION = '1.1.22
|
|
12
|
+
$PKG_VERSION = '1.1.22'
|
|
13
13
|
$CLI_BIN = 'siluzan-tso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan TSO'
|
|
15
|
-
$INSTALL_CMD = 'npm install -g siluzan-tso-cli
|
|
16
|
-
$WEB_BASE = 'https://www
|
|
15
|
+
$INSTALL_CMD = 'npm install -g siluzan-tso-cli'
|
|
16
|
+
$WEB_BASE = 'https://www.siluzan.com'
|
|
17
17
|
|
|
18
18
|
# -- Constants ----------------------------------------------------------------
|
|
19
19
|
$NODE_MAJOR_MIN = 18
|
|
@@ -9,11 +9,11 @@ set -euo pipefail
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
readonly PKG_NAME="siluzan-tso-cli"
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
readonly PKG_VERSION="1.1.22
|
|
12
|
+
readonly PKG_VERSION="1.1.22"
|
|
13
13
|
readonly CLI_BIN="siluzan-tso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan TSO"
|
|
15
|
-
readonly INSTALL_CMD="npm install -g siluzan-tso-cli
|
|
16
|
-
readonly WEB_BASE="https://www
|
|
15
|
+
readonly INSTALL_CMD="npm install -g siluzan-tso-cli"
|
|
16
|
+
readonly WEB_BASE="https://www.siluzan.com"
|
|
17
17
|
|
|
18
18
|
# -- Constants ----------------------------------------------------------------
|
|
19
19
|
readonly NODE_MAJOR_MIN=18
|