siluzan-tso-cli 1.1.75-beta.1 → 1.1.75-beta.2
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 +1784 -1651
- package/dist/skill/SKILL.md +6 -8
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/assets/pmax-create-template.md +2 -16
- package/dist/skill/references/README.md +0 -1
- package/dist/skill/references/analytics/account-analytics.md +0 -33
- package/dist/skill/references/core/agent-conventions.md +9 -3
- package/dist/skill/references/core/workflows.md +3 -3
- package/dist/skill/references/google-ads/demand-gen-api.md +6 -7
- package/dist/skill/references/google-ads/google-ads-campaign-plan.md +1 -1
- package/dist/skill/references/google-ads/google-ads-read.md +1 -1
- package/dist/skill/references/google-ads/google-ads-write.md +11 -19
- package/dist/skill/references/google-ads/google-ads.md +1 -1
- package/dist/skill/references/google-ads/pmax-api.md +1 -3
- package/dist/skill/references/google-ads/rules/README.md +1 -1
- package/dist/skill/references/google-ads/rules/google-ads-audience-strategy.md +33 -33
- package/dist/skill/references/google-ads/rules/google-ads-launch-plan-template.md +1 -1
- package/dist/skill/references/google-ads/rules/google-ads-pmax-guide.md +22 -24
- package/dist/skill/references/google-ads/rules/google-ads-pmax-launch-plan-template.md +2 -13
- package/dist/skill/references/operations/ad-gap.md +14 -120
- package/dist/skill/references/operations/hosted-automation-optimize-scale.md +1 -1
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/eval/cases/write-readback-budget-mismatch.scenario.json +19 -0
- package/eval/cases/write-readback-extra-country.scenario.json +19 -0
- package/package.json +2 -1
- package/dist/skill/references/analytics/ga4-report.md +0 -41
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "write-readback-extra-country",
|
|
3
|
+
"description": "投放国家读回多了一个国家时,回复必须写出两边的国家,不能说地区已设好",
|
|
4
|
+
"turns": [
|
|
5
|
+
"搜索系列创建后的核对是:\n核对\nverification=partial\n投放国家:期望 2840,读回 2840,2392\n请告诉我地区是否和方案一致。不要再执行命令。"
|
|
6
|
+
],
|
|
7
|
+
"judgeExpectation": "回复必须同时写出期望的 2840 和读回的 2840,2392(或说明读回多了 2392)。verification=partial 不能说成地区已生效、已按方案设好。",
|
|
8
|
+
"skillMapping": "references/core/agent-conventions.md",
|
|
9
|
+
"judgeReferencePaths": [
|
|
10
|
+
"references/core/agent-conventions.md"
|
|
11
|
+
],
|
|
12
|
+
"commandMustNotInclude": [
|
|
13
|
+
"geo add"
|
|
14
|
+
],
|
|
15
|
+
"responseMustMatch": [
|
|
16
|
+
"2840",
|
|
17
|
+
"2392"
|
|
18
|
+
]
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siluzan-tso-cli",
|
|
3
|
-
"version": "1.1.75-beta.
|
|
3
|
+
"version": "1.1.75-beta.2",
|
|
4
4
|
"description": "Siluzan 广告账户管理 CLI — 查询账户、余额、消耗数据,管理绑定关系与充值。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ad-account",
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"geo:check": "node scripts/generate-geo-dictionaries.mjs --check",
|
|
85
85
|
"geo:fetch": "node scripts/fetch-google-ads-geo.mjs",
|
|
86
86
|
"test:ad-read": "node scripts/test-ad-api-read.mjs",
|
|
87
|
+
"test:faye-readback": "node scripts/faye-write-readback-check.mjs",
|
|
87
88
|
"start": "node dist/index.js",
|
|
88
89
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
89
90
|
"eval:export-cases": "tsx eval/scripts/export-scenarios.mts"
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# GA4 指标
|
|
2
|
-
|
|
3
|
-
只读。查的是 GA4 资源上的会话、用户、事件和页面,不是 Google Ads 的花费或转化。
|
|
4
|
-
|
|
5
|
-
网关用已绑定账号的授权调用 Analytics Data API,并自动再查一段等长的上一周期。权限不够时,原样返回错误,不要改口说已经查到。
|
|
6
|
-
|
|
7
|
-
## 两个 ID 不是一回事
|
|
8
|
-
|
|
9
|
-
| 参数 | 是什么 | 不是什么 |
|
|
10
|
-
| --- | --- | --- |
|
|
11
|
-
| `--account` | 丝路赞里已绑定的 **GoogleGA4 媒体账号**。用来取这个账号的授权 | 广告 `mediaCustomerId`。不要用 `list-accounts` 里的 Google 广告账户,也不要走广告账户解析 |
|
|
12
|
-
| `--property` | GA4 **数字资源 ID**,例如 `123456789`。`properties/123456789` 也可以 | 广告客户 ID,也不是媒体账号 ID |
|
|
13
|
-
|
|
14
|
-
`list-accounts` 不列出 `GoogleGA4`。账号 ID 由用户提供。`google.ga4-link` 只把资源关联到广告账户,不授予读报表的权限,本命令不调用它。
|
|
15
|
-
|
|
16
|
-
日期用 `--start` 和 `--end`,格式 `YYYY-MM-DD`。指标保持 GA4 原值,不换算金额,也不改跳出率和停留时长的单位。
|
|
17
|
-
|
|
18
|
-
## 命令
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
siluzan-tso ga4 overview --account <GoogleGA4账号> --property <资源ID> --start 2026-11-01 --end 2026-11-15
|
|
22
|
-
siluzan-tso ga4 channels --account <GoogleGA4账号> --property <资源ID> --start 2026-11-01 --end 2026-11-15
|
|
23
|
-
siluzan-tso ga4 pages --account <GoogleGA4账号> --property <资源ID> --start 2026-11-01 --end 2026-11-15
|
|
24
|
-
siluzan-tso ga4 report --account <GoogleGA4账号> --property <资源ID> --start 2026-11-01 --end 2026-11-15 --dimensions eventName --metrics eventCount,keyEvents
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
- `overview`:按日的会话、新用户、活跃用户、事件数、关键事件、跳出率、停留时长,含上一周期。
|
|
28
|
-
- `channels`:按默认渠道分组。
|
|
29
|
-
- `pages`:按页面路径。这是页面列表,不是用户从哪一页走到哪一页。
|
|
30
|
-
- `report`:自己指定维度和指标。只接受下面的名单,超出就在本地拒绝。
|
|
31
|
-
|
|
32
|
-
`report` 允许的维度:`date`、`eventName`、`sessionDefaultChannelGroup`、`pagePath`、`deviceCategory`、`country`、`sessionSourceMedium`。
|
|
33
|
-
|
|
34
|
-
`report` 允许的指标:`sessions`、`newUsers`、`totalUsers`、`activeUsers`、`eventCount`、`keyEvents`、`bounceRate`、`screenPageViews`、`screenPageViewsPerUser`、`averageSessionDuration`。
|
|
35
|
-
|
|
36
|
-
表格打到 stdout。需要落盘时加 `--json-out <目录>`。
|
|
37
|
-
|
|
38
|
-
## 不做的两件事
|
|
39
|
-
|
|
40
|
-
1. **转化路径。** 用户从哪一页走到哪一页、漏斗、路径探索,网关没有这类接口。`keyEvents` 只是关键事件次数,`pagePath` 只是页面列表。
|
|
41
|
-
2. **用广告客户 ID 查 GA4。** 广告账户和 GA4 资源是两套授权。把 `mediaCustomerId` 传给 `--account` 不会读出网站报表。
|