siluzan-tso-cli 1.1.71 → 1.1.72

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.
Files changed (27) hide show
  1. package/dist/index.js +199 -35
  2. package/dist/skill/SKILL.md +5 -5
  3. package/dist/skill/_meta.json +2 -2
  4. package/dist/skill/references/analytics/account-analytics.md +4 -6
  5. package/dist/skill/references/core/agent-conventions.md +1 -0
  6. package/dist/skill/references/core/playbooks.md +1 -1
  7. package/dist/skill/references/core/workflows.md +1 -1
  8. package/dist/skill/references/google-ads/google-ads-exclusions.md +1 -1
  9. package/dist/skill/references/google-ads/google-ads-protection.md +3 -5
  10. package/dist/skill/references/google-ads/google-ads-write.md +6 -5
  11. package/dist/skill/references/google-ads/google-ads.md +1 -1
  12. package/dist/skill/references/google-ads/rules/google-ads-pmax-guide.md +9 -6
  13. package/dist/skill/references/operations/ad-gap.md +190 -5
  14. package/dist/skill/references/report-templates/google-account-diagnosis-report.md +1 -1
  15. package/dist/skill/references/report-templates/google-ads-diagnosis.md +6 -2
  16. package/dist/skill/references/report-templates/google-period-report-excel.md +6 -4
  17. package/dist/skill/references/report-templates/google-period-report.md +8 -8
  18. package/dist/skill/references/report-templates/okki-weekly-google-client.md +4 -4
  19. package/dist/skill/report-templates/google-account-diagnosis-report.md +1 -1
  20. package/dist/skill/report-templates/google-ads-diagnosis.md +6 -2
  21. package/dist/skill/report-templates/google-period-report-excel.md +6 -4
  22. package/dist/skill/report-templates/google-period-report.html +4 -31
  23. package/dist/skill/report-templates/google-period-report.md +8 -8
  24. package/dist/skill/report-templates/okki-weekly-google-client.md +4 -4
  25. package/dist/skill/scripts/install.ps1 +1 -1
  26. package/dist/skill/scripts/install.sh +1 -1
  27. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7415,7 +7415,7 @@ function buildOutlineHints(section) {
7415
7415
  ...GOOGLE_ANALYSIS_CONVERSIONS_VALUE_HINTS
7416
7416
  );
7417
7417
  }
