siluzan-tso-cli 1.1.72 → 1.1.73-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 +2 -1
- package/dist/index.js +2530 -1258
- package/dist/skill/SKILL.md +3 -2
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/assets/campaign-create-keyword-test.fixed.json +2 -2
- package/dist/skill/assets/campaign-create-keyword-test.json +2 -2
- package/dist/skill/assets/campaign-create-template.json +2 -2
- package/dist/skill/assets/campaign-create-template.md +14 -2
- package/dist/skill/references/README.md +1 -0
- package/dist/skill/references/accounts/accounts-list.md +1 -1
- package/dist/skill/references/accounts/accounts-permissions.md +2 -2
- package/dist/skill/references/accounts/finance.md +1 -1
- package/dist/skill/references/accounts/open-account-by-media.md +1 -1
- package/dist/skill/references/accounts/open-account-google-ui.md +1 -1
- package/dist/skill/references/analytics/account-analytics.md +18 -2
- package/dist/skill/references/analytics/google-analysis-batch.md +5 -3
- package/dist/skill/references/analytics/rag.md +1 -1
- package/dist/skill/references/analytics/reporting.md +5 -5
- package/dist/skill/references/core/agent-conventions.md +3 -1
- package/dist/skill/references/core/cli-enums.md +30 -20
- package/dist/skill/references/core/intent-routing.md +2 -1
- package/dist/skill/references/core/playbooks.md +12 -5
- package/dist/skill/references/core/setup.md +5 -5
- package/dist/skill/references/google-ads/google-ads-campaign-plan.md +3 -2
- package/dist/skill/references/google-ads/google-ads-read.md +9 -1
- package/dist/skill/references/google-ads/google-ads-write.md +83 -39
- package/dist/skill/references/google-ads/google-ads.md +22 -19
- package/dist/skill/references/google-ads/rules/google-ads-plan-source-fidelity.md +5 -0
- package/dist/skill/references/misc/tso-home.md +2 -2
- package/dist/skill/references/report-templates/README.md +1 -0
- package/dist/skill/references/report-templates/google-account-diagnosis-report.md +1 -1
- package/dist/skill/references/report-templates/google-ads-diagnosis.md +2 -2
- package/dist/skill/references/report-templates/google-daily-report-excel.md +45 -0
- package/dist/skill/references/report-templates/google-period-report-excel.md +1 -1
- package/dist/skill/references/report-templates/google-period-report.md +3 -3
- package/dist/skill/references/report-templates/okki-weekly-google-client.md +4 -4
- package/dist/skill/report-templates/README.md +1 -0
- package/dist/skill/report-templates/google-account-diagnosis-report.md +1 -1
- package/dist/skill/report-templates/google-ads-diagnosis.md +2 -2
- package/dist/skill/report-templates/google-daily-report-excel.md +45 -0
- package/dist/skill/report-templates/google-period-report-excel.md +1 -1
- package/dist/skill/report-templates/google-period-report.html +31 -4
- package/dist/skill/report-templates/google-period-report.md +3 -3
- package/dist/skill/report-templates/okki-weekly-google-client.md +4 -4
- package/dist/skill/scripts/install.ps1 +3 -3
- package/dist/skill/scripts/install.sh +3 -3
- package/dist/skill/snippets/handoff-p5-batch.md +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Google 投放日报 Excel(google-analysis --by-date + daily-render)
|
|
2
|
+
|
|
3
|
+
> 流程见 `playbooks.md` **P4-DAILY**(Google 分支)。用户上传过一份旧日报、说「按这个格式重新拉到昨天」也走本页。
|
|
4
|
+
|
|
5
|
+
一共两条命令,第二条不到 1 秒:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
siluzan-tso google-analysis -a <mediaCustomerId> --start <S> --end <E> \
|
|
9
|
+
--sections overview,campaigns,keywords,search-terms --by-date --json-out ./snap-daily
|
|
10
|
+
siluzan-tso google-analysis daily-render --snapshot-dir ./snap-daily \
|
|
11
|
+
--title "<客户名> · 投放日报" [--note "<优化动作原文>"] --out ./<文件名>.xlsx
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
- `<E>`:「截止昨日」= 东八区昨天。`<S>`:沿用旧日报的起始日;用户没给就问,不要猜。
|
|
15
|
+
- `--by-date` 一次返回整段「每天 × 系列 / 关键词 / 搜索词」。网关还不支持按日时,CLI 自己逐日拉取(stderr 有一行 `已改为逐日拉取 N 天`),这是正常情况,不用处理。区间超过 92 天会报错,按月拆段分别拉。
|
|
16
|
+
- `daily-render` 的 stdout 是一行 JSON:`file`、`totals`(点击 / 展示 / 费用 / 转化)、`daysWithData`、`latestDay`、`daysWithoutData`、各 Sheet 行数。对用户的汇总直接用这些数,**不要**再打开 xlsx 核对。
|
|
17
|
+
- `latestDay` 早于 `<E>`:那天账户没有展示,照实说,不要重拉。`daysWithoutData` 是账户没有投放的日子(暂停、预算用完),不是拉数失败。
|
|
18
|
+
|
|
19
|
+
## 产物:5 个 Sheet
|
|
20
|
+
|
|
21
|
+
| Sheet | 内容 |
|
|
22
|
+
| ----- | ---- |
|
|
23
|
+
| 账户概览 | 本期按系列类型汇总(含合计);每日 × 系列类型 |
|
|
24
|
+
| 每日数据 | 账户每日;每日 × 广告系列 |
|
|
25
|
+
| 分计划数据 | 本期按广告系列汇总(含合计、类型、状态);每日 × 广告系列 |
|
|
26
|
+
| 搜索字词报告 | 每日 × 搜索字词(匹配类型、关键字、已添加/已排除、系列、广告组);有 `--note` 时表头上方写「优化动作」 |
|
|
27
|
+
| 关键词 | 每日 × 关键词(系列、广告组、匹配类型) |
|
|
28
|
+
|
|
29
|
+
指标列:点击次数、展示次数、点击率、货币代码、平均每次点击费用、费用、转化次数、每次转化费用、转化率。系列和类型表另有「绝对页首展示份额」「页首展示份额」。
|
|
30
|
+
|
|
31
|
+
- 所有合计都由按日行加总,各 Sheet 的合计互相对得上。账户每日也由系列按日加总,**不要**另拉 `daily-metrics` 去对(它每天同步一次,昨天可能还没进)。
|
|
32
|
+
- 份额只对搜索系列有值,其他类型写「—」。多天合并按「展示 ÷ 搜索展示份额」加权。Google 把低于 10% 的份额返回成 `0.0999`。
|
|
33
|
+
- 搜索词和关键词只含有消耗的行。效果最大化的搜索词没有按日数据,不在本表。
|
|
34
|
+
|
|
35
|
+
## 旧日报模板怎么用
|
|
36
|
+
|
|
37
|
+
只从旧文件里取四样:账户 ID、起始日、标题、「优化动作」原文(放进 `--note`)。版式由 `daily-render` 决定,**禁止**用 openpyxl / pandas 读旧文件的样式、合并单元格、列宽再复刻,也**禁止**把新数据写回旧文件。
|
|
38
|
+
|
|
39
|
+
旧日报的「绝对页首展示次数百分比 / 页首展示次数百分比」是 Google 前台的 Impr. (Abs. Top) % 和 Impr. (Top) %(占自己展示的比例)。CLI 拿不到这两项,本表写的是展示**份额**(占可获得展示的比例),数值会比旧表低。交付时说一句列名变了、口径不同,不要把份额填进旧列名。
|
|
40
|
+
|
|
41
|
+
## 禁止
|
|
42
|
+
|
|
43
|
+
- 按天循环 `google-analysis`(`for d in …`、`&` 后台并发、Python `subprocess` 包 `siluzan-tso`)。沙箱会拦截后台并发,subprocess 里可能拿不到凭据。
|
|
44
|
+
- 拉完再单独拉 `campaigns` 不带 `--by-date` 去做「区间合计」:合计已经在表里。
|
|
45
|
+
- 渲染成功后再开 xlsx 逐格检查、改样式重跑。用户提出修改再改。
|
|
@@ -120,7 +120,7 @@ function valueKpis(items) {
|
|
|
120
120
|
|
|
121
121
|
禁止对行上的 `conversionsValuePerCost` 再平均(那是行级「转化价值/费用」,不是账户 ROAS)。
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
关键词、搜索字词、国家/地区、设备、受众、每日趋势都要有「转化价值」列,读各自行的 `conversionsValue`(账户币种)。每日趋势读 `daily-metrics` 的 `items[].conversionsValue`;设备读 `devices` 或 `campaign-device`;地域读 `geographic` / `geo-targeted`。ROAS = 该值 / 该行 `spend`(spend 为 0 写「—」)。禁止把系列汇总摊到词、设备、国家或按日上,也禁止用转化次数估算。行上有这个数字就按返回值填写,0 也写 0,不要改成「未返回」。只有行上没有该字段时才写「未返回」。`geo-matched` / `campaign-geo`、`campaign-hour`、视频和图片素材没有这项查询,写「该维度未返回」。上期 `campaigns` 拉数失败时,账户级三格写明原因,不要留空。
|
|
124
124
|
|
|
125
125
|
英文终稿表头:转化价值 → Conversion value,单转化价值 → Value / conversion,ROAS 保持 ROAS。
|
|
126
126
|
|
|
@@ -863,9 +863,10 @@
|
|
|
863
863
|
|
|
864
864
|
function renderDailyTrend(data) {
|
|
865
865
|
const chart = data.charts?.dailyTrend || {};
|
|
866
|
+
const currency = data.meta?.currency || "CNY";
|
|
866
867
|
const dates = Array.isArray(chart.dates) ? chart.dates : [];
|
|
867
868
|
const section = data.narrative?.sections?.dailyTrend;
|
|
868
|
-
const head = sectionHead("02", "每日投放趋势", "按日消耗 / 转化 / CPA
|
|
869
|
+
const head = sectionHead("02", "每日投放趋势", "按日消耗 / 转化 / 转化价值 / CPA");
|
|
869
870
|
if (dates.length === 0) {
|
|
870
871
|
return `
|
|
871
872
|
<section id="sec-daily-trend">
|
|
@@ -876,11 +877,28 @@
|
|
|
876
877
|
</div>
|
|
877
878
|
</section>`;
|
|
878
879
|
}
|
|
880
|
+
const values = Array.isArray(chart.conversionsValue) ? chart.conversionsValue : [];
|
|
881
|
+
const body = dates
|
|
882
|
+
.map(
|
|
883
|
+
(d, i) => `
|
|
884
|
+
<tr>
|
|
885
|
+
<td>${escapeHtml(d)}</td>
|
|
886
|
+
<td class="num">${money(chart.cost?.[i], currency)}</td>
|
|
887
|
+
<td class="num">${int(chart.conversions?.[i])}</td>
|
|
888
|
+
<td class="num">${money(values[i], currency)}</td>
|
|
889
|
+
<td class="num">${money(chart.cpa?.[i], currency)}</td>
|
|
890
|
+
</tr>`,
|
|
891
|
+
)
|
|
892
|
+
.join("");
|
|
879
893
|
return `
|
|
880
894
|
<section id="sec-daily-trend">
|
|
881
895
|
${head}
|
|
882
896
|
<div class="card">
|
|
883
897
|
<div id="chart-daily-trend" class="chart-box"></div>
|
|
898
|
+
<div class="table-wrap"><table>
|
|
899
|
+
<thead><tr><th>日期</th><th class="num">消耗</th><th class="num">转化</th><th class="num">转化价值</th><th class="num">CPA</th></tr></thead>
|
|
900
|
+
<tbody>${body}</tbody>
|
|
901
|
+
</table></div>
|
|
884
902
|
${analysisBlock(section)}
|
|
885
903
|
</div>
|
|
886
904
|
</section>`;
|
|
@@ -976,6 +994,7 @@
|
|
|
976
994
|
<td class="num">${int(r.clicks)}</td>
|
|
977
995
|
<td class="num">${pct(r.ctr)}</td>
|
|
978
996
|
<td class="num">${int(r.conversions)}</td>
|
|
997
|
+
<td class="num">${money(r.conversionsValue, currency)}</td>
|
|
979
998
|
<td class="num">${money(r.costPerConversion, currency)}</td>
|
|
980
999
|
</tr>`,
|
|
981
1000
|
)
|
|
@@ -984,7 +1003,7 @@
|
|
|
984
1003
|
sorted.length > 0
|
|
985
1004
|
? `<div id="chart-devices" class="chart-box" style="height:280px"></div>
|
|
986
1005
|
<div class="table-wrap"><table>
|
|
987
|
-
<thead><tr><th>设备</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">转化</th><th class="num">CPA</th></tr></thead>
|
|
1006
|
+
<thead><tr><th>设备</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">转化</th><th class="num">转化价值</th><th class="num">CPA</th></tr></thead>
|
|
988
1007
|
<tbody>${body}</tbody>
|
|
989
1008
|
</table></div>`
|
|
990
1009
|
: '<div class="empty-note">数据不可用:devices 未拉取</div>';
|
|
@@ -1237,7 +1256,7 @@
|
|
|
1237
1256
|
formatter: (params) =>
|
|
1238
1257
|
params
|
|
1239
1258
|
.map((p) => {
|
|
1240
|
-
if (p.seriesName === "消耗" || p.seriesName === "CPA") {
|
|
1259
|
+
if (p.seriesName === "消耗" || p.seriesName === "CPA" || p.seriesName === "转化价值") {
|
|
1241
1260
|
return `${p.marker}${p.seriesName}: ${fixed2(p.value)}`;
|
|
1242
1261
|
}
|
|
1243
1262
|
return `${p.marker}${p.seriesName}: ${int(p.value)}`;
|
|
@@ -1246,7 +1265,7 @@
|
|
|
1246
1265
|
},
|
|
1247
1266
|
TOOLTIP_STYLE,
|
|
1248
1267
|
),
|
|
1249
|
-
legend: { data: ["消耗", "转化", "CPA"], textStyle: { color: AXIS_COLOR }, top: 0 },
|
|
1268
|
+
legend: { data: ["消耗", "转化", "转化价值", "CPA"], textStyle: { color: AXIS_COLOR }, top: 0 },
|
|
1250
1269
|
grid: { left: 52, right: 52, top: 44, bottom: 30 },
|
|
1251
1270
|
xAxis: styleAxis({ type: "category", data: daily.dates, boundaryGap: false }),
|
|
1252
1271
|
yAxis: [
|
|
@@ -1276,6 +1295,14 @@
|
|
|
1276
1295
|
barMaxWidth: 18,
|
|
1277
1296
|
itemStyle: { color: "rgba(16,185,129,0.55)", borderRadius: [4, 4, 0, 0] },
|
|
1278
1297
|
},
|
|
1298
|
+
{
|
|
1299
|
+
name: "转化价值",
|
|
1300
|
+
type: "line",
|
|
1301
|
+
data: daily.conversionsValue || [],
|
|
1302
|
+
smooth: true,
|
|
1303
|
+
showSymbol: false,
|
|
1304
|
+
lineStyle: { width: 2, color: PALETTE[2] },
|
|
1305
|
+
},
|
|
1279
1306
|
{
|
|
1280
1307
|
name: "CPA",
|
|
1281
1308
|
type: "line",
|
|
@@ -37,7 +37,7 @@ siluzan-tso google-analysis render \
|
|
|
37
37
|
|
|
38
38
|
- `meta`:`accountId`(必填)/ `accountName` / `currency` / `startDate` / `endDate`;可省略由 `--snapshot-dir` 从 `overview` + manifest 自动合并。
|
|
39
39
|
- `kpis`:账户级 KPI(消耗/展示/点击/转化/CTR/CPC/CPA,含可选 `previousPeriod` 环比;另含 `activeDays` / `averageDailyCost`);Agent 可省略,但 **render 合并后** `cost`/`impressions`/`clicks` 至少一项须为有效数字,否则拒绝出 HTML(避免执行摘要卡片全「—」)。本期 KPI 由 CLI 优先对 `campaigns` 全系列累加并重算比率;无 campaigns 时回退 `overview.currentPeriod`,再回退 `dimension-summary`。`activeDays` / `averageDailyCost` 来自 `overview.record` 根(**不是** `currentPeriod`);环比仍来自 `overview.previousPeriod`(上期无活跃天数,不编造)。
|
|
40
|
-
- `charts.dailyTrend`:每日趋势(`dates`/`cost`/`conversions`/`cpa`);可省略由 `daily-metrics`
|
|
40
|
+
- `charts.dailyTrend`:每日趋势(`dates`/`cost`/`conversions`/`conversionsValue`/`cpa`);可省略由 `daily-metrics` 自动合并。`conversionsValue` 是账户币种转化价值。
|
|
41
41
|
- `tables.{dimensionSummary,campaigns,devices,geographic,audience,keywords,negativeKeywords}`:对应 §3~§9 表格数据;可省略由同名 `google-analysis` section 自动合并。`negativeKeywords` 合并后必须是数组,**0 条也是 `[]`**。
|
|
42
42
|
- `narrative`(**Agent 必填,唯一由 Agent 撰写的内容**):
|
|
43
43
|
- `executiveSummary[]`:≥1 段执行摘要
|
|
@@ -67,10 +67,10 @@ siluzan-tso google-analysis render \
|
|
|
67
67
|
| # | 维度 | CLI |
|
|
68
68
|
| --- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
69
69
|
| 1 | 执行摘要(消耗/展示/点击/转化/CTR/CPC/CPA 本期概览) | `google-analysis --sections overview` |
|
|
70
|
-
| 2 |
|
|
70
|
+
| 2 | 每日投放趋势(按日消耗/转化/转化价值/CPA;金额与转化价值 **2 位小数**,转化整数) | `google-analysis --sections daily-metrics`(`items[].conversionsValue`) |
|
|
71
71
|
| 3 | 月度汇总(全周期汇总数据) | `google-analysis --sections dimension-summary` |
|
|
72
72
|
| 4 | 广告系列表现(预算/出价策略/各系列消耗与效果) | `google-analysis --sections campaigns` |
|
|
73
|
-
| 5 | 设备分布(PC/移动/平板
|
|
73
|
+
| 5 | 设备分布(PC/移动/平板 消耗/点击/转化/转化价值) | `google-analysis --sections devices`(行上 `conversionsValue`) |
|
|
74
74
|
| 6 | 地域分布(国家/地区消耗、转化价值、ROAS) | `google-analysis --sections geographic` |
|
|
75
75
|
| 7 | 受众分布(意向/兴趣/再营销/客户匹配等列表表现) | `google-analysis --sections audience`(默认不传 `--audience-type`,系统+自定义一起拉) |
|
|
76
76
|
| 8 | 关键词表现(词/消耗/CTR/CPC 排行),并带上效果最大化搜索词的消耗 | `keywords` 不能合并去重。同一次命令必须还有 `campaigns` 和 `search-terms`,CLI 才写 `pmax-search-terms-*.json`。这一章和任何搜索词表都要并进它的 `items[]`(有 `spend`,`matchTypeZh` 为「效果最大化」)。不要用 `ad pmax-search-terms`,那条没有花费 |
|
|
@@ -222,8 +222,8 @@ function deviceKind(deviceType) {
|
|
|
222
222
|
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
223
223
|
| R1 | `设备报告` |
|
|
224
224
|
| R2 | 统计区间 |
|
|
225
|
-
| R3(A→
|
|
226
|
-
| R4… | `campaign-device-*.json`(`items[]`):`deviceType`→设备;`campaignName` / `adGroupName`→「广告系列」等;`allConversions`→「所有转化次数」;`conversions`→「转化次数」;`ctr` / `conversionRate` 直接写入;**出价调整**:写 `bidModifierDisplay`(与 Google 后台一致:未设置=`—`,`0.6`=`-40%`)。禁止把倍率当正百分比,禁止把未设置的 `0` 写成 `-100%`;**级别**列按运营约定(如填 `广告系列` 或 `账户`,全文一致) |
|
|
225
|
+
| R3(A→N,14 列) | `设备` \| `级别` \| `广告系列` \| `出价调整` \| `展示次数` \| `点击次数` \| `点击率` \| `平均每次点击费用` \| `费用` \| `所有转化次数` \| `转化次数` \| `转化价值` \| `每次转化费用` \| `转化率` |
|
|
226
|
+
| R4… | `campaign-device-*.json`(`items[]`):`deviceType`→设备;`campaignName` / `adGroupName`→「广告系列」等;`allConversions`→「所有转化次数」;`conversions`→「转化次数」;`conversionsValue`→「转化价值」(账户币种金额,不是次数);`ctr` / `conversionRate` 直接写入;**出价调整**:写 `bidModifierDisplay`(与 Google 后台一致:未设置=`—`,`0.6`=`-40%`)。禁止把倍率当正百分比,禁止把未设置的 `0` 写成 `-100%`;**级别**列按运营约定(如填 `广告系列` 或 `账户`,全文一致) |
|
|
227
227
|
| 表末「分析」 | **总结**:各设备消耗与转化占比、系列×设备高消耗组合、移动端 vs 桌面 CPA/CPC 差异。占比按 `deviceKind` 累加费用(见上文),`deviceType` 是 `Desktop`/`Mobile`,不是 `DESKTOP`/`MOBILE`。桌面费用 ≥ 移动时禁止写「移动端为主要消耗 / 移动端占比高」。**建议**:设备出价系数、落地页或系列倾斜(须引用设备类型与表中费用/转化),1~3 条;`okki-render` 不改写建议原文 |
|
|
228
228
|
|
|
229
229
|
---
|
|
@@ -234,8 +234,8 @@ function deviceKind(deviceType) {
|
|
|
234
234
|
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
235
235
|
| R1 | `地理位置报告` |
|
|
236
236
|
| R2 | 统计区间 |
|
|
237
|
-
| R3(A→
|
|
238
|
-
| R4… | `geo-targeted-*.json` 的 `items[]`(`schemaVersion 3` 行统一在 `items`):`countryOrRegion`→地理位置;`campaignName`→「广告系列」;`allConversions`→「所有转化次数」;`conversions
|
|
237
|
+
| R3(A→N,14 列) | `地理位置` \| `广告系列` \| `展示次数` \| `互动次数` \| `互动率` \| `费用` \| `平均费用` \| `点击次数` \| `点击率` \| `所有转化次数` \| `转化次数` \| `转化价值` \| `每次转化费用` \| `转化率` |
|
|
238
|
+
| R4… | `geo-targeted-*.json` 的 `items[]`(`schemaVersion 3` 行统一在 `items`):`countryOrRegion`→地理位置;`campaignName`→「广告系列」;`allConversions`→「所有转化次数」;`conversions`→「转化次数」;`conversionsValue`→「转化价值」(账户币种金额,不是次数);**互动次数**→`interactions`,缺省/为 0 时回退 `clicks`(当前定位接口常不回 interactions);**互动率**→`interactionRate`(字符串须解析)或 `互动次数/impressions`,回退后仍为 0 才填 `—`;**平均费用** = `spend / 互动次数`(同样先 interactions 再 clicks),分母为 0 时填 `—`;`ctr` / `conversionRate` 直接写入;其余列按 outline 映射 |
|
|
239
239
|
| 表末「分析」 | **总结**:Top 国家/地区消耗与转化、高消耗低转化地域、系列×地域组合。**建议**:地域加价/降价、排除或单独系列(须写国家/地区名 + 表中费用/转化/CPA),1~3 条 |
|
|
240
240
|
|
|
241
241
|
---
|
|
@@ -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.
|
|
12
|
+
$PKG_VERSION = '1.1.73-beta.2'
|
|
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.siluzan.com'
|
|
15
|
+
$INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
|
|
16
|
+
$WEB_BASE = 'https://www-ci.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.
|
|
12
|
+
readonly PKG_VERSION="1.1.73-beta.2"
|
|
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.siluzan.com"
|
|
15
|
+
readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
|
|
16
|
+
readonly WEB_BASE="https://www-ci.siluzan.com"
|
|
17
17
|
|
|
18
18
|
# -- Constants ----------------------------------------------------------------
|
|
19
19
|
readonly NODE_MAJOR_MIN=18
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
siluzan-tso google-analysis-batch run \
|
|
10
10
|
--start <S> --end <D> \
|
|
11
11
|
--sections campaigns,geographic,keywords \
|
|
12
|
-
--account-concurrency
|
|
12
|
+
--account-concurrency 12 --section-concurrency 6 \
|
|
13
13
|
--min-spend 1 --keyword-limit 1000 \
|
|
14
14
|
--json-out ./snap-p5
|
|
15
15
|
|