siluzan-tso-cli 1.1.67-beta.3 → 1.1.68-beta.1
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
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.
|
|
54
|
+
> **注意**:当前为测试版(1.1.68-beta.1),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
|
|
55
55
|
|
|
56
56
|
| 助手 | 建议 `--ai` |
|
|
57
57
|
| ----------------------- | ------------------------------------ |
|
package/dist/index.js
CHANGED
|
@@ -7658,7 +7658,12 @@ var init_strip_legacy_google_fields = __esm({
|
|
|
7658
7658
|
["campaignStatus", "campaignStatusV2"],
|
|
7659
7659
|
["adGroupStatus", "adGroupStatusV2"],
|
|
7660
7660
|
["matchType", "matchTypeV2"],
|
|
7661
|
-
["type", "typeV2"]
|
|
7661
|
+
["type", "typeV2"],
|
|
7662
|
+
// 广告审核:旧字段常为 UNDER_REVIEW,与 policyApprovalStatusV2=Approved 相反。
|
|
7663
|
+
["policyApprovalStatus", "policyApprovalStatusV2"],
|
|
7664
|
+
// 父级开关:旧字段常为 PAUSED,与 parent*StatusV2=Enabled 相反。
|
|
7665
|
+
["parentCampaignStatus", "parentCampaignStatusV2"],
|
|
7666
|
+
["parentAdGroupStatus", "parentAdGroupStatusV2"]
|
|
7662
7667
|
];
|
|
7663
7668
|
}
|
|
7664
7669
|
});
|
|
@@ -118361,27 +118366,31 @@ function formatGoogleCampaignListStatus(row) {
|
|
|
118361
118366
|
if (statusKey === "REMOVED") {
|
|
118362
118367
|
return `${statusLabel2}\xB7\u5DF2\u5220\u9664`;
|
|
118363
118368
|
}
|
|
118364
|
-
const start = parseCampaignTimeMs(row.startTime);
|
|
118365
|
-
const end = parseCampaignTimeMs(row.endTime);
|
|
118366
|
-
if (start == null || end == null) return statusLabel2;
|
|
118367
118369
|
const now = Date.now();
|
|
118368
|
-
|
|
118369
|
-
|
|
118370
|
-
|
|
118371
|
-
|
|
118372
|
-
|
|
118373
|
-
|
|
118374
|
-
|
|
118375
|
-
|
|
118376
|
-
|
|
118377
|
-
|
|
118378
|
-
|
|
118370
|
+
const start = parseCampaignTimeMs(row.startTime);
|
|
118371
|
+
const notStarted = start != null && now < start;
|
|
118372
|
+
if (statusKey === "PAUSED") {
|
|
118373
|
+
return `${statusLabel2}\xB7${notStarted ? "\u672A\u6295\u653E" : "\u5DF2\u6682\u505C"}`;
|
|
118374
|
+
}
|
|
118375
|
+
if (statusKey === "ENABLED") {
|
|
118376
|
+
if (notStarted) return `${statusLabel2}\xB7\u672A\u6295\u653E`;
|
|
118377
|
+
const end = parseCampaignEndMs(row.endTime);
|
|
118378
|
+
if (end != null && now > end) return `${statusLabel2}\xB7\u6295\u653E\u671F\u5DF2\u7ED3\u675F`;
|
|
118379
|
+
return `${statusLabel2}\xB7\u6709\u6548`;
|
|
118380
|
+
}
|
|
118381
|
+
return statusLabel2;
|
|
118379
118382
|
}
|
|
118380
118383
|
function parseCampaignTimeMs(v) {
|
|
118381
118384
|
if (v == null || v === "") return null;
|
|
118382
118385
|
const t = new Date(v).getTime();
|
|
118383
118386
|
return Number.isFinite(t) ? t : null;
|
|
118384
118387
|
}
|
|
118388
|
+
function parseCampaignEndMs(v) {
|
|
118389
|
+
const t = parseCampaignTimeMs(v);
|
|
118390
|
+
if (t == null) return null;
|
|
118391
|
+
if (new Date(t).getFullYear() <= 1901) return null;
|
|
118392
|
+
return t;
|
|
118393
|
+
}
|
|
118385
118394
|
async function emitReusedDigestCampaignTypes(opts, hit) {
|
|
118386
118395
|
process.stderr.write(
|
|
118387
118396
|
`\u5DF2\u6709 accounts-digest \u7CFB\u5217\u7C7B\u578B\uFF08${hit.sourceFile}\uFF09\uFF0C\u672A\u8BF7\u6C42\u5E7F\u544A\u7CFB\u5217\u5217\u8868\u3002channelTypeV2 \u4E0E campaignTypes \u76F8\u540C\u3002\u8981\u7CFB\u5217\u540D\u79F0\u3001\u72B6\u6001\u3001\u6D88\u8017\u8BF7\u52A0 --live\u3002
|
package/dist/skill/_meta.json
CHANGED
|
@@ -44,7 +44,9 @@
|
|
|
44
44
|
siluzan-tso ad campaigns -a <accountId> [--start <YYYY-MM-DD>] [--end <YYYY-MM-DD>] [--json-out ./snap]
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
落盘 JSON 中 **`budget` 为日预算**(主币种「元」,CLI 已 ÷100),另有 **`statusV2`**(`Enabled`/`Paused`/`Removed`)与 **`statusDisplay`**(`{statusV2}·日程文案`,如 `Enabled·有效`、`Enabled·投放期已结束`、`Removed·已删除`)。
|
|
47
|
+
落盘 JSON 中 **`budget` 为日预算**(主币种「元」,CLI 已 ÷100),另有 **`statusV2`**(`Enabled`/`Paused`/`Removed`)与 **`statusDisplay`**(`{statusV2}·日程文案`,如 `Enabled·有效`、`Paused·已暂停`、`Enabled·投放期已结束`、`Removed·已删除`)。
|
|
48
|
+
|
|
49
|
+
`endTime` 年份 ≤ 1901(常见 `0001-01-01`、`1901-01-01`)表示**没有结束日期**。这时 `statusDisplay` 是 `Enabled·有效` 或 `Paused·已暂停`,不要写成投放已结束。只有 `statusV2` 为 `Enabled`、且结束日晚于 1901 年并已经过去,才是 `Enabled·投放期已结束`。`Paused` 不因 `endTime` 变成「投放期已结束」。
|
|
48
50
|
|
|
49
51
|
同对象里 **`targetSpendBidCeilingYuan`**、**`targetCpaAmountYuan`** 也是元,与 `--bid-ceiling` / `--target-cpa` 同口径。`targetSpend_BidCeilingAmount`、`targetCpa_BidingAmount` 仍是分(`1` = 0.01 元),不要填回写参数。`targetRoas` 是倍数,不是金额。
|
|
50
52
|
|
|
@@ -146,7 +148,7 @@ siluzan-tso ad list -a <accountId> [--start/--end <date>] [--include-deleted] [-
|
|
|
146
148
|
|
|
147
149
|
### 拒审巡检(`--json-out`)
|
|
148
150
|
|
|
149
|
-
|
|
151
|
+
审核只读 `policyApprovalStatusV2`(字符串,不是数字):`Approved` = 已通过;名称含 `Disapproved` = 不通过;含 `Limited` = 受限。系列/广告组是否在投看 `parentCampaignStatusV2`、`parentAdGroupStatusV2`。不要读不带 `V2` 的同名旧字段(例如 `policyApprovalStatus=UNDER_REVIEW` 不代表审核中)。同时看 `approvalStatusDetails`(`;` 分隔摘要)和 `statusV2`(过滤 `Removed`)。同源也可用 `google-analysis --sections ads --json-out <dir>`。
|
|
150
152
|
|
|
151
153
|
### 创建(RSA)
|
|
152
154
|
|
|
@@ -9,7 +9,7 @@ $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.68-beta.1'
|
|
13
13
|
$CLI_BIN = 'siluzan-tso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan TSO'
|
|
15
15
|
$INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
|
|
@@ -9,7 +9,7 @@ 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.68-beta.1"
|
|
13
13
|
readonly CLI_BIN="siluzan-tso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan TSO"
|
|
15
15
|
readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
|