7418
- if (section === "ads" || section === "keywords" || section === "search-terms" || section === "daily-metrics" || section === "devices" || section === "campaign-device" || section === "geographic" || section === "geo-targeted" || section === "campaign-geo" || section === "campaign-geo-matched" || section === "geo-matched") {
7418
+ if (section === "ads" || section === "keywords" || section === "search-terms" || section === "devices" || section === "geographic" || section === "geo-matched" || section === "geo-targeted" || section === "campaign-geo" || section === "campaign-geo-matched" || section === "campaign-device" || section === "daily-metrics" || section === "audience") {
7419
7419
  hints.push(...GOOGLE_ANALYSIS_CONVERSIONS_VALUE_HINTS);
7420
7420
  }
7421
7421
  if (section === "ads") {
@@ -7561,7 +7561,7 @@ var init_google_analysis = __esm({
7561
7561
  "// \u91D1\u989D\uFF1A`ads[].spend` / `averageCpc` / `costPerConversion` \u843D\u76D8\u524D\u5DF2\u7EDF\u4E00\u4E3A**\u5143**\uFF08`costPerConversion` \u7531\u7F51\u5173\u5FAE\u5143 \xF71e6\uFF09\uFF1B**\u7981\u6B62**\u518D\u5BF9 `costPerConversion` \u505A \xF71_000_000\u3002"
7562
7562
  ];
7563
7563
  GOOGLE_ANALYSIS_CONVERSIONS_VALUE_HINTS = [
7564
- "// \u8F6C\u5316\u4EF7\u503C\uFF1A`conversionsValue` \u662F\u8D26\u6237\u5E01\u79CD\u91D1\u989D\uFF08Google\u300C\u8F6C\u5316\u4EF7\u503C\u300D\uFF09\uFF0C\u4E0D\u662F `conversions`\uFF08\u6B21\u6570\uFF09\u3002\u62A5\u544A\u5199\u8F6C\u5316\u4EF7\u503C\u6216 ROAS \u65F6\u7528\u5B83\uFF1AROAS = conversionsValue / spend\uFF08spend \u4E3A 0 \u65F6\u8BE5\u683C\u5199\u300C\u2014\u300D\uFF09\u3002\u7981\u6B62\u7528\u6D88\u8017\u3001\u70B9\u51FB\u3001\u8F6C\u5316\u6B21\u6570\u81EA\u884C\u4F30\u7B97\u3002\u884C\u4E0A\u6CA1\u6709\u8BE5\u5B57\u6BB5\u65F6\u5199\u300C\u672A\u8FD4\u56DE\u300D\uFF0C\u7981\u6B62\u628A\u7CFB\u5217\u4EF7\u503C\u644A\u5230\u8BCD\u6216\u641C\u7D22\u5B57\u8BCD\u4E0A\u3002"
7564
+ "// \u8F6C\u5316\u4EF7\u503C\uFF1A`conversionsValue` \u662F\u8D26\u6237\u5E01\u79CD\u91D1\u989D\uFF08Google\u300C\u8F6C\u5316\u4EF7\u503C\u300D\uFF09\uFF0C\u4E0D\u662F `conversions`\uFF08\u6B21\u6570\uFF09\u3002\u62A5\u544A\u5199\u8F6C\u5316\u4EF7\u503C\u6216 ROAS \u65F6\u7528\u5B83\uFF1AROAS = conversionsValue / spend\uFF08spend \u4E3A 0 \u65F6\u8BE5\u683C\u5199\u300C\u2014\u300D\uFF09\u3002\u884C\u4E0A\u6709\u8FD9\u4E2A\u6570\u5B57\u5C31\u6309\u8FD4\u56DE\u503C\u5199\uFF0C0 \u4E5F\u5199 0\uFF0C\u4E0D\u8981\u6539\u6210\u300C\u672A\u8FD4\u56DE\u300D\u3002\u53EA\u6709\u884C\u4E0A\u6CA1\u6709\u8BE5\u5B57\u6BB5\u65F6\u624D\u5199\u300C\u672A\u8FD4\u56DE\u300D\u3002\u7981\u6B62\u7528\u6D88\u8017\u3001\u70B9\u51FB\u3001\u8F6C\u5316\u6B21\u6570\u81EA\u884C\u4F30\u7B97\uFF0C\u7981\u6B62\u628A\u7CFB\u5217\u4EF7\u503C\u644A\u5230\u8BCD\u6216\u641C\u7D22\u5B57\u8BCD\u4E0A\u3002"
7565
7565
  ];
7566
7566
  GOOGLE_ANALYSIS_CAMPAIGNS_COMPETITIVE_METRICS_HINTS = [
7567
7567
  "// \u7ADE\u4E89\u6307\u6807\uFF1A`campaigns[].competitiveMetrics` \u4E3A **0~1 \u5C0F\u6570**\uFF08\u5982 `0.0999` = 9.99%\uFF09\uFF0C\u542B Top/AbsoluteTop/Content/ClickShare \u7B49\uFF1B\u65E0\u6570\u636E\u65F6\u4E3A `null`\u3002",
@@ -9560,7 +9560,6 @@ function targetedLocationsToGeographic(raw) {
9560
9560
  ctr: finiteNumber2(row.ctr) / 100,
9561
9561
  spend: finiteNumber2(row.spend),
9562
9562
  conversions: finiteNumber2(row.conversions),
9563
- conversionsValue: finiteNumber2(row.conversionsValue),
9564
9563
  allConversions: finiteNumber2(row.allConversions),
9565
9564
  averageCpc: finiteNumber2(row.averageCpc),
9566
9565
  conversionRate: finiteNumber2(row.conversionRate),
@@ -105306,6 +105305,11 @@ function normalizePmaxSearchTermRows(reports, namesById) {
105306
105305
  row.conversionRate = round4(conversions / clicks);
105307
105306
  }
105308
105307
  if (conversions > 0) row.costPerConversion = round23(spend / conversions);
105308
+ const rawValue = rec.conversionsValue ?? rec.ConversionsValue;
105309
+ if (rawValue != null && rawValue !== "") {
105310
+ const value = num3(rawValue);
105311
+ if (value != null) row.conversionsValue = round23(value);
105312
+ }
105309
105313
  rows.push(row);
105310
105314
  }
105311
105315
  }
@@ -105824,7 +105828,6 @@ async function mergeGoogleAnalysisSnapshotIntoReport(payload, snapshotDir) {
105824
105828
  dates: sorted.map((r) => String(r.date ?? "\u2014")),
105825
105829
  cost: sorted.map((r) => round25(num5(r.spend)) ?? 0),
105826
105830
  conversions: sorted.map((r) => Math.round(num5(r.conversions) ?? 0)),
105827
- conversionsValue: sorted.map((r) => round25(num5(r.conversionsValue)) ?? 0),
105828
105831
  cpa: sorted.map((r) => round25(num5(r.costPerConversion)) ?? 0)
105829
105832
  };
105830
105833
  }
@@ -105853,7 +105856,7 @@ async function mergeGoogleAnalysisSnapshotIntoReport(payload, snapshotDir) {
105853
105856
  {
105854
105857
  const rows = items(sectionMap.get("devices"));
105855
105858
  if (rows.length > 0) {
105856
- tables.devices = rows.map((r) => pickMetricRow(r, ["deviceType", "conversionsValue"]));
105859
+ tables.devices = rows.map((r) => pickMetricRow(r, ["deviceType"]));
105857
105860
  }
105858
105861
  }
105859
105862
  {
@@ -106484,7 +106487,6 @@ function deviceRows(data, lang = "zh") {
106484
106487
  money2(row.spend),
106485
106488
  count(pair.all),
106486
106489
  count(pair.conv),
106487
- money2(row.conversionsValue),
106488
106490
  num7(row.costPerConversion) == null && pair.conv <= 0 ? "\u2014" : money2(row.costPerConversion),
106489
106491
  rate(row.conversionRate)
106490
106492
  ];
@@ -106509,7 +106511,6 @@ function geoRows(data, lang = "zh") {
106509
106511
  rate(row.ctr),
106510
106512
  count(pair.all),
106511
106513
  count(pair.conv),
106512
- money2(row.conversionsValue),
106513
106514
  num7(row.costPerConversion) == null && pair.conv <= 0 ? "\u2014" : money2(row.costPerConversion),
106514
106515
  rate(row.conversionRate)
106515
106516
  ];
@@ -106606,11 +106607,10 @@ function buildOkkiWeeklySheetDrafts(data, lang = "zh") {
106606
106607
  "\u8D39\u7528",
106607
106608
  "\u6240\u6709\u8F6C\u5316\u6B21\u6570",
106608
106609
  "\u8F6C\u5316\u6B21\u6570",
106609
- "\u8F6C\u5316\u4EF7\u503C",
106610
106610
  "\u6BCF\u6B21\u8F6C\u5316\u8D39\u7528",
106611
106611
  "\u8F6C\u5316\u7387"
106612
106612
  ],
106613
- colWidths: [12, 10, 26, 12, 11, 10, 9, 16, 11, 14, 10, 12, 14, 9],
106613
+ colWidths: [12, 10, 26, 12, 11, 10, 9, 16, 11, 14, 10, 14, 9],
106614
106614
  dataRows: deviceRows(data, lang),
106615
106615
  analysisLines: analysisLines(data, "devices")
106616
106616
  },
@@ -106630,11 +106630,10 @@ function buildOkkiWeeklySheetDrafts(data, lang = "zh") {
106630
106630
  "\u70B9\u51FB\u7387",
106631
106631
  "\u6240\u6709\u8F6C\u5316\u6B21\u6570",
106632
106632
  "\u8F6C\u5316\u6B21\u6570",
106633
- "\u8F6C\u5316\u4EF7\u503C",
106634
106633
  "\u6BCF\u6B21\u8F6C\u5316\u8D39\u7528",
106635
106634
  "\u8F6C\u5316\u7387"
106636
106635
  ],
106637
- colWidths: [16, 26, 11, 11, 9, 11, 11, 10, 9, 14, 10, 12, 14, 9],
106636
+ colWidths: [16, 26, 11, 11, 9, 11, 11, 10, 9, 14, 10, 14, 9],
106638
106637
  dataRows: geoRows(data, lang),
106639
106638
  analysisLines: analysisLines(data, "geo")
106640
106639
  }
@@ -141858,6 +141857,13 @@ function num(value) {
141858
141857
  function rowCost(row) {
141859
141858
  return num(row.cost ?? row.spend);
141860
141859
  }
141860
+ function attachConversionsValue(row, target) {
141861
+ if (!Object.prototype.hasOwnProperty.call(row, "conversionsValue") || row.conversionsValue == null || row.conversionsValue === "") {
141862
+ return target;
141863
+ }
141864
+ target.conversionsValue = num(row.conversionsValue);
141865
+ return target;
141866
+ }
141861
141867
  function cvrOf(row, clicks) {
141862
141868
  if (clicks > 0) return num(row.conversions) / clicks;
141863
141869
  return num(row.conversionRate ?? row.cvr);
@@ -141896,7 +141902,7 @@ function toKeyMetricRow(title, current, previous) {
141896
141902
  const previousCost = previous ? rowCost(previous) : null;
141897
141903
  const previousClicks = previous ? num(previous.clicks) : null;
141898
141904
  const previousCvr = previous ? cvrOf(previous, num(previous.clicks)) : null;
141899
- return {
141905
+ const row = attachConversionsValue(current, {
141900
141906
  title,
141901
141907
  currentCost,
141902
141908
  previousCost,
@@ -141907,7 +141913,11 @@ function toKeyMetricRow(title, current, previous) {
141907
141913
  currentCvr,
141908
141914
  previousCvr,
141909
141915
  cvrRateChange: previous !== null && previousCvr !== null ? rateChange(currentCvr, previousCvr) : null
141910
- };
141916
+ });
141917
+ if (previous && Object.prototype.hasOwnProperty.call(previous, "conversionsValue") && previous.conversionsValue != null && previous.conversionsValue !== "") {
141918
+ row.previousConversionsValue = num(previous.conversionsValue);
141919
+ }
141920
+ return row;
141911
141921
  }
141912
141922
  function indexByKey(rows, keyFn) {
141913
141923
  const map = /* @__PURE__ */ new Map();
@@ -141932,7 +141942,7 @@ function toTargetingItem(row, labelKey, label2) {
141932
141942
  const cvr = cvrOf(row, clicks);
141933
141943
  const cpc = num(row.averageCpc ?? row.cpc);
141934
141944
  const cpa = conversions > 0 ? cost / conversions : num(row.costPerConversion ?? row.cpa);
141935
- return {
141945
+ return attachConversionsValue(row, {
141936
141946
  [labelKey]: label2,
141937
141947
  cost,
141938
141948
  impressions,
@@ -141942,7 +141952,7 @@ function toTargetingItem(row, labelKey, label2) {
141942
141952
  cvr,
141943
141953
  cpc,
141944
141954
  cpa
141945
- };
141955
+ });
141946
141956
  }
141947
141957
  function toDailyConversionItem(row) {
141948
141958
  const cost = rowCost(row);
@@ -141950,14 +141960,14 @@ function toDailyConversionItem(row) {
141950
141960
  const rawDate = String(row.date ?? "");
141951
141961
  const date = rawDate.includes("T") ? rawDate.slice(0, 10) : rawDate.slice(0, 10);
141952
141962
  const cpa = conversions > 0 ? cost / conversions : num(row.costPerConversion ?? row.cpa);
141953
- return {
141963
+ return attachConversionsValue(row, {
141954
141964
  date,
141955
141965
  cost,
141956
141966
  conversions,
141957
141967
  cpa,
141958
141968
  clicks: num(row.clicks),
141959
141969
  impressions: num(row.impressions)
141960
- };
141970
+ });
141961
141971
  }
141962
141972
  function loadCompanyNameFromSnap(snapDir) {
141963
141973
  const file = path29.join(snapDir, "list-accounts-google.json");
@@ -142055,7 +142065,7 @@ function buildKeywordShareItems(rows) {
142055
142065
  const cost = rowCost(row);
142056
142066
  const conversions = num(row.conversions);
142057
142067
  const keywordText = String(row.keywordText ?? row.keyword ?? "").trim();
142058
- return {
142068
+ return attachConversionsValue(row, {
142059
142069
  keyword: keywordText || "\u672A\u547D\u540D",
142060
142070
  cpc: num(row.averageCpc ?? row.cpc),
142061
142071
  matchType: String(row.keywordMatchTypeZh ?? row.keywordMatchType ?? row.matchType ?? ""),
@@ -142068,7 +142078,7 @@ function buildKeywordShareItems(rows) {
142068
142078
  cpa: conversions > 0 ? cost / conversions : 0,
142069
142079
  ctr: num(row.ctr),
142070
142080
  cvr: cvrOf(row, num(row.clicks))
142071
- };
142081
+ });
142072
142082
  });
142073
142083
  }
142074
142084
  function buildSearchTermItems(rows) {
@@ -142077,7 +142087,7 @@ function buildSearchTermItems(rows) {
142077
142087
  const cost = rowCost(row);
142078
142088
  const conversions = num(row.conversions);
142079
142089
  const cpa = conversions > 0 ? num(row.costPerConversion) || cost / conversions : void 0;
142080
- return {
142090
+ return attachConversionsValue(row, {
142081
142091
  searchTerm: String(row.searchTermText ?? row.searchTerm ?? "\u672A\u547D\u540D"),
142082
142092
  keyword: String(row.keywordText ?? row.keyword ?? ""),
142083
142093
  cost,
@@ -142087,7 +142097,7 @@ function buildSearchTermItems(rows) {
142087
142097
  ctr: num(row.ctr),
142088
142098
  cvr: cvrOf(row, num(row.clicks)),
142089
142099
  cpa
142090
- };
142100
+ });
142091
142101
  });
142092
142102
  }
142093
142103
  function countBroadKeywords(rows) {
@@ -142115,14 +142125,14 @@ function buildAdCreativeItems(rows) {
142115
142125
  ].filter((x) => String(x ?? "").trim());
142116
142126
  const headlinesCount = headlines.length;
142117
142127
  const descriptionsCount = descriptions.length;
142118
- return {
142128
+ return attachConversionsValue(row, {
142119
142129
  adTitle: String(row.adTitle ?? row.campaign ?? "\u672A\u547D\u540D\u5E7F\u544A"),
142120
142130
  headlinesCount,
142121
142131
  headlinesStatus: headlinesCount >= 3 ? "\u826F\u597D" : headlinesCount >= 2 ? "\u5F85\u4F18\u5316" : "\u4E0D\u8FBE\u6807",
142122
142132
  descriptionsCount,
142123
142133
  descriptionsStatus: descriptionsCount >= 8 ? "\u826F\u597D" : descriptionsCount >= 4 ? "\u5F85\u4F18\u5316" : "\u4E0D\u8FBE\u6807",
142124
142134
  suggestion: ""
142125
- };
142135
+ });
142126
142136
  });
142127
142137
  }
142128
142138
  function buildBudgetCompetitiveness(overviewRecord, dimensionRecord) {
@@ -145564,8 +145574,8 @@ function bullets(value) {
145564
145574
  }
145565
145575
  function insightLines(section) {
145566
145576
  const rec = asRecord27(section);
145567
- const insight = asRecord27(rec?.insight) ?? rec;
145568
- return [...bullets(insight?.analysis), ...bullets(insight?.advice)];
145577
+ const insight2 = asRecord27(rec?.insight) ?? rec;
145578
+ return [...bullets(insight2?.analysis), ...bullets(insight2?.advice)];
145569
145579
  }
145570
145580
  function numberedSection(index, title, lines) {
145571
145581
  const body = lines.length > 0 ? lines.join("\n") : "\u672C\u671F\u8BE5\u7EF4\u5EA6\u65E0\u8865\u5145\u8BF4\u660E\u3002";
@@ -145720,10 +145730,10 @@ function stringList3(value) {
145720
145730
  }
145721
145731
  function insightLists(section) {
145722
145732
  const rec = asRecord28(section);
145723
- const insight = asRecord28(rec?.insight) ?? rec;
145733
+ const insight2 = asRecord28(rec?.insight) ?? rec;
145724
145734
  return {
145725
- analysis: stringList3(insight?.analysis),
145726
- advice: stringList3(insight?.advice)
145735
+ analysis: stringList3(insight2?.analysis),
145736
+ advice: stringList3(insight2?.advice)
145727
145737
  };
145728
145738
  }
145729
145739
  function requireInsight(missing, key, chapter, section, required) {
@@ -151529,8 +151539,8 @@ function validateYandexPeriodReportContent(data) {
151529
151539
  let covered = 0;
151530
151540
  const uncovered = [];
151531
151541
  for (const row of shown) {
151532
- const insight = findRowInsight(insights, spec.matchField, row[spec.matchField], row);
151533
- if (insight && textLen7(insight[spec.requiredField]) > 0) {
151542
+ const insight2 = findRowInsight(insights, spec.matchField, row[spec.matchField], row);
151543
+ if (insight2 && textLen7(insight2[spec.requiredField]) > 0) {
151534
151544
  covered += 1;
151535
151545
  } else {
151536
151546
  uncovered.push(String(row[spec.matchField]));
@@ -152453,7 +152463,21 @@ var BING_COVERAGE_WRITES = [
152453
152463
  "html5",
152454
152464
  "linkedin-segment",
152455
152465
  "apply-recommendations",
152456
- "objective-based-campaign"
152466
+ "objective-based-campaign",
152467
+ "audience-group",
152468
+ "update-audience-group",
152469
+ "delete-audience-groups",
152470
+ "link-audience-group",
152471
+ "unlink-audience-group",
152472
+ "campaign-conversion-goal",
152473
+ "delete-campaign-conversion-goals",
152474
+ "update-audience",
152475
+ "update-label",
152476
+ "update-shared-entity",
152477
+ "update-import-job",
152478
+ "update-campaign-criterion",
152479
+ "update-ad-group-criterion",
152480
+ "delete-ad-group-criterions"
152457
152481
  ];
152458
152482
  var BING_COVERAGE_READS = [
152459
152483
  "ad-groups",
@@ -152484,8 +152508,44 @@ var BING_COVERAGE_READS = [
152484
152508
  "bsc-countries",
152485
152509
  "campaign-criterions",
152486
152510
  "ad-group-criterions",
152487
- "import-jobs"
152511
+ "import-jobs",
152512
+ "campaigns",
152513
+ "ad-groups-by-ids",
152514
+ "ads-by-ids",
152515
+ "keywords-by-ids",
152516
+ "keywords-by-status",
152517
+ "asset-groups-by-ids",
152518
+ "asset-group-listing-groups",
152519
+ "asset-group-editorial-reasons",
152520
+ "extension-ids",
152521
+ "extension-associations",
152522
+ "extension-editorial-reasons",
152523
+ "shared-list-items",
152524
+ "shared-library",
152525
+ "shared-associations",
152526
+ "shared-associations-by-list",
152527
+ "label-associations",
152528
+ "label-associations-by-label",
152529
+ "import-results",
152530
+ "import-entity-ids",
152531
+ "conversion-goals-by-tag",
152532
+ "conversion-value-rules-by-account",
152533
+ "data-exclusions-by-account",
152534
+ "seasonality-by-account",
152535
+ "offline-conversion-reports",
152536
+ "campaigns-by-budget",
152537
+ "campaigns-by-bid-strategy",
152538
+ "media-associations",
152539
+ "audience-groups",
152540
+ "audience-group-assets",
152541
+ "audience-group-assets-by-audience"
152488
152542
  ];
152543
+ var insight = (path61, method = "POST", needsBody = true) => ({
152544
+ service: "tso",
152545
+ method,
152546
+ path: `/reporting/media-account/BingV2/{account}/insights/${path61}`,
152547
+ needsBody
152548
+ });
152489
152549
  function bingCoverage() {
152490
152550
  const actions = {};
152491
152551
  for (const name2 of BING_COVERAGE_WRITES) actions[`bing.${name2}`] = bing(`coverage/${name2}`);
@@ -152546,7 +152606,12 @@ var YANDEX_COVERAGE_WRITES = [
152546
152606
  "cpm-deals-campaign",
152547
152607
  "cpm-frontpage-campaign",
152548
152608
  "cpm-price-campaign",
152549
- "ad-group-suspend"
152609
+ "ad-group-suspend",
152610
+ "unarchive-strategy",
152611
+ "ad-callouts",
152612
+ "suspend-smart-ad-target",
152613
+ "resume-smart-ad-target",
152614
+ "delete-smart-ad-target"
152550
152615
  ];
152551
152616
  var YANDEX_COVERAGE_READS = [
152552
152617
  "campaigns",
@@ -152565,7 +152630,8 @@ var YANDEX_COVERAGE_READS = [
152565
152630
  "vcards",
152566
152631
  "businesses",
152567
152632
  "turbo-pages",
152568
- "negative-keyword-sets"
152633
+ "negative-keyword-sets",
152634
+ "keyword-bids"
152569
152635
  ];
152570
152636
  function yandexCoverage() {
152571
152637
  const actions = {};
@@ -152814,6 +152880,35 @@ var GAP_ACTIONS = {
152814
152880
  "bing.data-exclusion": bing("data-exclusions"),
152815
152881
  "bing.conversion-value-rule": bing("conversion-value-rules"),
152816
152882
  ...bingCoverage(),
152883
+ "bing.keyword-ideas": insight("keyword-ideas"),
152884
+ "bing.keyword-idea-categories": insight("keyword-idea-categories", "GET", false),
152885
+ "bing.traffic-estimates": insight("traffic-estimates"),
152886
+ "bing.auction": insight("auction"),
152887
+ "bing.budget-opportunities": insight("budget-opportunities"),
152888
+ "bing.keyword-opportunities": insight("keyword-opportunities"),
152889
+ "bing.bid-landscape": insight("bid-landscape"),
152890
+ "bing.performance": insight("performance"),
152891
+ "bing.suggest-keywords": insight("suggest-keywords"),
152892
+ "bing.suggest-keywords-for-url": insight("suggest-keywords-for-url"),
152893
+ "bing.historical-search-count": insight("historical-search-count"),
152894
+ "bing.estimated-bids": insight("estimated-bids"),
152895
+ "bing.domain-categories": insight("domain-categories"),
152896
+ "bing.retrieve-recommendations": insight("recommendations/retrieve"),
152897
+ "bing.dismiss-recommendations": insight("recommendations/dismiss"),
152898
+ "bing.tag-recommendations": insight("recommendations/tag"),
152899
+ "bing.auto-apply-status": insight("auto-apply"),
152900
+ "bing.set-auto-apply": insight("auto-apply/set"),
152901
+ "bing.audience-estimation": insight("audience-estimation"),
152902
+ "bing.ad-group-bid-landscape": insight("bid-landscape/ad-groups"),
152903
+ "bing.bid-opportunities": insight("bid-opportunities"),
152904
+ "bing.estimated-bids-by-ids": insight("estimated-bids/keyword-ids"),
152905
+ "bing.estimated-positions": insight("estimated-positions"),
152906
+ "bing.estimated-positions-by-ids": insight("estimated-positions/keyword-ids"),
152907
+ "bing.keyword-performance": insight("keyword-performance"),
152908
+ "bing.keyword-categories": insight("keyword-categories"),
152909
+ "bing.keyword-demographics": insight("keyword-demographics"),
152910
+ "bing.keyword-locations": insight("keyword-locations"),
152911
+ "bing.text-asset-suggestions": insight("text-assets"),
152817
152912
  "yandex.text-campaign": yandex("campaigns"),
152818
152913
  "yandex.rename-campaign": yandex("campaigns/{id}/name", { needsId: true }),
152819
152914
  "yandex.archive-campaign": yandex("campaigns/{id}/archive", { needsId: true, needsBody: false }),
@@ -152932,7 +153027,76 @@ var GAP_ACTIONS = {
152932
153027
  "google.app-campaign": google("POST", "/campaigns/{account}/app"),
152933
153028
  "google.display-campaign": google("POST", "/campaigns/{account}/display"),
152934
153029
  "google.apply-recommendation": google("POST", "/recommendations/{account}/apply"),
152935
- "google.dismiss-recommendation": google("POST", "/recommendations/{account}/dismiss")
153030
+ "google.dismiss-recommendation": google("POST", "/recommendations/{account}/dismiss"),
153031
+ "google.value-rule-set": google("POST", "/conversion-value-rule-sets/{account}"),
153032
+ "google.remove-value-rule-set": google("DELETE", "/conversion-value-rule-sets/{account}/{id}", { needsId: true, needsBody: false }),
153033
+ "google.custom-conversion-goal": google("POST", "/custom-conversion-goals/{account}"),
153034
+ "google.remove-custom-conversion-goal": google("DELETE", "/custom-conversion-goals/{account}/{id}", { needsId: true, needsBody: false }),
153035
+ "google.campaign-conversion-goal": google("PUT", "/campaign-conversion-goals/{account}"),
153036
+ "google.customer-conversion-goal": google("PUT", "/customer-conversion-goals/{account}"),
153037
+ "google.conversion-goal-campaign-config": google("PUT", "/conversion-goal-campaign-configs/{account}"),
153038
+ "google.conversion-custom-variable": google("POST", "/conversion-custom-variables/{account}"),
153039
+ "google.pause-conversion-custom-variable": google("PUT", "/conversion-custom-variables/{account}/{id}/pause", { needsId: true, needsBody: false }),
153040
+ "google.upload-calls": google("POST", "/conversion-uploads/{account}/calls"),
153041
+ "google.campaign-customizer": google("POST", "/customizers/{account}/campaigns/{parent}", { needsParent: true }),
153042
+ "google.ad-group-customizer": google("POST", "/customizers/{account}/ad-groups/{parent}", { needsParent: true }),
153043
+ "google.criterion-customizer": google("POST", "/customizers/{account}/ad-groups/{parent}/criteria/{id}", { needsParent: true, needsId: true }),
153044
+ "google.campaign-group": google("POST", "/campaign-groups/{account}"),
153045
+ "google.rename-campaign-group": google("PUT", "/campaign-groups/{account}/{id}", { needsId: true }),
153046
+ "google.remove-campaign-group": google("DELETE", "/campaign-groups/{account}/{id}", { needsId: true, needsBody: false }),
153047
+ "google.attach-campaign-group": google("POST", "/campaign-groups/{account}/{id}/campaigns/{parent}", { needsId: true, needsParent: true, needsBody: false }),
153048
+ "google.remarketing-action": google("POST", "/remarketing-actions/{account}"),
153049
+ "google.recommendation-subscription": google("PUT", "/recommendation-subscriptions/{account}"),
153050
+ "google.remove-auto-assets": google("POST", "/auto-asset-removals/{account}"),
153051
+ "google.basic-user-list": google("POST", "/user-lists/{account}/basic"),
153052
+ "google.custom-audience": google("POST", "/custom-audiences/{account}"),
153053
+ "google.remove-custom-audience": google("DELETE", "/custom-audiences/{account}/{id}", { needsId: true, needsBody: false }),
153054
+ "google.goal": google("POST", "/goals/{account}"),
153055
+ "google.campaign-goal-config": google("POST", "/campaign-goal-configs/{account}"),
153056
+ "google.remove-campaign-goal-config": google("DELETE", "/campaign-goal-configs/{account}/{id}", { needsId: true, needsBody: false }),
153057
+ "google.keyword-plan": google("POST", "/keyword-plans/{account}"),
153058
+ "google.remove-keyword-plan": google("DELETE", "/keyword-plans/{account}/{id}", { needsId: true, needsBody: false }),
153059
+ "google.keyword-plan-campaign": google("POST", "/keyword-plans/{account}/campaigns"),
153060
+ "google.keyword-plan-ad-group": google("POST", "/keyword-plans/{account}/ad-groups"),
153061
+ "google.keyword-plan-keywords": google("POST", "/keyword-plans/{account}/ad-group-keywords"),
153062
+ "google.keyword-plan-campaign-keywords": google("POST", "/keyword-plans/{account}/campaign-keywords"),
153063
+ "google.generate-text": google("POST", "/asset-generation/{account}/text"),
153064
+ "google.shareable-preview": google("POST", "/shareable-previews/{account}"),
153065
+ "google.audience": google("POST", "/audiences/{account}"),
153066
+ "google.rename-audience": google("PUT", "/audiences/{account}/{id}", { needsId: true }),
153067
+ "google.custom-interest": google("POST", "/custom-interests/{account}"),
153068
+ "google.logical-user-list": google("POST", "/user-lists/{account}/logical"),
153069
+ "google.rule-user-list": google("POST", "/user-lists/{account}/rule"),
153070
+ "google.user-list-customer-type": google("POST", "/user-list-customer-types/{account}"),
153071
+ "google.upload-user-data": google("POST", "/user-data/{account}"),
153072
+ "google.asset-set": google("POST", "/asset-sets/{account}"),
153073
+ "google.remove-asset-set": google("DELETE", "/asset-sets/{account}/{id}", { needsId: true, needsBody: false }),
153074
+ "google.asset-set-asset": google("POST", "/asset-sets/{account}/assets"),
153075
+ "google.customer-asset-set": google("POST", "/asset-sets/{account}/customer"),
153076
+ "google.campaign-asset-set": google("POST", "/asset-sets/{account}/campaigns"),
153077
+ "google.ad-group-asset-set": google("POST", "/asset-sets/{account}/ad-groups"),
153078
+ "google.product-link-invitation": google("POST", "/product-link-invitations/{account}"),
153079
+ "google.product-link": google("POST", "/product-links/{account}"),
153080
+ "google.remove-product-link": google("DELETE", "/product-links/{account}/{id}", { needsId: true, needsBody: false }),
153081
+ "google.data-link": google("POST", "/data-links/{account}"),
153082
+ "google.remove-data-link": google("DELETE", "/data-links/{account}/{id}", { needsId: true, needsBody: false }),
153083
+ "google.regenerate-app-analytics-link": google("POST", "/app-analytics-links/{account}/regenerate"),
153084
+ "google.call-bid-modifier": google("POST", "/campaign-bid-modifiers/{account}"),
153085
+ "google.customer-settings": google("PUT", "/customer-settings/{account}"),
153086
+ "google.format-ad": google("POST", "/format-ads/{account}/ad-groups/{parent}", { needsParent: true }),
153087
+ "google.format-asset": google("POST", "/format-assets/{account}"),
153088
+ "google.billing-setup": google("POST", "/billing-setups/{account}"),
153089
+ "google.account-budget-proposal": google("POST", "/account-budget-proposals/{account}"),
153090
+ "google.invoices": google("POST", "/invoices/{account}"),
153091
+ "google.payments-accounts": google("POST", "/payments-accounts/{account}", { needsBody: false }),
153092
+ "google.ads-fields": google("POST", "/google-ads-fields/{account}"),
153093
+ "google.travel-asset-suggestions": google("POST", "/travel-asset-suggestions/{account}"),
153094
+ "google.insight-dates": google("POST", "/insight-dates/{account}", { needsBody: false }),
153095
+ "google.benchmark-dates": google("POST", "/benchmark-dates/{account}", { needsBody: false }),
153096
+ "google.reach-locations": google("POST", "/reach-locations/{account}", { needsBody: false }),
153097
+ "google.incentives": google("POST", "/incentives/{account}", { needsBody: false }),
153098
+ "google.apply-incentive": google("POST", "/incentives/{account}/apply"),
153099
+ "google.skadnetwork": google("PUT", "/skadnetwork/{account}")
152936
153100
  };
152937
153101
  function gapActionNames() {
152938
153102
  return Object.keys(GAP_ACTIONS).sort();
@@ -68,7 +68,7 @@ siluzan-tso -h
68
68
  | **Google** | Search + PMax + Demand Gen(`ad`);购物 / 动态搜索 / 应用 / 展示和转化、客户匹配、实验、标签等(`ad-gap`);视频 / 酒店 / 旅游 / 本地(`ad coverage`) | `google-analysis` | 无 Call-only、无 Smart |
69
69
  | **MetaAd** | Instant Form 线索(`meta-ad`,W13);非线索系列、广告组、链接/视频创意、广告和 Advantage+(`ad-gap`) | `facebook-analysis` | 无系列列表。新建保持暂停。不要写 `smart_promotion_type` |
70
70
  | **TikTok** | 启停、预算;常规系列 / 广告组 / 广告 / Smart Creative,以及受众、复制、GMV Max、Smart+、否定词、拆分测试(`ad-gap`) | `tiktok-analysis` | 无商品目录创建。新建写成 DISABLE。覆盖和频次不能用 `tiktok.campaign`。已有对象不改出价 |
71
- | **BingV2** | 启停、日预算、组 CPC;搜索对象,以及购物、受众、PMax、酒店、应用、动态搜索广告和其余广告管理(`ad-gap`) | `bing-analysis` | 共享预算会连坐。新建默认暂停。Expanded Text 不能新建 |
71
+ | **BingV2** | 启停、日预算、组 CPC;搜索对象,以及购物、受众、PMax、酒店、应用、动态搜索广告、其余广告管理和洞察(`ad-gap`) | `bing-analysis` | 共享预算会连坐。新建默认暂停。Expanded Text 不能新建 |
72
72
  | **Yandex** | suspend/resume、日预算、搜索出价;文本对象、统一效果、展示、动态、智能、应用、商品广告、出价系数、动态文本条件、组合策略、视频、名片(`ad-gap`) | `yandex-analysis` | 金额填账户币种。新建后自动 suspend。动态条件不写 `ContextBid`。搜索横幅、交易、首页和固定 CPM 不能创建 |
73
73
 
74
74
  ## 路由表(意图 → 工作流 → 必读文档)
@@ -96,9 +96,9 @@ siluzan-tso -h
96
96
  | ------------------ | ------ | -------- |
97
97
  | 建 TikTok 广告结构 | — | `references/operations/ad-gap.md`(`tiktok.campaign` / `tiktok.ad-group` / `tiktok.ad` / `tiktok.smart-creative`。无商品目录创建。勿用 `ad` / `meta-ad` 伪装) |
98
98
  | Bing 价格 / 促销 / 电话附加,广告组年龄 / 性别 / 受众,系列出价策略或语言 | — | `references/operations/ad-gap.md`(`bing.price-extension` / `bing.promotion-extension` / `bing.call-extension` / `bing.ad-group-age` / `bing.ad-group-gender` / `bing.ad-group-audience` / `bing.campaign-settings`) |
99
- | Bing 购物 / 受众 / PMax / 酒店 / 应用 / 动态搜索,附加信息、受众、素材组或按 id 读取 | — | `references/operations/ad-gap.md`(「Bing 其余广告管理」。`bing.shopping-campaign` / `bing.dynamic-search-ad` / `bing.read-ad-groups`。不要建 Expanded Text,不要建 DynamicSearchAds 系列类型) |
99
+ | Bing 购物 / 受众 / PMax / 酒店 / 应用 / 动态搜索,附加信息、受众、素材组、按 id 读取或洞察 | — | `references/operations/ad-gap.md`(「Bing 其余广告管理」和「Bing 洞察」。`bing.shopping-campaign` / `bing.dynamic-search-ad` / `bing.read-ad-groups` / `bing.retrieve-recommendations`。不要建 Expanded Text,不要用已废弃的 `GetRecommendations`) |
100
100
  | Yandex 动态文本条件 / 条件出价 | — | `references/operations/ad-gap.md`(`yandex.dynamic-target` / `yandex.dynamic-target-bids`。暂停、恢复、删除用 `yandex.suspend-dynamic-target` 等) |
101
- | Yandex 统一效果、展示、商品广告和其余广告管理 | — | `references/operations/ad-gap.md`(「Yandex 其余广告管理」。`yandex.unified-campaign`、`yandex.shopping-ad`、`yandex.bid-modifier` 等。搜索横幅、交易、首页、固定 CPM 和广告组启停会拒绝) |
101
+ | Yandex 统一效果、展示、商品广告和其余广告管理 | — | `references/operations/ad-gap.md`(「Yandex 其余广告管理」。`yandex.unified-campaign`、`yandex.shopping-ad`、`yandex.ad-callouts`、`yandex.read-keyword-bids`。搜索横幅、交易、首页、固定 CPM 和广告组启停会拒绝。组合广告用 `yandex.responsive-ad`) |
102
102
 
103
103
  ### Google 广告投放
104
104
 
@@ -111,11 +111,11 @@ siluzan-tso -h
111
111
  | 展示广告 / Display / 自适应展示广告(RDA) | — | `references/operations/ad-gap.md`(`google.display-campaign`,新建为暂停)。不要用 `campaign-create` / `ad-create` 伪装 |
112
112
  | 广告系列/组/广告/关键词 **查询** / 拒审字段 | W3 | `references/google-ads/google-ads-read.md` |
113
113
  | 账号封禁 / 暂停 / 付款或身份验证 / 广告或落地页拒登 **申诉** / Merchant Center 关联封禁 | **W14** | `references/google-ads/google-ads-appeal.md`(整改清单 + 英文稿;**不代提交**;禁止编造或换号绕过) |
114
- | 内容排除 / 版位 / 账户否词列表 / 转化口径 / 操作记录 | W3 | `references/google-ads/google-ads-exclusions.md` |
114
+ | 内容排除 / 版位 / 账户否词列表 / 转化口径 / CPA 算错转化 / 操作记录 | W3 | `references/google-ads/google-ads-exclusions.md`。改是否参与出价或收成目标:`references/operations/ad-gap.md` Google 段首 |
115
115
  | 竞价洞察 / 质量得分 / 按日 / 按小时 | W3 | `references/google-ads/google-ads-read.md`(洞察在 `ad auction-insights`;得分和分日分时在 `google-analysis`) |
116
116
  | 共享预算 / 搜索受众 / 投放时段 | W3 | `references/google-ads/google-ads-write.md`(`ad shared-budget`、`ad audience`、`ad schedule-replace`) |
117
117
  | PMax 搜索词 / 品牌列表 / 系列否词 / 网址排除 / 素材 / IP | W3 | `references/google-ads/google-ads-protection.md` |
118
- | 广告系列/组/广告/关键词 **创建·编辑·启停** | W3 | `references/google-ads/google-ads-write.md` |
118
+ | 广告系列/组/广告/关键词 **创建·编辑·启停** / 广告插入项 / 再营销名单 / 按搜索词找新客 / 系列分组 | W3 | `references/google-ads/google-ads-write.md`。插入项、名单、分组和转化价值:`references/operations/ad-gap.md` Google 段首 |
119
119
  | PMax 系列 | W3 | **`assets/pmax-create-template.json`**(先 Read)+ `assets/pmax-create-template.md` + `rules/google-ads-pmax-launch-plan-template.md`(**写代码**投影完整审查稿)+ `references/google-ads/pmax-api.md` + `google-ads-write.md`(PMax 节) |
120
120
  | AI 智投草稿 list/get/update/publish | W4 | `references/google-ads/google-ads-batch.md` |
121
121
  | 拓词 / keyword / 关键词规划 / 月搜索量 / 竞争度 / Keyword Planner | **W5** | `references/analytics/keyword-planner-workflows.md`(**§零·C**;客户背景先 `references/analytics/rag.md`) |
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "slug": "siluzan-tso",
3
- "version": "1.1.71",
4
- "publishedAt": 1794883620853
3
+ "version": "1.1.72",
4
+ "publishedAt": 1794912919105
5
5
  }
@@ -120,7 +120,7 @@ siluzan-tso google-analysis -a <id> --exclude materials,gold-account --json-out
120
120
  | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
121
121
  | `overview` | 总览(实时,可查当天;当天高消耗账号排行首选) |
122
122
  | `keywords` | 关键词;默认 `costGreater=0`(仅有消耗)、`limit=0`(不封顶)、`orderByCost=true`;可用 `--limit` 限制 Top N |
123
- | `search-terms` | 搜索词;默认 `limit=0`(不封顶)、`orderByCost=true`;落盘前过滤 `spend>0`;含 `queryTargetingStatus` / `queryTargetingStatusZh`(已添加/已排除/都没有);可用 `--limit` 限制 Top N |
123
+ | `search-terms` | 搜索广告的搜索词;默认 `limit=0`(不封顶)、`orderByCost=true`;落盘前过滤 `spend>0`;含 `queryTargetingStatus` / `queryTargetingStatusZh`(已添加/已排除/都没有);可用 `--limit` 限制 Top N。同一次还有 `campaigns` 时,CLI 再写 `pmax-search-terms-*.json`:有消耗或展示的效果最大化系列走 `reports/search`,行上有 `spend`,`matchTypeZh` 为「效果最大化」。关键词表和搜索词表都要并进这份 `items[]`。空文件表示没到展示阈值。不要改用 `ad pmax-search-terms`,那条没有花费 |
124
124
  | `campaigns` | 广告系列 |
125
125
  | `campaign-hour` | 系列按小时(行在 `items[]`) |
126
126
  | `ads` | 广告;与 `ad list` 同源 |
@@ -138,7 +138,7 @@ siluzan-tso google-analysis -a <id> --exclude materials,gold-account --json-out
138
138
  | `materials` | 图片+视频拍平进 `items[]`,每行带 `assetType: 'image' \| 'video'` |
139
139
  | `resource-counts` | 结构统计 |
140
140
  | `conversion-actions` | 转化动作 |
141
- | `daily-metrics` | 按日指标(主平台 `GET …/report/media-account/google/account-daily-reports`,`--json-out` 落盘为按日数组)。行上 `conversionsValue` 是账户币种转化价值。**广告诊断报告**中:金额/CPA/转化价值 **保留 2 位小数**,转化/点击/展示为整数;须配趋势**分析**段落(见 `google-ads-diagnosis.md`) |
141
+ | `daily-metrics` | 按日指标(主平台 `GET …/report/media-account/google/account-daily-reports`,`--json-out` 落盘为按日数组)。**广告诊断报告**中:金额/CPA **保留 2 位小数**,转化/点击/展示为整数;须配趋势**分析**段落(见 `google-ads-diagnosis.md`) |
142
142
  | `gold-account` | 黄金账户 |
143
143
  | `ads-index` | 质量指标 |
144
144
  | `final-urls` | 最终到达网址(不传 `--start`/`--end`) |
@@ -162,7 +162,7 @@ siluzan-tso google-analysis -a <id> --exclude materials,gold-account --json-out
162
162
 
163
163
  | 桶 | 维度 | 读法 |
164
164
  | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
165
- | **列表** | `keywords`、`search-terms`、`campaigns`、`campaign-hour`、`ads`、`extensions`、`devices`、`geographic`、`geo-matched`、`campaign-geo`、`campaign-geo-matched`、`geo-targeted`、`campaign-device`、`audience`、`asset-images`、`videos`、`materials`、`daily-metrics`、`conversion-actions` | `d.items[]` |
165
+ | **列表** | `keywords`、`search-terms`、`pmax-search-terms`、`campaigns`、`campaign-hour`、`ads`、`extensions`、`devices`、`geographic`、`geo-matched`、`campaign-geo`、`campaign-geo-matched`、`geo-targeted`、`campaign-device`、`audience`、`asset-images`、`videos`、`materials`、`daily-metrics`、`conversion-actions` | `d.items[]` |
166
166
  | **汇总** | `overview`、`resource-counts`、`dimension-summary`、`gold-account`、`ads-index`、`final-urls`、`campaign-types` | `d.record` |
167
167
 
168
168
  脚本示例(Node)—— 所有维度同一套读法:
@@ -211,9 +211,7 @@ const data = d.record ?? d.items; // record 非空=汇总维度;否则=列表
211
211
 
212
212
  `conversionsValue` 是账户币种的 Google「转化价值」,和 `conversions`(次数)不是一回事。带 `startDate` / `endDate` 时,`keywords`、`search-terms`、`campaigns`、`ads`、`geographic`,以及 `ad keywords` / `ad search-terms` / `ad campaigns` / `ad groups` / `ad list` 的行上会有这个字段。报告要写转化价值或 ROAS 时用它:`ROAS = conversionsValue / spend`(`spend` 为 0 时该格写「—」)。禁止用消耗、点击、转化次数自己算。禁止把系列合计摊到关键词、搜索字词或国家上。账户级三格仍只汇总 `campaigns` 的 `items[]`。
213
213
 
214
- `geographic` 和 `devices` 的 `conversionsValue` 是该行合计(查询含 `metrics.conversions_value`)。国家或设备 ROAS 用该行自己的 `conversionsValue / spend`。若这些行 `conversions` > 0 但 `conversionsValue` 全是 0,而同期 `campaigns` 有转化价值,整列写「未返回」,不要写成 ROAS 0。
215
-
216
- `daily-metrics` 的字段也在,但结束日不是报表当天(UTC+8)时走日快照。快照是下载任务写进去的:当天还没被重新下载过时,`conversionsValue` 会是 0,而转化次数和花费仍有数。这时每日价值写「未返回」,不要写成 ROAS 0。结束日就是报表当天时走现查,返回的非 0 价值可以直接用。受众行使用本行 `conversionsValue`。受众、国家、设备这些行若转化次数大于 0 但价值全是 0、同期系列却有价值,整列写「未返回」。`geo-matched` / `campaign-geo` 没有这项查询,同样写「未返回」。
214
+ `geographic`、`geo-matched`、`campaign-geo`、`geo-targeted`、`devices`、`campaign-device`、`daily-metrics`、`keywords`、`search-terms`、`pmax-search-terms`、`ads`、`audience` 行上的 `conversionsValue` 就是该行的转化价值。有这个数字就按返回值写,0 也写 0;ROAS = 该值 / `spend`(`spend` 为 0 时 ROAS 写「—」)。不要因为值为 0、或同期系列有转化价值,把已经返回的数字改成「未返回」。只有行上没有该字段时才写「未返回」。`campaign-hour`、视频和图片素材的查询没有这项,这些维度才写「未返回」。结束日不是报表当天时,按日读的是日快照,快照里的 0 同样按 0 写。
217
215
 
218
216
  ### CampaignSectionData 关键字段
219
217
 
@@ -137,6 +137,7 @@
137
137
  - **不猜测账户 ID**:`entityId`(UUID,仅 delink/share/reauth/账单)≠ `mediaCustomerId`(`stats`/`balance`/`accounts-digest`/`ad` 的 `-a`)。两者均来自 `list-accounts` 的 `ma.*`。用户已给出媒体账户号时(Google 数字 CID、**Yandex `porg-…`**、Meta `act_…` 等)→ `-a` **原样使用**,再用 `-k` 核验;**禁止**改成 `entityId` / tokenId / 会话里其它 UUID。**禁止**把 `entityId` 传给 `stats -a` / `balance -a` / `accounts-digest -a`。
138
138
  - **媒体类型区分大小写**:`Google`、`TikTok`、`Yandex`、`MetaAd`、`BingV2`。
139
139
  - **CLI 输出忠实**:数值与 ID 须与本次落盘 JSON / stdout 一致,不编造示例 ID;`data` 为空时只说「当前返回无记录」并附 JSON 路径。
140
+ - **「未返回」只表示字段没回来**:行上有 `conversionsValue`(以及其它度量字段)就原样展示,**0 也是返回值,写 0**。禁止因为值为 0、转化次数大于 0、或同期系列有成交额,把已经返回的数字改成「未返回」。只有该字段不在行上,或值是 `null`,才写「未返回」。
140
141
  - **禁止编造平台网页地址**(充值/钱包/开户进度/授权/报告查看等):
141
142
  1. **禁止**凭记忆、训练数据或「看起来像」写出任何完整 `https://…siluzan.com…` / `mysiluzan.com` 链接(含改域名、改路径、补 query)。
142
143
  2. 引导用户打开丝路赞网页时:**必须**当轮执行 `siluzan-tso config show`,用输出中的 **`webUrl`** 作基地址;相对路径**只**能来自当次已 Read 的 reference(如 `finance.md`、`reporting.md`、`setup.md`)中的路径表;拼出后完整链接贴给用户。
@@ -81,7 +81,7 @@
81
81
  - **步骤**:
82
82
  1. **账户核验**:`list-accounts -m Google -k <mediaCustomerId> --json-out <dir>`;无记录则停止并告知用户。
83
83
  2. 确认时间范围;区间 > 3 个月时分段(季度/月)。
84
- 3. **拉数**:用户已指定 Sheet/维度 → 只拉对应 `--sections`(见 `google-period-report-excel.md` 映射表);未指定 → 按 `google-period-report.md` 默认 9 个拉数维(含 `audience`、`negative-keywords`),并可并行追问可选追加。终稿要「转化价值 / 单转化价值 / ROAS」的上期时,再按 excel 规格拉等长上期 `--sections campaigns` 后汇总,禁止把这三格留成「—」。关键词、搜索字词、国家/地区、设备用各自行的 `conversionsValue`(ROAS = 该值 / `spend`),不要用系列汇总值摊下去。这些行(含受众)转化次数大于 0 但价值全是 0、同期系列却有价值,整列写「未返回」。每日趋势在结束日不是报表当天、且价值整天为 0 时同样写「未返回」;结束日是当天的现查非 0 价值照填。
84
+ 3. **拉数**:用户已指定 Sheet/维度 → 只拉对应 `--sections`(见 `google-period-report-excel.md` 映射表);未指定 → 按 `google-period-report.md` 默认 9 个拉数维(含 `audience`、`negative-keywords`),并可并行追问可选追加。关键词或搜索词出现在终稿里时,同一次必须带 `campaigns` 和 `search-terms`,并把落下的 `pmax-search-terms-*.json` 并进搜索词表(效果最大化,行上有消耗)。禁止用 `ad pmax-search-terms` 填消耗。终稿要「转化价值 / 单转化价值 / ROAS」的上期时,再按 excel 规格拉等长上期 `--sections campaigns` 后汇总,禁止把这三格留成「—」。关键词、搜索字词、国家/地区、设备用各自行的 `conversionsValue`(ROAS = 该值 / `spend`),不要用系列汇总值摊下去。这些行(含受众、按日)有这个数字就按返回值写,0 也写 0;没有该字段才写「未返回」。
85
85
  4. **门禁**:对每个 section Read `<section>-<accountId>_*.outline.txt` 后再写脚本。
86
86
  5. 脚本读盘写 `google-period-report.json`(`meta` + `narrative`,`meta.lang` 跟本轮语言);用户要 **Excel** → Agent 脚本写 xlsx(**禁止**宿主第三方 xlsx Skill;**无** CLI excel 子命令;表头跟 `meta.lang`)。
87
87
  6. 默认 HTML:`google-analysis render --data ./google-period-report.json --snapshot-dir ./snap-google --out ./google-period-report.html --lang <zh|en>`。须含账户概览、投放趋势、Top 关键词/系列/地区/受众分布、当前否词名单、优化建议。
@@ -97,7 +97,7 @@
97
97
  6. **有 campaignId 时必做** `ad batch diff`(含投放国家);`ok===false` / exit 2 时按 `missing[].remediateCommand` **自动** `ad geo add` / `ad extension *` 补建,勿反问用户(见 `google-ads-campaign-plan.md` § batch diff 后自动补建)。
98
98
  7. 复核:`ad campaigns` / `ad extension list` 确认系列与扩展齐全。
99
99
  8. **向用户发送 Markdown 创建详情**(硬性):`ad batch diff … --lang <zh|en>` 后把 **`reportMarkdown` 全文**发给用户(`--md-out` / `reportMarkdownFile`);多系列各一份;**禁止**只说「创建完成」。代改过方案时另附修改表(`google-ads-plan-source-fidelity.md`)。见 `agent-conventions.md` §四。
100
- - **精细管理与日常运营**:`ad adgroup-create` / `ad keyword-create` / `ad keyword-negative-create` / `ad ad-create`(拓词辅助见 **W5**);调整用 `ad adgroup-status` / `ad campaign-status` / `ad ad-delete` / `ad keyword-negative-delete`。内容适宜性用 `ad exclusions`,排除版位前先 `ad placements`;关键词拒审看 `ad keywords` 的 `disapprovalReasons`;账户级搜索否词用 `ad negative-list`(不是内容关键字);CPA 口径看 `ad conversion-goals`;谁改了预算看 `ad changes`(最多 30 天)。PMax 抢词先看 `ad pmax-search-terms`,再决定 `ad pmax-brands` 或 `ad pmax-negatives`。详见 `google-ads-exclusions.md` 与 `google-ads-protection.md`。完整参数见 `references/google-ads/google-ads-write.md`;列表复核见 `google-ads-read.md`。写后按 `agent-conventions.md` §四向用户汇报成败(改了什么、是否生效)。
100
+ - **精细管理与日常运营**:`ad adgroup-create` / `ad keyword-create` / `ad keyword-negative-create` / `ad ad-create`(拓词辅助见 **W5**);调整用 `ad adgroup-status` / `ad campaign-status` / `ad ad-delete` / `ad keyword-negative-delete`。内容适宜性用 `ad exclusions`,排除版位前先 `ad placements`;关键词拒审看 `ad keywords` 的 `disapprovalReasons`;账户级搜索否词用 `ad negative-list`(不是内容关键字);CPA 口径看 `ad conversion-goals`;谁改了预算看 `ad changes`(最多 30 天)。PMax 抢词先看同一次 `google-analysis` 落下的 `pmax-search-terms`(命令里要同时有 `campaigns` 和 `search-terms`,行上才有消耗),再决定 `ad pmax-brands` 或 `ad pmax-negatives`。不要用 `ad pmax-search-terms` 看消耗。详见 `google-ads-exclusions.md` 与 `google-ads-protection.md`。完整参数见 `references/google-ads/google-ads-write.md`;列表复核见 `google-ads-read.md`。写后按 `agent-conventions.md` §四向用户汇报成败(改了什么、是否生效)。
101
101
  - **产物**:系列(`ad campaigns` 可见)+ batch(`ad batch get` / `batch diff` 补齐扩展与地域)+ **面向用户的系列创建详情报告**;关键词匹配格式 `running shoes`=广泛 / `"..."`=词组 / `[...]`=精确;结构性写操作须用户确认;写后用成对读命令复核并汇报成败。
102
102
 
103
103
  ---
@@ -52,7 +52,7 @@ siluzan-tso ad negative-list remove -a <accountId> --id <id> --commit "删一条
52
52
 
53
53
  ## 转化口径与操作记录
54
54
 
55
- CPA 异常时先看这个系列出价算哪些转化,不要先改出价。只读。
55
+ CPA 异常时先看这个系列出价算哪些转化,不要先改出价。这里只读。要改是否参与出价,或把几个转化收成一个目标,按 `ad-gap.md` Google 段首。
56
56
 
57
57
  ```bash
58
58
  siluzan-tso ad conversion-goals -a <accountId> [--campaign-id <id>]
@@ -6,13 +6,11 @@
6
6
 
7
7
  ## PMax 搜索词
8
8
 
9
- 必须指定一个 PMax 系列。这不是 `ad search-terms`。
9
+ 要词和消耗时,不要用 `ad pmax-search-terms`。那条接口不返回花费,当前查询还会被 Google 拒绝。
10
10
 
11
- ```bash
12
- siluzan-tso ad pmax-search-terms -a <accountId> --campaign-id <id> --start YYYY-MM-DD --end YYYY-MM-DD
13
- ```
11
+ 同一条 `google-analysis` 里带上 `campaigns` 和 `search-terms`。有消耗或展示的效果最大化系列会再写成 `pmax-search-terms-<账户>_<起止>.json`,来源是 `reports/search`。行上已有 `searchTermText`、`spend`、`campaignName`,`matchTypeZh` 为「效果最大化」。`insights` 是类别汇总,不要写进词表。文件是空的,表示这些词没到展示阈值,不要改去调 `ad pmax-search-terms`,也不要编造搜索词。
14
12
 
15
- 历史大约从 2023-03 起。空列表表示这段没有搜索查询。这张表没有花费,按展示看热度。
13
+ 关键词表、搜索词表、诊断 §08 都要并进这些行,按 `spend` 从高到低。PMax 没有关键词行,不要把它漏在 `keywords` 或 `fullSearchTerms` 外面。stderr 点名没拉到的系列时,写明缺了哪几个,已经写入的系列仍要进表。
16
14
 
17
15
  ## 品牌列表
18
16