siluzan-tso-cli 1.1.69-beta.2 → 1.1.69
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 +1148 -73
- package/dist/skill/AGENTS.md +1 -1
- package/dist/skill/SKILL.md +21 -15
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/references/README.md +1 -1
- 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 +3 -1
- 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 -3
- package/dist/skill/references/core/intent-routing.md +4 -2
- package/dist/skill/references/core/playbooks.md +1 -1
- package/dist/skill/references/core/setup.md +5 -5
- package/dist/skill/references/core/workflows.md +16 -5
- package/dist/skill/references/google-ads/demand-gen-api.md +1 -1
- package/dist/skill/references/google-ads/google-ads-campaign-plan.md +1 -1
- package/dist/skill/references/google-ads/google-ads-write.md +34 -7
- package/dist/skill/references/google-ads/google-ads.md +5 -4
- package/dist/skill/references/meta-ads/meta-ads-migrate.md +42 -0
- package/dist/skill/references/meta-ads/meta-ads-read.md +3 -0
- package/dist/skill/references/meta-ads/meta-ads-write.md +12 -4
- package/dist/skill/references/meta-ads/meta-ads.md +10 -7
- package/dist/skill/references/misc/tso-home.md +2 -2
- package/dist/skill/references/operations/ad-gap.md +387 -19
- package/dist/skill/references/report-templates/google-period-report-excel.md +1 -1
- package/dist/skill/references/report-templates/google-period-report.md +1 -1
- package/dist/skill/references/report-templates/google-quarterly-report.md +1 -1
- package/dist/skill/report-templates/google-period-report-excel.md +1 -1
- package/dist/skill/report-templates/google-period-report.md +1 -1
- package/dist/skill/report-templates/google-quarterly-report.md +1 -1
- package/dist/skill/scripts/install.ps1 +3 -3
- package/dist/skill/scripts/install.sh +3 -3
- package/package.json +1 -1
|
@@ -56,27 +56,249 @@ siluzan-tso ad-gap --action bing.delete-locations --account 123 --body "{\"paren
|
|
|
56
56
|
| `bing.keyword-bids` | `adGroupId`。`bids[]`:`keywordId` `amount`(>0) |
|
|
57
57
|
| `bing.delete-keywords` | `parentId` `ids` |
|
|
58
58
|
| `bing.negative-keywords` | `entityId` `entityType`(`Campaign` / `AdGroup` / `Ad` / `Keyword` / `AssetGroup`)`keywords` |
|
|
59
|
+
| `bing.delete-negative-keywords` | `entityId` `entityType` `ids`(否定关键词 Id) |
|
|
59
60
|
| `bing.campaign-negative-sites` | `parentId` 为系列。`sites` 只填域名,不要带 `https://` |
|
|
60
61
|
| `bing.ad-group-negative-sites` | `campaignId`,`parentId` 为广告组。`sites` 同样只填域名 |
|
|
61
62
|
| `bing.location` | `campaignId` `locationId`(微软地理位置编号) |
|
|
62
63
|
| `bing.delete-locations` | `parentId` 为系列,`ids` 为条件编号 |
|
|
63
64
|
| `bing.budget` | `name`(≤255)`amount`(>0)。这是共享预算,改金额会影响挂在上面的系列 |
|
|
64
65
|
| `bing.delete-budgets` | `ids` |
|
|
65
|
-
| `bing.sitelink` | `displayText`(≤25)`finalUrl
|
|
66
|
+
| `bing.sitelink` | `displayText`(≤25)`finalUrl` |
|
|
67
|
+
| `bing.delete-sitelinks` | `ids` 为附加信息 Id |
|
|
66
68
|
| `bing.link-sitelink` | `extensionId` `campaignId` |
|
|
67
|
-
| `bing.
|
|
69
|
+
| `bing.unlink-sitelink` | `extensionId` `campaignId`。只解除系列关联,不删除附加信息 |
|
|
70
|
+
| `bing.customer-list` | `name`(≤128)。可选 `membershipDays`,1–180,默认按 30 |
|
|
71
|
+
| `bing.delete-customer-lists` | `ids` 为受众 Id |
|
|
68
72
|
| `bing.customer-list-items` | `audienceId` `action`(`Add` / `Remove` / `Replace`)`hashedEmails` 为 64 位小写 SHA-256,1–10000 条 |
|
|
69
73
|
| `bing.uet-tag` | `name`(≤100),可选 `description`。没有删除 action |
|
|
70
74
|
| `bing.conversion-goal` | `name` `tagId`。没有删除 action |
|
|
71
75
|
| `bing.offline-conversions` | `rows[]` 1–1000 条:`conversionName` `conversionTime`,以及 `microsoftClickId` 或 `hashedEmail`。有价值时再给非负 `conversionValue` 和 3 位 `currencyCode` |
|
|
72
|
-
| `bing.label` | `name`(≤80),可选 `colorCode`(`#RRGGBB
|
|
76
|
+
| `bing.label` | `name`(≤80),可选 `colorCode`(`#RRGGBB`) |
|
|
77
|
+
| `bing.delete-labels` | `ids` |
|
|
73
78
|
| `bing.link-labels` | `entityType`(同上五种)`labelId` `entityIds` |
|
|
74
|
-
| `bing.
|
|
75
|
-
| `bing.
|
|
76
|
-
| `bing.
|
|
79
|
+
| `bing.unlink-labels` | 与 `bing.link-labels` 相同 |
|
|
80
|
+
| `bing.experiment` | `name` `baseCampaignId` `trafficSplitPercent`(1–99)`experimentType`(官方类型名,≤50) |
|
|
81
|
+
| `bing.delete-experiments` | `ids` |
|
|
82
|
+
| `bing.asset-group` | `campaignId` `name`(≤128)`finalUrl`。`headlines` 3–15 条、每条 ≤30;`longHeadlines` 1–5 条、每条 ≤90;`descriptions` 2–5 条、每条 ≤90 |
|
|
83
|
+
| `bing.delete-asset-groups` | `ids` |
|
|
84
|
+
| `bing.max-clicks` | `name` `maxCpc`(>0) |
|
|
85
|
+
| `bing.delete-bid-strategies` | `ids` |
|
|
77
86
|
| `bing.appeal` | `entityType` `justification`(≤1000)`entityId` `parentId` |
|
|
78
|
-
| `bing.image` | `mediaType` 只接受 `Image` 或 `Icon`。`text`
|
|
79
|
-
| `bing.
|
|
87
|
+
| `bing.image` | `mediaType` 只接受 `Image` 或 `Icon`。`text` 是素材内容 |
|
|
88
|
+
| `bing.delete-images` | `ids` 为媒体 Id |
|
|
89
|
+
| `bing.video` | `sourceUrl`,可选 `description` |
|
|
90
|
+
| `bing.delete-videos` | `ids` |
|
|
91
|
+
| `bing.negative-keyword-list` | `name`(≤255)`keywords[]`:`text` `matchType`(`Exact` / `Phrase` / `Broad`) |
|
|
92
|
+
| `bing.negative-keyword-list-items` | `listId` `keywords[]`,字段同上 |
|
|
93
|
+
| `bing.link-negative-keyword-list` | `listId` `campaignId`。挂到系列 |
|
|
94
|
+
| `bing.delete-negative-keyword-lists` | `ids` |
|
|
95
|
+
| `bing.callout` | `text`(≤25) |
|
|
96
|
+
| `bing.snippet` | `header` `values`(3–10 条,每条 ≤25)。`header` 用微软固定标题,例如 `Brands` |
|
|
97
|
+
| `bing.price-extension` | `language` `priceExtensionType`(`Brands` / `Events` / `Locations` / `Neighborhoods` / `ProductCategories` / `ProductTiers` / `Services` / `ServiceCategories` / `ServiceTiers`)`tableRows` 3–8 行。每行 `header` `description`(各 ≤25)`price`(>0)`currencyCode` `priceQualifier`(`From` / `UpTo` / `None` / `Average`)`priceUnit`(`PerHour` / `PerDay` / `PerWeek` / `PerMonth` / `PerYear` / `PerNight` / `None`)。可选 `finalUrl` |
|
|
98
|
+
| `bing.promotion-extension` | `language`(`Danish` / `Dutch` / `English` / `Finnish` / `French` / `German` / `Italian` / `Norwegian` / `Portuguese` / `Spanish` / `Swedish` / `TraditionalChinese`)`finalUrl` `promotionItem`(≤20)。`moneyAmountOff` 和 `percentOff` 只能填一个;金额减免还要 `currencyCode`。`ordersOverAmount` 和 `promotionCode`(≤15)不能同时填。可选 `discountModifier`(`UpTo` / `None`) |
|
|
99
|
+
| `bing.call-extension` | `countryCode` `phoneNumber`(≤35)。只创建带网站链接的电话附加,不开放只显示电话 |
|
|
100
|
+
| `bing.ad-group-device` | `adGroupId` `deviceName`(`Computers` / `Smartphones` / `Tablets`) |
|
|
101
|
+
| `bing.ad-group-age` | `adGroupId` `ageRange`(`EighteenToTwentyFour` / `TwentyFiveToThirtyFour` / `ThirtyFiveToFourtyNine` / `ThirtyFiveToFiftyFour` / `FiftyToSixtyFour` / `FiftyFiveAndAbove` / `SixtyFiveAndAbove`) |
|
|
102
|
+
| `bing.ad-group-gender` | `adGroupId` `genderType`(`Male` / `Female`) |
|
|
103
|
+
| `bing.ad-group-audience` | `adGroupId` `audienceId`。只写受众 Id,不写受众类型 |
|
|
104
|
+
| `bing.rename-campaign` | `campaignId` `name`(≤128)。状态和日预算仍走 `bing-analysis` |
|
|
105
|
+
| `bing.campaign-settings` | `campaignId`。`biddingScheme` 取 `MaxClicks` / `EnhancedCpc` / `MaxConversions` / `MaxConversionValue`。`MaxConversions` 可带 `targetCpa`(>0)。`MaxConversionValue` 必须带 `targetRoas`(0.01–1000,0.01 表示 1%)。`languages` 1–50 个。至少给策略或语言。系列上不再写旧的 Target CPA / Target ROAS 方案,也不在这里新增 MaxCpc |
|
|
106
|
+
| `bing.update-ad-copy` | `adGroupId` `adId` `finalUrl`。`headlines` 3–15 条、每条 ≤30;`descriptions` 2–4 条、每条 ≤90 |
|
|
107
|
+
| `bing.seasonality` | `name` `start` `end`(`yyyy-MM-dd`)`adjustmentPercentage`(-90 到 900,不能为 0)`campaignId` |
|
|
108
|
+
| `bing.data-exclusion` | `name` `start` `end` `campaignId` |
|
|
109
|
+
| `bing.conversion-value-rule` | `name` `value`(>0,按倍数)。新建为暂停 |
|
|
110
|
+
|
|
111
|
+
### Bing 其余广告管理
|
|
112
|
+
|
|
113
|
+
上面没列出的 Bing 广告管理走 `bing.<operation>`,读走 `bing.read-<operation>`。路径仍是 `ad-gap`。金额继续填账户币种。新建的系列、广告组、广告、转化目标保持暂停。读取只返回 `id`、`name`、`status`、`type`、`detail`,不改账户。条件、附加信息、受众、预算这些对象没有“列出全部”的接口,要先有 id。
|
|
114
|
+
|
|
115
|
+
这些 action 会直接拒绝,不要改字段重试:
|
|
116
|
+
|
|
117
|
+
| action | 原因 |
|
|
118
|
+
| --- | --- |
|
|
119
|
+
| `bing.expanded-text` `bing.text-ad` | 微软已不允许新建或修改 |
|
|
120
|
+
| `bing.dynamic-search-ads-campaign` | 系列类型已废弃。动态搜索用下面三步 |
|
|
121
|
+
| `bing.objective-based-campaign` | 当前接口没有 Objective 设置,发不出会被接受的系列 |
|
|
122
|
+
| `bing.customer-list-phone` | 客户名单只有邮箱和 CRM,没有电话 |
|
|
123
|
+
| `bing.html5` `bing.linkedin-segment` `bing.apply-recommendations` | 当前接口没有对应写入 |
|
|
124
|
+
|
|
125
|
+
动态搜索是搜索系列上的设置,不是新系列类型:
|
|
126
|
+
|
|
127
|
+
| action | 正文 |
|
|
128
|
+
| --- | --- |
|
|
129
|
+
| `bing.dynamic-search-setting` | `campaignId` `domainName` `language`。可选 `source`:`All` / `SystemIndex` / `AdvertiserSuppliedUrls`,默认 `SystemIndex` |
|
|
130
|
+
| `bing.dynamic-ad-group` | `campaignId` `name` `cpcBid`。广告组类型固定为 `SearchDynamic`,新建暂停 |
|
|
131
|
+
| `bing.dynamic-search-ad` | `adGroupId`。可选 `text` `textPart2`(各 ≤90)`path1` `path2`(各 ≤15) |
|
|
132
|
+
|
|
133
|
+
其他系列类型。`timeZone` 和 `language` 与搜索系列相同。`dailyBudget` 大于 0。
|
|
134
|
+
|
|
135
|
+
| action | 正文 |
|
|
136
|
+
| --- | --- |
|
|
137
|
+
| `bing.shopping-campaign` | `name` `dailyBudget` `timeZone` `language` `storeId` `salesCountryCode`(2 位)。可选 `feedLabel` |
|
|
138
|
+
| `bing.shopping-brands-campaign` | 同上,子类型 `ShoppingSponsoredProductAd` |
|
|
139
|
+
| `bing.shopping-smart-campaign` | 同上,子类型 `ShoppingSmartAds` |
|
|
140
|
+
| `bing.audience-campaign` | `name` `dailyBudget` `timeZone` `language` |
|
|
141
|
+
| `bing.audience-video-campaign` | 同上,子类型 `AudienceVideoAds` |
|
|
142
|
+
| `bing.pmax-campaign` | 同上。最终网址扩展保持开启 |
|
|
143
|
+
| `bing.hotel-campaign` | 同上,再加 `hotelAdGroupType`:`HotelAd` / `PropertyAd` |
|
|
144
|
+
| `bing.app-campaign` | 同上,再加 `appId` `appStore`:`GoogleAppStore` / `AppleAppStore` / `MicrosoftAppStore` |
|
|
145
|
+
|
|
146
|
+
已有系列和广告组:
|
|
147
|
+
|
|
148
|
+
| action | 正文 |
|
|
149
|
+
| --- | --- |
|
|
150
|
+
| `bing.campaign-budget` | `campaignId` `budgetId`。`0` 解除共享预算。改共享预算金额仍走 `bing-analysis` |
|
|
151
|
+
| `bing.campaign-tracking` | `campaignId`。`trackingUrlTemplate` 和 `finalUrlSuffix` 至少填一个 |
|
|
152
|
+
| `bing.campaign-schedule` | `campaignId`。`dayParts[]`:`day`(`Sunday`–`Saturday`)`startHour` `endHour`(0–24)`startMinute` `endMinute`(`Zero` / `Fifteen` / `Thirty` / `FortyFive`) |
|
|
153
|
+
| `bing.campaign-location-exclude` | `campaignId` `locationId` |
|
|
154
|
+
| `bing.campaign-radius` | `campaignId` `latitude` `longitude` `radius`(大于 0 的整数)`radiusUnit`(`Miles` / `Kilometers`)。可选 `name` |
|
|
155
|
+
| `bing.campaign-device` | `campaignId` `deviceName`(`Computers` / `Smartphones` / `Tablets`) |
|
|
156
|
+
| `bing.campaign-location-intent` | `campaignId` `intentOption`:`PeopleIn` / `PeopleSearchingForOrViewingPages` / `PeopleInOrSearchingForOrViewingPages` |
|
|
157
|
+
| `bing.campaign-webpage` | `campaignId` `operand`(`Url` / `Category` / `PageTitle` / `PageContent` / `CustomLabel`)`argument`。可选 `operator`,默认 `Equals` |
|
|
158
|
+
| `bing.campaign-age` | `campaignId` `ageRange`。取值与 `bing.ad-group-age` 相同 |
|
|
159
|
+
| `bing.campaign-gender` | `campaignId` `genderType`(`Male` / `Female`) |
|
|
160
|
+
| `bing.campaign-audience` | `campaignId` `audienceId` |
|
|
161
|
+
| `bing.update-ad-group` | `campaignId` `id`。`name` `language` `network` `status` 至少填一个。`network`:`OwnedAndOperatedAndSyndicatedSearch` / `OwnedAndOperatedOnly` / `SyndicatedSearchOnly` / `InHousePromotion`。`status` 只接受 `Active` / `Paused` |
|
|
162
|
+
| `bing.ad-group-webpage` | `adGroupId`,其余与 `bing.campaign-webpage` 相同 |
|
|
163
|
+
| `bing.ad-group-placement` | `adGroupId`。`placementId` 或 `placementName` 至少一个 |
|
|
164
|
+
| `bing.ad-group-profile` | `adGroupId` `profileId` `profileType`:`CompanyName` / `JobFunction` / `Industry` / `JobSeniority` / `JobTitle` |
|
|
165
|
+
| `bing.ad-group-genre` | `adGroupId` `genreId` |
|
|
166
|
+
| `bing.hotel-advance-booking` | `adGroupId`。`minDays` 和 `maxDays` 至少一个 |
|
|
167
|
+
| `bing.hotel-check-in-date` | `adGroupId` `start` `end`(`yyyy-MM-dd`) |
|
|
168
|
+
| `bing.hotel-check-in-day` | `adGroupId` `day` |
|
|
169
|
+
| `bing.hotel-length-of-stay` | `adGroupId`。`minNights` 和 `maxNights` 至少一个 |
|
|
170
|
+
| `bing.hotel-date-selection` | `adGroupId` `hotelDateSelectionType`。非法枚举会 400 |
|
|
171
|
+
|
|
172
|
+
广告和关键词:
|
|
173
|
+
|
|
174
|
+
| action | 正文 |
|
|
175
|
+
| --- | --- |
|
|
176
|
+
| `bing.product-ad` | `adGroupId`。可选 `promotionalText`(≤45) |
|
|
177
|
+
| `bing.responsive-ad` | 受众广告。`adGroupId` `businessName`(≤25)`finalUrl`。`headlines` 1–15 条、每条 ≤30;`descriptions` 1–5 条、每条 ≤90。可选 `longHeadlines`、`imageIds`、`callToAction`、`adSubType`(`Video` / `Display`) |
|
|
178
|
+
| `bing.hotel-ad` | `adGroupId` |
|
|
179
|
+
| `bing.app-install-ad` | `adGroupId` `appPlatform`(`Android` / `iOS` / `Windows`)`appStoreId` `title`(≤30)`text`(≤80)`finalUrl` |
|
|
180
|
+
| `bing.update-responsive-ad` | `adGroupId` `adId`。`headlines`(3–15,可带 `pinnedField`,如 `Headline1`)`descriptions`(2–4)`path1` `path2` `finalUrl` 至少填一个。不改状态 |
|
|
181
|
+
| `bing.update-keyword` | `adGroupId` `id`。`status`(`Active` / `Paused`)`matchType` `finalUrl` `bid` 至少填一个 |
|
|
182
|
+
|
|
183
|
+
附加信息建好后不会自动展示。用 `bing.link-extension` 挂到系列、广告组或账户。`associationType` 取 `Campaign` / `AdGroup` / `Account`,`extensionId` 和 `entityId` 必填。账户关联时 `entityId` 填账户 id。`bing.unlink-extension` 只解除关联。`bing.delete-extensions` 的 `ids` 删除任意附加信息。已有的 `bing.callout` 等创建命令不变,展示前同样要 `bing.link-extension`。
|
|
184
|
+
|
|
185
|
+
带 `id` 时是修改,不带 `id` 时是新建:
|
|
186
|
+
|
|
187
|
+
| action | 正文 |
|
|
188
|
+
| --- | --- |
|
|
189
|
+
| `bing.location-extension` | `companyName` `countryCode` `city` `addressLine`。可选 `phoneNumber` `province` `postalCode` |
|
|
190
|
+
| `bing.image-extension` | `displayText`(≤35)`finalUrl` `imageIds`。可选 `alternativeText` `description` |
|
|
191
|
+
| `bing.action-extension` | `actionType`(与 `callToAction` 同一组官方名称)`language` `finalUrl` |
|
|
192
|
+
| `bing.review-extension` | `text`(≤90)`source` `url`。可选 `isExact` |
|
|
193
|
+
| `bing.filter-link-extension` | `language` `finalUrl` `texts`(1–10 条,每条 ≤25) |
|
|
194
|
+
| `bing.flyer-extension` | `flyerName` `finalUrl`。`imageIds` 或 `storeId` 至少一个 |
|
|
195
|
+
| `bing.video-extension` | `videoId` `displayText` `finalUrl`。可选 `actionText` |
|
|
196
|
+
| `bing.disclaimer-extension` | `lineText` `popupText`。可选 `title` `name` `disclaimerLayout` `finalUrl` |
|
|
197
|
+
| `bing.app-extension` | `appPlatform` `appStoreId` `displayText` `finalUrl` |
|
|
198
|
+
|
|
199
|
+
图片没有更新接口,只能 `bing.image` 新建、`bing.delete-images` 删除、`bing.read-media` 读取。视频可以 `bing.update-video`:`id`,`description` 和 `url` 至少一个。
|
|
200
|
+
|
|
201
|
+
否定词库和网站排除:
|
|
202
|
+
|
|
203
|
+
| action | 正文 |
|
|
204
|
+
| --- | --- |
|
|
205
|
+
| `bing.unlink-negative-keyword-list` | `listId` `campaignId` |
|
|
206
|
+
| `bing.delete-negative-keyword-list-items` | `listId` `ids`(条目 id) |
|
|
207
|
+
| `bing.website-exclusion-list` | `name` `sites`。域名不要带 `https://`。建在客户库 |
|
|
208
|
+
| `bing.website-exclusion-items` | `listId` `sites` |
|
|
209
|
+
| `bing.link-website-exclusion` | `listId` `campaignId` |
|
|
210
|
+
| `bing.unlink-website-exclusion` | `listId` `campaignId` |
|
|
211
|
+
|
|
212
|
+
受众。`membershipDays` 省略时是 30,范围 1–540。`bing.in-market-audience` 和 `bing.custom-audience` 只有名称,这个接口没有类目编号。
|
|
213
|
+
|
|
214
|
+
| action | 正文 |
|
|
215
|
+
| --- | --- |
|
|
216
|
+
| `bing.remarketing-list` | `name` `tagId` `pages`(1–100 个 `https://` 网址) |
|
|
217
|
+
| `bing.remarketing-event` | `name` `tagId` `action`。可选 `category` `label` |
|
|
218
|
+
| `bing.combined-list` | `name` `audienceIds` `operator`(`And` / `Or` / `Not`) |
|
|
219
|
+
| `bing.similar-list` | `name` `sourceId` |
|
|
220
|
+
| `bing.custom-audience` | `name` |
|
|
221
|
+
| `bing.in-market-audience` | `name` |
|
|
222
|
+
| `bing.product-audience` | `name` `tagId` `productAudienceType`:`GeneralVisitors` / `ProductSearchers` / `ProductViewers` / `ShoppingCartAbandoners` / `PastBuyers` |
|
|
223
|
+
| `bing.impression-list` | `name` `entityType`(`Campaign` / `AdGroup`)以及对应的 `campaignId` 或 `adGroupId` |
|
|
224
|
+
| `bing.customer-list-crm` | `audienceId` `action`(`Add` / `Remove` / `Replace`)`hashedCrmIds`。64 位小写 SHA-256,1–10000 条 |
|
|
225
|
+
|
|
226
|
+
转化、实验、出价和素材。转化目标没有删除方法,把 `status` 设为 `Deleted` 即停用。UET 没有删除方法。
|
|
227
|
+
|
|
228
|
+
| action | 正文 |
|
|
229
|
+
| --- | --- |
|
|
230
|
+
| `bing.url-goal` | `name` `tagId` `urlExpression` |
|
|
231
|
+
| `bing.duration-goal` | `name` `tagId` `minimumDurationInSeconds`(>0) |
|
|
232
|
+
| `bing.pages-goal` | `name` `tagId` `minimumPagesViewed`(>0) |
|
|
233
|
+
| `bing.app-goal` | `name` `tagId` `appPlatform` `appStoreId` |
|
|
234
|
+
| `bing.offline-goal` | `name` `tagId` |
|
|
235
|
+
| `bing.instore-goal` | `name` `tagId` |
|
|
236
|
+
| `bing.update-conversion-goal` | `id` `goalType`(`Event` / `Url` / `Duration` / `PagesViewedPerVisit` / `AppInstall` / `OfflineConversion` / `InStoreTransaction`)。`name` 和 `status`(`Active` / `Paused` / `Deleted`)至少一个 |
|
|
237
|
+
| `bing.update-uet-tag` | `id`。`name` 和 `description` 至少一个 |
|
|
238
|
+
| `bing.update-seasonality` | `id`,其余与 `bing.seasonality` 相同 |
|
|
239
|
+
| `bing.delete-seasonality` | `ids` |
|
|
240
|
+
| `bing.update-data-exclusion` | `id`,其余与 `bing.data-exclusion` 相同 |
|
|
241
|
+
| `bing.delete-data-exclusion` | `ids` |
|
|
242
|
+
| `bing.update-conversion-value-rule` | `id`。`name` 和 `value` 至少一个 |
|
|
243
|
+
| `bing.conversion-value-rule-status` | `ids` `status`(`Active` / `Paused` / `Deleted`) |
|
|
244
|
+
| `bing.update-experiment` | `id`。`name` `trafficSplitPercent`(1–99)`experimentStatus`(`Active` / `Paused` / `Graduated`)至少一个 |
|
|
245
|
+
| `bing.max-conversions-strategy` | `name`。可选 `maxCpc` `targetCpa`,填了就要大于 0 |
|
|
246
|
+
| `bing.max-conversion-value-strategy` | `name` `targetRoas`(0.01–1000) |
|
|
247
|
+
| `bing.target-impression-share` | `name` `maxCpc` `targetImpressionShare`(1–100)`targetAdPosition`(`FirstPage` / `MainLine` / `MainLine1`) |
|
|
248
|
+
| `bing.update-bid-strategy` | `id` `biddingScheme`(`MaxClicks` / `MaxConversions` / `MaxConversionValue` / `TargetImpressionShare`),再带该方案的字段 |
|
|
249
|
+
| `bing.update-asset-group` | `campaignId` `id`。名称、商家名、标题、描述、`imageIds`、`videoIds`、`status`、`finalUrl`、路径至少改一个 |
|
|
250
|
+
| `bing.listing-group` | `id` 为素材组。`listingType`(`Subdivision` / `Unit`)。可选 `action`(`Add` / `Update` / `Delete`,默认 `Add`)`parentId` `isExcluded` `attribute` `operand` |
|
|
251
|
+
| `bing.product-partition` | `adGroupId` `partitionType`(`Subdivision` / `Unit`)。可选字段同上 |
|
|
252
|
+
| `bing.hotel-group` | `adGroupId` `listingType`(`Subdivision` / `Unit`)。可选字段同上 |
|
|
253
|
+
| `bing.new-customer-goal` | `additionalValue`(>0,账户币种) |
|
|
254
|
+
| `bing.update-new-customer-goal` | `id` `additionalValue` |
|
|
255
|
+
| `bing.brand-kit` | `name`。可选 `imageIds` `squareLogoIds` `landscapeLogoIds`,这些是已上传的媒体 id |
|
|
256
|
+
| `bing.update-brand-kit` | `id` `name`,图片字段同上 |
|
|
257
|
+
| `bing.delete-brand-kits` | `ids` |
|
|
258
|
+
| `bing.import-job` | `name` `credentialId` `googleAccountId`。可选 `googleUserName` `notificationEmail` `frequency`(Frequency.Type 的官方字符串,不填就不传)。导入的新系列保持暂停 |
|
|
259
|
+
| `bing.delete-import-jobs` | `ids` |
|
|
260
|
+
| `bing.offline-conversion-adjustment` | `conversionName` `conversionTime` `adjustmentTime` `adjustmentType`(`Restate` / `Retract`)。`microsoftClickId` 和 `hashedEmail` 至少一个。有金额时再给 `adjustmentValue` `currencyCode` |
|
|
261
|
+
| `bing.online-conversion-adjustment` | 同上,但用 `transactionId`,不要点击 id |
|
|
262
|
+
| `bing.account-properties` | `properties[]`:`name` `value`。`name` 用 `TrackingUrlTemplate`、`MSCLKIDAutoTaggingEnabled`、`AdClickParallelTracking`、`FinalUrlSuffix`、`IncludeViewThroughConversions`、`ProfileExpansionEnabled`、`AllowImageAutoRetrieve`、`AutoApplyRecommendations` 之一。1–20 项 |
|
|
263
|
+
|
|
264
|
+
读取。除了下面写明“按账户”的,都要在正文里给 id。`bing.read-campaign-criterions` 和 `bing.read-ad-group-criterions` 也要已知条件 id,不能按系列把条件一次列全。
|
|
265
|
+
|
|
266
|
+
| action | 正文 |
|
|
267
|
+
| --- | --- |
|
|
268
|
+
| `bing.read-ad-groups` | `campaignId` |
|
|
269
|
+
| `bing.read-keywords` | `adGroupId` |
|
|
270
|
+
| `bing.read-negative-keywords` | `entityId` `entityType`。可选 `parentId` |
|
|
271
|
+
| `bing.read-negative-sites` | `ids` 为系列 |
|
|
272
|
+
| `bing.read-ad-group-negative-sites` | `campaignId` `ids` 为广告组 |
|
|
273
|
+
| `bing.read-editorial-reasons` | `entityType` `entityId` `parentId` |
|
|
274
|
+
| `bing.read-extensions` | `ids` |
|
|
275
|
+
| `bing.read-audiences` | `ids` `audienceType` |
|
|
276
|
+
| `bing.read-asset-groups` | `campaignId` |
|
|
277
|
+
| `bing.read-experiments` | `ids` |
|
|
278
|
+
| `bing.read-uet-tags` | `ids` |
|
|
279
|
+
| `bing.read-conversion-goals` | `ids` `goalType` |
|
|
280
|
+
| `bing.read-shared-entities` | `sharedEntityType`(`NegativeKeywordList` 或 `PlacementExclusionList`) |
|
|
281
|
+
| `bing.read-budgets` | `ids` |
|
|
282
|
+
| `bing.read-bid-strategies` | `ids` |
|
|
283
|
+
| `bing.read-seasonality` | `ids` |
|
|
284
|
+
| `bing.read-data-exclusions` | `ids` |
|
|
285
|
+
| `bing.read-conversion-value-rules` | `ids` |
|
|
286
|
+
| `bing.read-videos` | `ids` |
|
|
287
|
+
| `bing.read-media` | 不给 `ids` 时按账户读前 100 条;给了 `ids` 就按媒体 id 读 |
|
|
288
|
+
| `bing.read-labels` | `ids` |
|
|
289
|
+
| `bing.read-new-customer-goals` | 无 |
|
|
290
|
+
| `bing.read-brand-kits` | 无 |
|
|
291
|
+
| `bing.read-account-properties` | 无 |
|
|
292
|
+
| `bing.read-bmc-stores` | 无。商家中心店铺 |
|
|
293
|
+
| `bing.read-bsc-countries` | 无。购物可选国家 |
|
|
294
|
+
| `bing.read-campaign-criterions` | `campaignId` `ids` `criterionType`(例如 `Targets`) |
|
|
295
|
+
| `bing.read-ad-group-criterions` | `adGroupId` `ids` `criterionType` |
|
|
296
|
+
| `bing.read-import-jobs` | `ids` `importType` |
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
siluzan-tso ad-gap --action bing.shopping-campaign --account 123 --body "{\"name\":\"Shop\",\"dailyBudget\":20,\"timeZone\":\"BeijingChongqingHongKongUrumqi\",\"language\":\"English\",\"storeId\":77,\"salesCountryCode\":\"US\"}" --commit "新建暂停的购物系列" --json-out ./snap-bing
|
|
300
|
+
siluzan-tso ad-gap --action bing.read-ad-groups --account 123 --body "{\"campaignId\":456}" --commit "读取广告组" --json-out ./snap-bing
|
|
301
|
+
```
|
|
80
302
|
|
|
81
303
|
## Yandex `--account` 为 Direct 登录名
|
|
82
304
|
|
|
@@ -91,7 +313,7 @@ siluzan-tso ad-gap --action yandex.text-campaign --account porg-example --body "
|
|
|
91
313
|
siluzan-tso ad-gap --action yandex.delete-campaign --account porg-example --id 100 --commit "删除刚建的草稿系列" --json-out ./snap-yandex
|
|
92
314
|
```
|
|
93
315
|
|
|
94
|
-
`15` 只是一条能通过 USD
|
|
316
|
+
`15` 只是一条能通过 USD 下限的示例,别的币种用该币种自己的下限。UET 标签和转化目标官方 SDK 没有删除操作,建完不能用本 CLI 删。
|
|
95
317
|
|
|
96
318
|
| action | 正文或参数 |
|
|
97
319
|
| --- | --- |
|
|
@@ -125,12 +347,93 @@ siluzan-tso ad-gap --action yandex.delete-campaign --account porg-example --id 1
|
|
|
125
347
|
| `yandex.changes` | `campaignIds` `timestamp` |
|
|
126
348
|
| `yandex.dictionaries` | `dictionaryNames` |
|
|
127
349
|
| `yandex.leads` | `turboPageIds`。可选 `dateTimeFrom` `dateTimeTo` `fieldNames` |
|
|
350
|
+
| `yandex.vcard` | `campaignId` `country` `city` `companyName` `workTime` `phoneCountryCode` `phoneCityCode` `phoneNumber`。`workTime` 用 Direct 日程串,例如周一 09:00–18:00 写 `0#1#09#00#18#00` |
|
|
351
|
+
| `yandex.delete-vcard` | 只传 `--id` |
|
|
352
|
+
| `yandex.negative-keyword-set` | `name`(≤255)`negativeKeywords`。不要前导减号。每条最多 7 个词,每个词最多 35 字符 |
|
|
353
|
+
| `yandex.update-negative-keyword-set` | `--id`。`name` 与 `negativeKeywords` 至少一项 |
|
|
354
|
+
| `yandex.delete-negative-keyword-set` | 只传 `--id`。已经挂到广告组的词库官方拒绝删除 |
|
|
355
|
+
| `yandex.link-negative-keyword-sets` | `--id` 为广告组。`setIds` 1–3 个 |
|
|
356
|
+
| `yandex.strategy` | `name` `type`。`type` 为 `WB_MAXIMUM_CLICKS`、`AVERAGE_CPC`、`HIGHEST_POSITION`、`MANUAL_CPM`。`WB_MAXIMUM_CLICKS` 和 `MANUAL_CPM` 必填 `weeklySpend`;`AVERAGE_CPC` 必填 `averageCpc`。金额是账户币种小数。可选 `attributionModel`:`FCCD` `LC` `LSCCD` `AUTO` |
|
|
357
|
+
| `yandex.update-strategy` | `--id`。字段与创建相同,`name` 仍必填 |
|
|
358
|
+
| `yandex.archive-strategy` | 只传 `--id` |
|
|
359
|
+
| `yandex.video` | `url`(http 或 https)。可选 `name`。不上传二进制 |
|
|
360
|
+
| `yandex.video-status` | `--id` 为视频 Id,无正文。只返回 `Id` 和 `Status` |
|
|
361
|
+
| `yandex.dynamic-target` | `adGroupId` `name`(≤100)。可选 `bid`(账户币种小数)和 `strategyPriority`(`LOW` / `NORMAL` / `HIGH`)。`conditions` 省略时是全部页面;要筛页面就给 1–10 条,每条 `operand`(`DOMAIN` / `OFFERS_LIST_URL` / `PAGE_CONTENT` / `PAGE_TITLE` / `URL`)、`operator`(`EQUALS_ANY` / `NOT_EQUALS_ALL` / `CONTAINS_ANY` / `NOT_CONTAINS_ALL`)、`arguments` 1–10 条。`OFFERS_LIST_URL` 每条最长 1024,其余 100。只加到动态文本广告组。不写 `ContextBid` |
|
|
362
|
+
| `yandex.dynamic-target-bids` | `campaignId`、`adGroupId`、`targetId` 必须且只能填一个。`bid` 和 `strategyPriority` 至少填一个。不写 `ContextBid` |
|
|
363
|
+
| `yandex.suspend-dynamic-target` | `--id` |
|
|
364
|
+
| `yandex.resume-dynamic-target` | `--id` |
|
|
365
|
+
| `yandex.delete-dynamic-target` | `--id` |
|
|
366
|
+
|
|
367
|
+
## Yandex 其余广告管理
|
|
368
|
+
|
|
369
|
+
金额仍是账户币种小数,网关乘 1,000,000。统一效果系列和统一效果广告组走 Direct v501。商品广告和目录页广告也走 v501。新建系列仍可能停在草稿,草稿不能暂停,响应里有 `Id` 就算建成。
|
|
370
|
+
|
|
371
|
+
搜索横幅、展示交易、首页横幅、固定 CPM 官方只给统计,`yandex.mc-banner-campaign`、`yandex.cpm-deals-campaign`、`yandex.cpm-frontpage-campaign`、`yandex.cpm-price-campaign` 会拒绝。广告组没有启停,`yandex.ad-group-suspend` 会拒绝。
|
|
372
|
+
|
|
373
|
+
动态文本广告和移动应用广告仍出现在 ads.add 的类型说明里,当前专页没有给出字段,这里不代造。旧动态广告组继续用 `yandex.dynamic-target`。统一效果的商品筛选用 `yandex.shopping-ad` 的 `operand` / `operator` / `arguments`,不要用动态文本条件。
|
|
374
|
+
|
|
375
|
+
| action | 正文 |
|
|
376
|
+
| --- | --- |
|
|
377
|
+
| `yandex.unified-campaign` | `name` `startDate`。默认搜索 `HIGHEST_POSITION`,网络 `SERVING_OFF`。可选 `negativeKeywords`、`searchStrategy`、`networkStrategy` |
|
|
378
|
+
| `yandex.mobile-app-campaign` | 名称、开始日和同一套策略。另外可以选 `WB_MAXIMUM_APP_INSTALLS`、`AVERAGE_CPI`、`PAY_FOR_INSTALL` |
|
|
379
|
+
| `yandex.dynamic-campaign` / `yandex.smart-campaign` | 同样的名称、开始日和策略。类型结构是 `DynamicTextCampaign`、`SmartCampaign` |
|
|
380
|
+
|
|
381
|
+
`searchStrategy` / `networkStrategy` 接受 `HIGHEST_POSITION`(仅搜索)、`SERVING_OFF`、`NETWORK_DEFAULT`(仅网络)、`WB_MAXIMUM_CLICKS`(必填 `weeklySpend`)、`AVERAGE_CPC`(必填 `averageCpc`)、`WB_MAXIMUM_CONVERSION_RATE`(必填 `weeklySpend` 和 `goalId`)、`AVERAGE_CPA`(必填 `averageCpa` 和 `goalId`)、`PAY_FOR_CONVERSION`(必填 `cpa` 和 `goalId`)。金额是账户币种小数。`MAX_PROFIT`、`AVERAGE_CRR`、自定义周期预算和探索预算的必填结构本页没有单独展开,不要自己补字段。
|
|
382
|
+
| `yandex.cpm-banner-campaign` | `name` `startDate` `weeklySpend`。搜索关闭,网络 `MANUAL_CPM` |
|
|
383
|
+
| `yandex.unarchive-campaign` | `--id` |
|
|
384
|
+
| `yandex.campaign-negatives` | `--id`,`negativeKeywords`。不要前导减号 |
|
|
385
|
+
| `yandex.campaign-schedule` | `--id`,`considerWorkingWeekends` 为 `YES` 或 `NO`。可选 `schedule`:每天 25 个数字,第一位是 1 到 7。可选 `suspendOnHolidays` |
|
|
386
|
+
| `yandex.campaign-end-date` | `--id`,`endDate`(`yyyy-MM-dd`) |
|
|
387
|
+
| `yandex.unified-ad-group` | `name` `campaignId` `regionIds`。可选 `offerRetargeting`(`YES` / `NO`,默认 `NO`) |
|
|
388
|
+
| `yandex.dynamic-ad-group` | `name` `campaignId` `regionIds` `domainUrl` |
|
|
389
|
+
| `yandex.dynamic-feed-ad-group` | `name` `campaignId` `regionIds` `feedId` |
|
|
390
|
+
| `yandex.smart-ad-group` | `name` `campaignId` `regionIds` `feedId` |
|
|
391
|
+
| `yandex.mobile-app-ad-group` | `name` `campaignId` `regionIds` `storeUrl` `osVersion`。可选 `deviceTypes`(`DEVICE_TYPE_MOBILE` / `DEVICE_TYPE_TABLET`)和 `targetCarrier`(`WI_FI_ONLY` / `WI_FI_AND_CELLULAR`) |
|
|
392
|
+
| `yandex.cpm-keywords-ad-group` / `yandex.cpm-profile-ad-group` / `yandex.cpm-video-ad-group` | `name` `campaignId` `regionIds`。类型结构按官方留空对象 |
|
|
393
|
+
| `yandex.text-feed-ad-group` | `name` `campaignId` `regionIds` `feedId` |
|
|
394
|
+
| `yandex.update-ad-group` | `--id`。`name`、`regionIds`、`negativeKeywords` 至少一项 |
|
|
395
|
+
| `yandex.update-text-ad` | `--id`,`title` `text` `href`。`Mobile` 固定 `NO` |
|
|
396
|
+
| `yandex.text-image-ad` | `adGroupId` `imageHash` `href` |
|
|
397
|
+
| `yandex.text-ad-builder` / `yandex.cpm-banner-ad` / `yandex.cpm-video-ad` | `adGroupId` `creativeId` `href` |
|
|
398
|
+
| `yandex.shopping-ad` / `yandex.listing-ad` | `adGroupId` `feedId` `defaultTexts`(只能 1 条)。可选 `operand` `operator` `arguments`,以及 `titleSources` `textSources`。`operator` 为 `CONTAINS_ANY`、`EQUALS_ANY`、`EXISTS`、`GREATER_THAN`、`IN_RANGE`、`LESS_THAN`、`NOT_CONTAINS_ALL` |
|
|
399
|
+
| `yandex.responsive-ad` | `adGroupId` `href`。`titles` 1–7 条,`texts` 1–3 条 |
|
|
400
|
+
| `yandex.archive-ad` / `yandex.unarchive-ad` | `--id` |
|
|
401
|
+
| `yandex.keyword-bids-auto` | `campaignId`、`adGroupId`、`keywordId` 必须且只能填一个。`targetTrafficVolume`(5–100)和 `targetCoverage`(1–100)只能填一个。可选 `increasePercent`(1–1000)和 `bidCeiling` |
|
|
402
|
+
| `yandex.bid-modifier` | `campaignId` 和 `adGroupId` 必须且只能填一个。`type` 为 `mobile`、`tablet`、`desktop`、`desktop-only`、`smart-tv`、`demographics`、`retargeting`、`regional`、`video`、`smart-ad`、`serp`、`income`、`ad-group`。`bidModifier` 0–1300。地域至少 10,视频至少 50,智能广告至少 20。`demographics` 要 `gender` 或 `age`。`retargeting` 要 `retargetingListId`。`regional` 要 `regionId`。`serp` 要 `serpLayout`(`ALONE` / `SUGGEST`)。`income` 要 `grade`(`VERY_HIGH` / `HIGH` / `ABOVE_AVERAGE`)。手机和平板可选 `operatingSystemType`(`IOS` / `ANDROID`) |
|
|
403
|
+
| `yandex.set-bid-modifier` | `--id`,`bidModifier` |
|
|
404
|
+
| `yandex.suspend-audience-target` / `yandex.resume-audience-target` | `--id` |
|
|
405
|
+
| `yandex.audience-target-bids` | `campaignId`、`adGroupId`、`id` 必须且只能填一个。`contextBid` 为账户币种小数 |
|
|
406
|
+
| `yandex.update-retargeting-list` | `--id`,`name`。要改规则时同时给 `externalId` 和 `membershipDays`(1–540) |
|
|
407
|
+
| `yandex.update-feed` | `--id`,`name` |
|
|
408
|
+
| `yandex.smart-ad-target` | `adGroupId` `name` `operand` `operator` `arguments`。运算符与商品广告相同 |
|
|
409
|
+
| `yandex.keywords-deduplicate` | `keywords` |
|
|
410
|
+
| `yandex.keywords-has-search-volume` | `keywords` `regionIds` |
|
|
411
|
+
| `yandex.changes-campaigns` | `timestamp`(`yyyy-MM-ddTHH:mm:ssZ`)。可选 `ids` |
|
|
412
|
+
| `yandex.changes-dictionaries` | 可选 `timestamp`。不传时用来取服务器时间 |
|
|
413
|
+
| `yandex.read-campaigns` / `yandex.read-ad-groups` / `yandex.read-ads` / `yandex.read-keywords` / `yandex.read-sitelinks` / `yandex.read-creatives` / `yandex.read-extensions` / `yandex.read-feeds` / `yandex.read-retargeting-lists` / `yandex.read-audience-targets` / `yandex.read-bid-modifiers` / `yandex.read-strategies` / `yandex.read-vcards` / `yandex.read-turbo-pages` / `yandex.read-negative-keyword-sets` | `ids`,或 `--id` |
|
|
414
|
+
| `yandex.read-ad-images` | `imageHash`,或多条哈希放 `keywords` |
|
|
415
|
+
| `yandex.read-businesses` | 无编号。返回企业资料编号、名称和是否发布 |
|
|
416
|
+
|
|
417
|
+
```bash
|
|
418
|
+
siluzan-tso ad-gap --action yandex.unified-campaign --account porg-example --body "{\"name\":\"Unified\",\"startDate\":\"2026-11-16\"}" --commit "新建统一效果系列" --json-out ./snap-yandex
|
|
419
|
+
siluzan-tso ad-gap --action yandex.shopping-ad --account porg-example --body "{\"adGroupId\":10,\"feedId\":20,\"defaultTexts\":[\"默认文案\"],\"operand\":\"UPC\",\"operator\":\"EQUALS_ANY\",\"arguments\":[\"012345678905\"]}" --commit "新建商品广告" --json-out ./snap-yandex
|
|
420
|
+
```
|
|
128
421
|
|
|
129
422
|
## TikTok `--account` 必须等于正文 `advertiser_id`
|
|
130
423
|
|
|
131
424
|
先读:`siluzan-tso tiktok-analysis campaign-entities -a <advertiser_id> --json-out <目录>`。
|
|
132
425
|
|
|
133
|
-
|
|
426
|
+
没有商品目录创建 action。复制、Smart+、常规系列、广告组和广告的 `operation_status` 不要写 `ENABLE`,缺省会写成 `DISABLE`。覆盖和频次(`RF_REACH`)官方不允许建成 `DISABLE`,不要用 `tiktok.campaign`。业务码不是 0 就是失败,常见正文是 `TikTok 拒绝该请求: …`。
|
|
427
|
+
|
|
428
|
+
`tiktok.campaign` 建常规系列。`campaign_name` 按官方计数最长 512(中文、日文计 2,英文计 1),不能带 emoji。`objective_type` 用官方推广目标。`APP_PROMOTION` 必须带 `app_promotion_type`:`APP_INSTALL`、`APP_RETARGETING`、`APP_PREREGISTRATION`。`PRODUCT_SALES` 必须带 `campaign_product_source`:`CATALOG` 或 `STORE`,这里用的是已有商品库,不是创建商品库。`virtual_objective_type` 只接受 `SALES`,这时必须带 `sales_destination`:`TIKTOK_SHOP`、`WEBSITE`、`APP`、`WEB_AND_APP`。`budget_mode` 必填:`BUDGET_MODE_INFINITE`、`BUDGET_MODE_TOTAL`、`BUDGET_MODE_DAY`、`BUDGET_MODE_DYNAMIC_DAILY_BUDGET`。后三种必须带大于 0 的 `budget`。其余官方字段原样放进正文。
|
|
429
|
+
|
|
430
|
+
`tiktok.ad-group` 建常规广告组。必填 `campaign_id`、`adgroup_name`(计数同系列名)、`billing_event`(`CPC` / `CPM` / `CPV` / `OCPM`)、`budget_mode`、大于等于 0 的 `budget`、`optimization_goal`、`pacing`(`PACING_MODE_SMOOTH` / `PACING_MODE_FAST`)、`schedule_type`(`SCHEDULE_FROM_NOW` / `SCHEDULE_START_END`)和 `schedule_start_time`(`yyyy-MM-dd HH:mm:ss`)。`SCHEDULE_START_END` 还要 `schedule_end_time`。`placement_type` 填了 `PLACEMENT_TYPE_NORMAL` 就要 1–20 个 `placements`;`PLACEMENT_TYPE_AUTOMATIC` 不要靠网关代填版位。`creative_material_mode` 只接受 `CUSTOM` 或 `SMART_CREATIVE`。优化目标、推广类型、地域等官方条件字段必须一并放进正文,网关不代填。
|
|
431
|
+
|
|
432
|
+
`tiktok.ad` 建常规广告。`creatives` 1–20 条。每条必填 `ad_name`(空字符串表示官方自动命名)、`identity_type`(`CUSTOMIZED_USER` / `AUTH_CODE` / `TT_USER` / `BC_AUTH_TT`)、`identity_id`、`ad_format`(`SINGLE_IMAGE` / `SINGLE_VIDEO` / `LIVE_CONTENT` / `CAROUSEL_ADS` / `CATALOG_CAROUSEL`)。`BC_AUTH_TT` 还要 `identity_authorized_bc_id`。`AUTH_CODE` 必须有 `tiktok_item_id`。定制身份的单视频必须有 `video_id`;`TT_USER` 或 `BC_AUTH_TT` 的单视频要有 `video_id` 或 `tiktok_item_id`。
|
|
433
|
+
|
|
434
|
+
`tiktok.smart-creative` 走官方 `/ad/aco/create/`。`media_info_list` 1–30 条。视频要 `video_id` 和 1 个封面目 `web_uri`;纯图片要 1 个 `web_uri`;Spark 帖子用 `tiktok_item_id`,并带 `identity_id` 和 `identity_type`(`AUTH_CODE` 或 `TT_USER`)。非 Spark 素材必须在 `common_material` 里写 `identity_id` 和 `identity_type=CUSTOMIZED_USER`。`title_list` 里的 `title` 按官方计数 12–40。这个接口没有 `operation_status`,只挂到已经 `DISABLE` 的广告组。
|
|
435
|
+
|
|
436
|
+
建完后要打开,用 `tiktok-analysis campaign-status` / `adgroup-status` / `ad-status`,不要在创建正文里写 `ENABLE`。
|
|
134
437
|
|
|
135
438
|
`tiktok.audience-file` 的 `file_paths` 是 TikTok 侧已经存在的路径,1–50 个。本命令不上传本地文件。可选 `retention_in_days` 为 1–365。`calculate_type` 按官方 DMP 文件受众填写。
|
|
136
439
|
|
|
@@ -157,12 +460,16 @@ siluzan-tso ad-gap --action tiktok.negative-keywords --account 1640000000000000
|
|
|
157
460
|
| `tiktok.smart-plus` | `advertiser_id` `request_id` `campaign_name` `objective_type`,外加官方创建字段 |
|
|
158
461
|
| `tiktok.negative-keywords` | `advertiser_id` `object_type`(`ADVERTISER` / `CAMPAIGN` / `ADGROUP`)`object_ids`(1–50)`keywords[]` |
|
|
159
462
|
| `tiktok.split-test` | `advertiser_id` `start_time` `end_time`(`yyyy-MM-dd HH:mm:ss`)。默认广告组级:恰好 2 个 `object_ids` 和大于 0 的 `budget`。`split_test_level=CAMPAIGN` 时不要填 `budget`,改填 2 个 `cells` |
|
|
463
|
+
| `tiktok.campaign` | `advertiser_id` `campaign_name` `objective_type` `budget_mode`。非无限预算再加 `budget` |
|
|
464
|
+
| `tiktok.ad-group` | `advertiser_id` `campaign_id` `adgroup_name` `billing_event` `budget_mode` `budget` `optimization_goal` `pacing` `schedule_type` `schedule_start_time` |
|
|
465
|
+
| `tiktok.ad` | `advertiser_id` `adgroup_id` `creatives[]` |
|
|
466
|
+
| `tiktok.smart-creative` | `advertiser_id` `adgroup_id` `media_info_list`。非 Spark 再加 `common_material` |
|
|
160
467
|
|
|
161
468
|
这些 action 都没有删除命令。否定词一旦加上就不能用本 CLI 删掉。
|
|
162
469
|
|
|
163
470
|
## Meta `--account` 为数字广告账户或 `act_` 前缀
|
|
164
471
|
|
|
165
|
-
|
|
472
|
+
即时表单仍用 `meta-ad`。网站、WhatsApp、Messenger、Instagram 和电话线索用下面的 `meta.outcome-*`,系列目标同样是 `OUTCOME_LEADS`。`meta-ad campaign-create` 不能拿来建认知、流量、互动、应用推广、销售。改之前先 `meta-ad campaign -a <account> --id <id> --json-out <目录>`。
|
|
166
473
|
|
|
167
474
|
金额是**最小货币单位的整数字符串**。`daily_budget` 和 `lifetime_budget` 最多填一个。不填预算时,创建会写 `is_adset_budget_sharing_enabled=false`。`bid_strategy` 只有在带了系列预算时才能填:`LOWEST_COST_WITHOUT_CAP`、`LOWEST_COST_WITH_BID_CAP`、`COST_CAP`、`LOWEST_COST_WITH_MIN_ROAS`。`buying_type` 省略或 `AUCTION`。`name` 1–400 个字符。`status` 省略或 `PAUSED`;网关一律写成暂停。没有删除 action。
|
|
168
475
|
|
|
@@ -170,21 +477,72 @@ siluzan-tso ad-gap --action tiktok.negative-keywords --account 1640000000000000
|
|
|
170
477
|
|
|
171
478
|
| action | 正文要点 |
|
|
172
479
|
| --- | --- |
|
|
173
|
-
| `meta.outcome-campaign` | `name` `objective`(`OUTCOME_AWARENESS` / `OUTCOME_TRAFFIC` / `OUTCOME_ENGAGEMENT` / `OUTCOME_APP_PROMOTION` / `OUTCOME_SALES`)`special_ad_categories
|
|
174
|
-
| `meta.outcome-campaign-update` | `--id` 为系列数字 ID。正文只放 `name`、`daily_budget`、`lifetime_budget`、`status` 里的至少一项。不要带 `objective`、`buying_type`、`special_ad_categories
|
|
480
|
+
| `meta.outcome-campaign` | `name` `objective`(`OUTCOME_AWARENESS` / `OUTCOME_TRAFFIC` / `OUTCOME_ENGAGEMENT` / `OUTCOME_APP_PROMOTION` / `OUTCOME_SALES` / `OUTCOME_LEADS`)`special_ad_categories`。即时表单系列也可以在这里建,广告组不要用这条路径 |
|
|
481
|
+
| `meta.outcome-campaign-update` | `--id` 为系列数字 ID。正文只放 `name`、`daily_budget`、`lifetime_budget`、`status` 里的至少一项。不要带 `objective`、`buying_type`、`special_ad_categories`。写入后系列保持暂停。不能把日预算和总预算对调,也不能给还没有系列预算的系列直接加上系列预算 |
|
|
482
|
+
| `meta.advantage-campaign` | 与 `meta.outcome-campaign` 相同,且必须带 `daily_budget` 或 `lifetime_budget`。不要传 `smart_promotion_type`。`advantage_state` 由官方计算,不要自己写 |
|
|
483
|
+
| `meta.outcome-adset` | `name` `campaign_id` `optimization_goal` `countries`。系列没有预算时必填 `daily_budget`;系列已有预算时不要填。目的地用 `destination_type`,不传时按目标推断(点击和落地页是网站,对话有号码时是 WhatsApp、没有时是 Messenger)。流量网站用 `LINK_CLICKS` 或 `LANDING_PAGE_VIEWS`,`destination_type=WEBSITE`。WhatsApp 要写 `destination_type=WHATSAPP`,目标可以是 `CONVERSATIONS` 或 `LINK_CLICKS`,并带 `page_id`、`whatsapp_phone_number`。Messenger 用 `MESSENGER`,Instagram 私信用 `INSTAGRAM_DIRECT`,电话用 `PHONE_CALL` 加 `QUALITY_CALL`,主页资料用 `INSTAGRAM_PROFILE`。销售和应用转化仍带像素或 `application_id`。即时表单不要放这里。视频播放用 `optimization_goal=THRUPLAY`、`destination_type=ON_VIDEO`,并带数字 `page_id`。网站点击、落地页浏览和视频播放都按最低费用、按展示计费提交。不要另写 `billing_event`、`bid_strategy` 或 `bid_amount`,也不要改去 `meta.adset` 或抄别的广告组的出价。`billing_event=THRUPLAY` 在新业务账户上会被拒绝 |
|
|
484
|
+
| `meta.advantage-adset` | 字段同广告组。`advantage_audience` 固定为 1,不接受手动版位。`age_max` 低于 65,或 `age_min` 高于 25 时,网关把这个区间写成 `age_range` 建议,不把低于 65 的 `age_max` 交给 Graph。硬性 `age_min` 高于 25 时改为 18。不限制年龄时省略这两个字段 |
|
|
485
|
+
| `meta.outcome-creative` | `name` `page_id` `message`。单图链接填 `link` `image_hash`,视频填 `video_id` `image_hash`,轮播填 2–10 张 `cards`(每张 `link` `image_hash`,可选 `headline`)。`image_hash` 必须是这个广告账户里 `meta-ad image-upload` 的返回值。`video_id` 必须是这个广告账户里 `meta-ad video-upload` 的返回值。按钮:网站用 `LEARN_MORE` 等,WhatsApp 用 `WHATSAPP_MESSAGE`,Messenger 用 `MESSAGE_PAGE`,Instagram 私信用 `INSTAGRAM_MESSAGE`,电话用 `CALL_NOW`。不要带线索表单 |
|
|
486
|
+
| `meta.outcome-ad` | `name` `adset_id` `creative_id`。网关写成暂停 |
|
|
487
|
+
|
|
488
|
+
用户没给素材文件、也没指定账户里已有的图片或视频时,停下来问。不要自己画占位图,不要编落地页;用户没给网址就问。素材用用户给的文件,或这个账户里已经上传过的 `image_hash` / `video_id`。
|
|
489
|
+
|
|
490
|
+
一条不绑 WhatsApp、保持暂停的网站图片广告只走下面五步。每步的新 `id` 在命令 stdout 的 JSON 里,也在 `--json-out` 目录里同名的 `.json` 里。旁边的 `.outline.txt` 只有字段类型,没有 ID。读到 `id` 就做下一步。不要因为 outline 只有 `{ id: string }` 就去拉系列列表、广告组列表,也不要再执行一次创建。不要读 CLI 源码来猜字段名。
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
siluzan-tso meta-ad image-upload -a act_123 --image-path ./a.jpg --commit "上传图片" --json-out ./snap-meta
|
|
494
|
+
siluzan-tso ad-gap --action meta.outcome-campaign --account act_123 --body "{\"name\":\"Site\",\"objective\":\"OUTCOME_TRAFFIC\",\"special_ad_categories\":[]}" --commit "新建暂停的流量系列" --json-out ./snap-meta
|
|
495
|
+
siluzan-tso ad-gap --action meta.outcome-adset --account act_123 --body "{\"name\":\"US\",\"campaign_id\":\"<系列 id>\",\"optimization_goal\":\"LINK_CLICKS\",\"destination_type\":\"WEBSITE\",\"countries\":[\"US\"],\"daily_budget\":\"8000\"}" --commit "新建暂停的网站点击广告组" --json-out ./snap-meta
|
|
496
|
+
siluzan-tso ad-gap --action meta.outcome-creative --account act_123 --body "{\"name\":\"Image\",\"page_id\":\"<主页 id>\",\"message\":\"…\",\"link\":\"https://客户域名/\",\"image_hash\":\"<上传返回的 hash>\",\"call_to_action\":\"LEARN_MORE\"}" --commit "新建网站单图创意" --json-out ./snap-meta
|
|
497
|
+
siluzan-tso ad-gap --action meta.outcome-ad --account act_123 --body "{\"name\":\"Ad\",\"adset_id\":\"<广告组 id>\",\"creative_id\":\"<创意 id>\"}" --commit "新建暂停广告" --json-out ./snap-meta
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
视频把第一步换成 `meta-ad video-upload --video-path`,系列目标用 `OUTCOME_ENGAGEMENT`,广告组用 `optimization_goal=THRUPLAY`、`destination_type=ON_VIDEO` 和数字 `page_id`,创意用 `video_id` 加封面 `image_hash`,不要同时填 `link`。
|
|
175
501
|
|
|
176
502
|
```bash
|
|
177
|
-
siluzan-tso ad-gap --action meta.outcome-campaign --account act_123 --body "{\"name\":\"Traffic\",\"objective\":\"OUTCOME_TRAFFIC\",\"special_ad_categories\":[]}" --commit "新建暂停的流量系列" --json-out ./snap-meta
|
|
178
503
|
siluzan-tso ad-gap --action meta.outcome-campaign-update --account act_123 --id 456 --body "{\"name\":\"Traffic-2\"}" --commit "改名并保持暂停" --json-out ./snap-meta
|
|
179
504
|
```
|
|
180
505
|
|
|
181
|
-
|
|
506
|
+
视频和网站广告都走上面的 `meta.outcome-*`。Advantage+ 用 `meta.advantage-campaign` 加 `meta.advantage-adset`,不要传 `smart_promotion_type`。`meta.outcome-adset` 只提交国家、年龄和 Advantage Audience。版位、排除地域、兴趣、自定义受众、频次、归因和出资方不要塞进这条简写,改用下面的 `meta.adset`,正文写官方 `targeting`。
|
|
507
|
+
|
|
508
|
+
WhatsApp、Messenger、Instagram 私信和电话都要显式写 `destination_type`,主页要已经绑过对应渠道。网关不代绑定。`LINK_CLICKS` 不传目的地时仍是网站,不要把 WhatsApp 广告组成网站点击。销售组没有 `pixel_id`、应用组没有 `application_id` 和 `object_store_url` 时停。Ads Manager 右侧「广告系列建议 / 因缺少广告组,暂不可用」表示**当前打开的系列下面没有广告组**;先对一下系列 ID,不要据此判断另一个已经建成的组不存在。
|
|
509
|
+
|
|
510
|
+
## Meta 官方字段
|
|
511
|
+
|
|
512
|
+
`meta.outcome-*` 是简写。下面这些 action 的正文是 Graph 官方字段,原样提交。`--id` 是对象 ID,`--parent` 是主页、商务平台或商品目录 ID,这两个不会写进正文。用户没说投放时,创建系列、广告组和广告的 `status` 写 `PAUSED`。金额仍是最小货币单位的整数字符串。`image_hash` 和 `video_id` 必须属于这个广告账户。
|
|
513
|
+
|
|
514
|
+
WhatsApp 号码没有绑定接口。`promoted_object.whatsapp_phone_number` 只在号码已经绑到广告账户时有效。线索表单的条件题、预约题和门店题放进 `meta.form` 的 `questions`,不要用 `meta-ad form-create` 去填这些题。即时体验用 `meta.canvas`。精品栏把画布和 collection 字段放进 `meta.creative` 的 `object_story_spec`。商品目录的 `--parent` 是商务平台 ID;商品系列、商品和 Feed 的 `--parent` 是目录 ID。
|
|
515
|
+
|
|
516
|
+
本地视频用 `meta-ad video-upload --video-path`。命令按不超过 8MB 一片上传,单文件最大 10GB,返回的 `id` 就是 `video_id`。不要自己拆 `meta.video-start`。公网地址用 `meta-ad video-upload --video-url`。只有已经拿到 `upload_session_id`、需要续传时才用 `meta.video-start`(`file_size` 为整个文件的字节数)、`meta.video-transfer`(`upload_session_id`、`start_offset`、`video_file_chunk_base64`)和 `meta.video-finish`。
|
|
517
|
+
|
|
518
|
+
```bash
|
|
519
|
+
siluzan-tso ad-gap --action meta.adset --account act_123 --body "{\"name\":\"US\",\"campaign_id\":\"456\",\"status\":\"PAUSED\",\"targeting\":{\"geo_locations\":{\"countries\":[\"US\"]},\"publisher_platforms\":[\"facebook\",\"instagram\"]},\"optimization_goal\":\"LINK_CLICKS\",\"billing_event\":\"IMPRESSIONS\",\"daily_budget\":\"1000\"}" --commit "按官方定向建暂停广告组" --json-out ./snap-meta
|
|
520
|
+
siluzan-tso ad-gap --action meta.read-adset --account act_123 --id 789 --body "{\"fields\":\"id,name,targeting\"}" --json-out ./snap-meta
|
|
521
|
+
```
|
|
522
|
+
|
|
523
|
+
| action | 路径要点 |
|
|
524
|
+
| --- | --- |
|
|
525
|
+
| `meta.campaign` / `meta.adset` / `meta.ad` / `meta.creative` | 创建。创意可带 `object_story_spec`、`asset_feed_spec`、`object_story_id`、`product_set_id` |
|
|
526
|
+
| `meta.update-*` | `--id`。`meta.update-form` 和 `meta.update-canvas` 还要 `--parent` 主页 |
|
|
527
|
+
| `meta.copy-campaign` / `meta.copy-adset` / `meta.copy-ad` | `--id`。只在当前广告账户内复制。换账户整份迁移见 `references/meta-ads/meta-ads-migrate.md` |
|
|
528
|
+
| `meta.delete-*` | `--id`,无正文。`meta.delete-image` 的正文是 `hash`。`meta.delete-canvas` 要 `--parent` 主页 |
|
|
529
|
+
| `meta.form` / `meta.canvas` | `--parent` 主页 |
|
|
530
|
+
| `meta.product-catalog` / `meta.client-catalog` | `--parent` 商务平台。前者是自己的目录,后者是别人共享来的目录 |
|
|
531
|
+
| `meta.test-leads` | `--id` 表单,`--parent` 主页 |
|
|
532
|
+
| `meta.read-campaign-adsets` / `meta.read-campaign-ads` / `meta.read-adset-ads` / `meta.read-ad-creatives` | `--id` 为系列、广告组或广告 |
|
|
533
|
+
| `meta.product-set` / `meta.product` / `meta.product-feed` | `--parent` 目录 |
|
|
534
|
+
| `meta.custom-audience` / `meta.audience-users` / `meta.audience-users-remove` / `meta.share-audience` | 类似受众是 `subtype=LOOKALIKE`。用户数据按官方要求哈希后再放进 `payload` |
|
|
535
|
+
| `meta.pixel` / `meta.pixel-events` / `meta.share-pixel` / `meta.custom-conversion` | `--id` 为像素或自定义转化 |
|
|
536
|
+
| `meta.ad-rule` / `meta.ad-study` / `meta.ad-label` / `meta.saved-audience` / `meta.block-list` | 创建。修改和删除用同名的 `update-*`、`delete-*` |
|
|
537
|
+
| `meta.reach-frequency` / `meta.preview` / `meta.insights-export` | 预约购买预测、广告预览、异步报表 |
|
|
538
|
+
| `meta.video-start` / `meta.video-transfer` / `meta.video-finish` | 分片上传 |
|
|
539
|
+
| `meta.read-*` | 同名对象的读取。账户级列表不需要 `--id`。单条要 `--id`。`meta.read-form`、`meta.read-canvas`、`meta.read-form-leads` 还要 `--parent` 主页。`meta.read-product-sets`、`meta.read-products`、`meta.read-product-feeds` 的 `--parent` 是目录。查询字段放正文,例如 `fields` |
|
|
182
540
|
|
|
183
541
|
## Google `--account` 为 customer id
|
|
184
542
|
|
|
185
543
|
正文是 camelCase。先读系列:`siluzan-tso ad campaigns -a <account> --json-out <目录>`。购物、动态搜索、应用、展示要用的预算先读:`siluzan-tso ad shared-budget list -a <account> --json-out <目录>`。`budget` 填这份列表里的数字 ID,或 `customers/{id}/campaignBudgets/{id}`。不要填 `1`。
|
|
186
544
|
|
|
187
|
-
这四类系列都建成暂停,而且没有删除 action。没有真实预算 ID、商家 ID 或图片素材 ID
|
|
545
|
+
这四类系列都建成暂停,而且没有删除 action。没有真实预算 ID、商家 ID 或图片素材 ID 时不要创建。视频、酒店、旅游、本地走 `ad coverage`。Call-only 和 Smart 没有 action。
|
|
188
546
|
|
|
189
547
|
`cpcBid`、转化 `defaultValue` 和上传里的 `conversionValue` 是账户币种主单位。
|
|
190
548
|
|
|
@@ -202,7 +560,12 @@ siluzan-tso ad-gap --action google.end-experiment --account 123 --id 100 --commi
|
|
|
202
560
|
| `google.remove-conversion-action` | `--id`,无正文 |
|
|
203
561
|
| `google.upload-clicks` | `conversions` 不能为空。每条要有 `gclid` / `gbraid` / `wbraid` 之一、`conversionAction`、`conversionDateTime`。可选 `conversionValue` `currencyCode` `orderId` `adUserDataConsent` |
|
|
204
562
|
| `google.upload-enhanced-clicks` | 同上,并可带 `hashedEmails` `emails` `hashedPhones` `phones`。不传地址 |
|
|
205
|
-
| `google.
|
|
563
|
+
| `google.upload-adjustment` | `conversionActionId` `adjustmentType`(`RETRACTION` 或 `RESTATEMENT`)`orderId` `adjustmentDateTime`(`yyyy-MM-dd HH:mm:ss+HH:mm`)。`RESTATEMENT` 再加大于 0 的 `adjustedValue`。用订单号定位,不要改用 gclid |
|
|
564
|
+
| `google.campaign-negative-set` | `name`。类型固定为系列可挂的否定关键词列表。账户级列表仍用 `ad negative-list` |
|
|
565
|
+
| `google.campaign-negative-keywords` | `--id` 为共享列表。`keywords[]` 的 `text` 和可选 `matchType`(`BROAD` `PHRASE` `EXACT`) |
|
|
566
|
+
| `google.attach-campaign-negative-set` | `--id` 为共享列表,`--parent` 为系列,无正文 |
|
|
567
|
+
| `google.customer-match-list` | `name`。可选 `description`。`membershipLifeSpan` 为 0–540,或 `10000` 表示不过期 |
|
|
568
|
+
| `google.remove-customer-match-list` | `--id` 为用户列表,无正文 |
|
|
206
569
|
| `google.customer-match-job` | `--id` 为 user list id,无正文 |
|
|
207
570
|
| `google.customer-match-operations` | `--id` 为 job id。`people[]` 用 `emails` `phones` 或已哈希的 `hashedEmails` `hashedPhones`,每个用户至少一种、最多 20 个,哈希是 64 位小写十六进制。可选 `remove`。`removeAll` 不能和 `people` 一起用 |
|
|
208
571
|
| `google.customer-match-run` | `--id`。可选 `validateOnly` |
|
|
@@ -214,8 +577,12 @@ siluzan-tso ad-gap --action google.end-experiment --account 123 --id 100 --commi
|
|
|
214
577
|
| `google.remove-data-exclusion` | `--id` |
|
|
215
578
|
| `google.campaign-simulations` | 只读。`--id` 为系列,无正文 |
|
|
216
579
|
| `google.experiment` | `name` `type`。`type` 用 ExperimentType 枚举名,不要填 `Unspecified` 或 `Unknown`。状态由网关写成 Setup。可选 `description` `suffix` `startDate` `endDate`(`yyyy-MM-dd`) |
|
|
580
|
+
| `google.experiment-arm` | `--id` 为实验 Id。`name` `control`(对照臂 `true`)`trafficSplit`(1–99)`campaignId`。对照臂填基础系列,实验臂填实验系列 |
|
|
217
581
|
| `google.end-experiment` | `--id`,无正文。Setup 状态会删除实验;已经开始的实验才结束。成功时落盘为 `null` |
|
|
218
|
-
| `google.
|
|
582
|
+
| `google.schedule-experiment` | `--id`,无正文。把 Setup 实验排期上线 |
|
|
583
|
+
| `google.promote-experiment` | `--id`,无正文。把实验组提升为正式系列 |
|
|
584
|
+
| `google.label` | `name`(≤80)。可选 `description` |
|
|
585
|
+
| `google.remove-label` | `--id` 为标签本身,无正文。解除关联仍用 unlink |
|
|
219
586
|
| `google.link-campaign-label` | `--parent` 为系列,正文 `labelId` |
|
|
220
587
|
| `google.unlink-campaign-label` | `--parent` 系列,`--id` 标签 |
|
|
221
588
|
| `google.link-ad-group-label` | `--parent` 为广告组,正文 `labelId` |
|
|
@@ -224,7 +591,8 @@ siluzan-tso ad-gap --action google.end-experiment --account 123 --id 100 --commi
|
|
|
224
591
|
| `google.unlink-ad-label` | `--parent` `--id` `--label` |
|
|
225
592
|
| `google.link-criterion-label` | `--parent` 广告组,`--id` 准则,正文 `labelId` |
|
|
226
593
|
| `google.unlink-criterion-label` | `--parent` `--id` `--label` |
|
|
227
|
-
| `google.customizer-attribute` | `name` `type`。`type` 用 CustomizerAttributeType 枚举名,空着按 `Text
|
|
594
|
+
| `google.customizer-attribute` | `name` `type`。`type` 用 CustomizerAttributeType 枚举名,空着按 `Text` |
|
|
595
|
+
| `google.remove-customizer-attribute` | `--id`,无正文 |
|
|
228
596
|
| `google.customer-customizer` | `attributeId` `type` `value` |
|
|
229
597
|
| `google.criterion-bid` | `--parent` 广告组,`--id` 准则,正文 `bidModifierPercent`(-90 到 900) |
|
|
230
598
|
| `google.shopping-campaign` | `name` `budget` `merchantId` `feedLabel`(≤32,必填)。可选 `campaignPriority`(0、1、2)`cpcBid` |
|
|
@@ -118,7 +118,7 @@ function valueKpis(items) {
|
|
|
118
118
|
|
|
119
119
|
禁止对行上的 `conversionsValuePerCost` 再平均(那是行级「转化价值/费用」,不是账户 ROAS)。
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
关键词、搜索字词、国家/地区、设备表的转化价值读各自行的 `conversionsValue`(账户币种),ROAS = 该值 / 该行 `spend`。禁止把系列汇总摊到词、国家或设备上,也禁止用转化次数估算。这些行若 `conversions` > 0 但 `conversionsValue` 全是 0,而同期 `campaigns` 有转化价值,该列写「未返回」。每日趋势:结束日不是报表当天且每天价值都是 0、转化次数却大于 0 时,写「未返回」(该日快照还没写入价值);结束日是当天且现查返回了非 0 价值,按返回值填写。受众表同样读本行 `conversionsValue`,整列是 0 而同期系列有价值时写「未返回」。`geo-matched` / `campaign-geo` 没有这项查询,写「该维度未返回」。关键词或搜索字词当次 outline 也没有该字段时同样写「未返回」。上期 `campaigns` 拉数失败时,账户级三格写明原因,不要留空。
|
|
122
122
|
|
|
123
123
|
英文终稿表头:转化价值 → Conversion value,单转化价值 → Value / conversion,ROAS 保持 ROAS。
|
|
124
124
|
|
|
@@ -130,7 +130,7 @@ siluzan-tso google-analysis -a <id> --start <s> --end <e> --json-out ./snap-goog
|
|
|
130
130
|
|
|
131
131
|
## 地域转化价值
|
|
132
132
|
|
|
133
|
-
`geographic-*.json` → `items[]`。`conversionsValue` 是该国家/地区合计,HTML 地域表直接展示。国家 ROAS = 该行 `conversionsValue / spend`,禁止用系列合计摊下去。各国转化次数大于 0 但价值全是 0、同期 `campaigns` 却有转化价值时,叙事里写「未返回」,不要写成 ROAS 0
|
|
133
|
+
`geographic-*.json` → `items[]`。`conversionsValue` 是该国家/地区合计,HTML 地域表直接展示。国家 ROAS = 该行 `conversionsValue / spend`,禁止用系列合计摊下去。各国转化次数大于 0 但价值全是 0、同期 `campaigns` 却有转化价值时,叙事里写「未返回」,不要写成 ROAS 0。设备行和受众行同样用本行 `conversionsValue`。这些行转化次数大于 0 但价值全是 0、同期系列却有价值时写「未返回」。每日趋势在结束日不是报表当天、且每天价值都是 0 而转化次数大于 0 时写「未返回」;结束日是当天的现查按返回值写。
|
|
134
134
|
|
|
135
135
|
---
|
|
136
136
|
|
|
@@ -65,7 +65,7 @@ siluzan-tso google-quarterly render \
|
|
|
65
65
|
--out ./snap-p10/google-quarterly-report.html
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
`render` 打印 HTML 路径后**立刻交付该文件并结束**。封面和章节称呼由日期决定,不用改 HTML:完整自然季 →「Q3 季度…」;从 1 号起、起止在同一个月(含未过完的本月,如 10-01~10-22)→「10月 月度…」;跨月但不是完整自然季 →「本期」。**本轮用户还没要求修改时**,禁止打开、grep 或改写 HTML,禁止为改「季度 / 月度」再跑一遍 render。用户没要 PDF
|
|
68
|
+
`render` 打印 HTML 路径后**立刻交付该文件并结束**。封面和章节称呼由日期决定,不用改 HTML:完整自然季 →「Q3 季度…」;从 1 号起、起止在同一个月(含未过完的本月,如 10-01~10-22)→「10月 月度…」;跨月但不是完整自然季 →「本期」。**本轮用户还没要求修改时**,禁止打开、grep 或改写 HTML,禁止为改「季度 / 月度」再跑一遍 render。用户没要 PDF 不要转换;要了优先用内置 `html_to_pdf` 转一次,不要读 PDF 正文、不要截图、不要用视觉模型验收。用户另要求改内容或版式时走 `agent-conventions.md` §七,不要改 PDF。
|
|
69
69
|
|
|
70
70
|
省略 `--start/--end` 时 collect 用上一完整自然季(上海日历)。
|
|
71
71
|
|
|
@@ -118,7 +118,7 @@ function valueKpis(items) {
|
|
|
118
118
|
|
|
119
119
|
禁止对行上的 `conversionsValuePerCost` 再平均(那是行级「转化价值/费用」,不是账户 ROAS)。
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
关键词、搜索字词、国家/地区、设备表的转化价值读各自行的 `conversionsValue`(账户币种),ROAS = 该值 / 该行 `spend`。禁止把系列汇总摊到词、国家或设备上,也禁止用转化次数估算。这些行若 `conversions` > 0 但 `conversionsValue` 全是 0,而同期 `campaigns` 有转化价值,该列写「未返回」。每日趋势:结束日不是报表当天且每天价值都是 0、转化次数却大于 0 时,写「未返回」(该日快照还没写入价值);结束日是当天且现查返回了非 0 价值,按返回值填写。受众表同样读本行 `conversionsValue`,整列是 0 而同期系列有价值时写「未返回」。`geo-matched` / `campaign-geo` 没有这项查询,写「该维度未返回」。关键词或搜索字词当次 outline 也没有该字段时同样写「未返回」。上期 `campaigns` 拉数失败时,账户级三格写明原因,不要留空。
|
|
122
122
|
|
|
123
123
|
英文终稿表头:转化价值 → Conversion value,单转化价值 → Value / conversion,ROAS 保持 ROAS。
|
|
124
124
|
|
|
@@ -130,7 +130,7 @@ siluzan-tso google-analysis -a <id> --start <s> --end <e> --json-out ./snap-goog
|
|
|
130
130
|
|
|
131
131
|
## 地域转化价值
|
|
132
132
|
|
|
133
|
-
`geographic-*.json` → `items[]`。`conversionsValue` 是该国家/地区合计,HTML 地域表直接展示。国家 ROAS = 该行 `conversionsValue / spend`,禁止用系列合计摊下去。各国转化次数大于 0 但价值全是 0、同期 `campaigns` 却有转化价值时,叙事里写「未返回」,不要写成 ROAS 0
|
|
133
|
+
`geographic-*.json` → `items[]`。`conversionsValue` 是该国家/地区合计,HTML 地域表直接展示。国家 ROAS = 该行 `conversionsValue / spend`,禁止用系列合计摊下去。各国转化次数大于 0 但价值全是 0、同期 `campaigns` 却有转化价值时,叙事里写「未返回」,不要写成 ROAS 0。设备行和受众行同样用本行 `conversionsValue`。这些行转化次数大于 0 但价值全是 0、同期系列却有价值时写「未返回」。每日趋势在结束日不是报表当天、且每天价值都是 0 而转化次数大于 0 时写「未返回」;结束日是当天的现查按返回值写。
|
|
134
134
|
|
|
135
135
|
---
|
|
136
136
|
|
|
@@ -65,7 +65,7 @@ siluzan-tso google-quarterly render \
|
|
|
65
65
|
--out ./snap-p10/google-quarterly-report.html
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
-
`render` 打印 HTML 路径后**立刻交付该文件并结束**。封面和章节称呼由日期决定,不用改 HTML:完整自然季 →「Q3 季度…」;从 1 号起、起止在同一个月(含未过完的本月,如 10-01~10-22)→「10月 月度…」;跨月但不是完整自然季 →「本期」。**本轮用户还没要求修改时**,禁止打开、grep 或改写 HTML,禁止为改「季度 / 月度」再跑一遍 render。用户没要 PDF
|
|
68
|
+
`render` 打印 HTML 路径后**立刻交付该文件并结束**。封面和章节称呼由日期决定,不用改 HTML:完整自然季 →「Q3 季度…」;从 1 号起、起止在同一个月(含未过完的本月,如 10-01~10-22)→「10月 月度…」;跨月但不是完整自然季 →「本期」。**本轮用户还没要求修改时**,禁止打开、grep 或改写 HTML,禁止为改「季度 / 月度」再跑一遍 render。用户没要 PDF 不要转换;要了优先用内置 `html_to_pdf` 转一次,不要读 PDF 正文、不要截图、不要用视觉模型验收。用户另要求改内容或版式时走 `agent-conventions.md` §七,不要改 PDF。
|
|
69
69
|
|
|
70
70
|
省略 `--start/--end` 时 collect 用上一完整自然季(上海日历)。
|
|
71
71
|
|
|
@@ -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.69
|
|
12
|
+
$PKG_VERSION = '1.1.69'
|
|
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
|