@koda-sl/baker-cli 0.527.0 → 0.528.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -218,6 +218,7 @@ baker ads performance currency # the reporting currency, why
218
218
  baker ads performance currency set USD # staged: the default currency for everyone (--clear to go back)
219
219
  baker ads performance entities --level ad --sort cost_per_result
220
220
  baker ads performance entities --level ad --entity-ids <id,id> # only these rows
221
+ baker ads performance entities --level campaign --include-idle # serving: whether each really delivers (a paused parent, nothing on below); below: its children, on and live
221
222
  baker ads performance entities --platforms google --compare # each row against the settled days before; what stopped, and who stopped it
222
223
  baker ads performance entity <id> --platform meta --level ad_group # one entity + verdict before changing it
223
224
  baker ads performance changes --days 14
@@ -38,11 +38,11 @@ Full guides: __tooling__/docs/tools/baker/ads-<platform>.md (google|meta|linkedi
38
38
  linkedin: () => import("./linkedin-5PYG5HEM.js").then((m) => m.linkedinCommand),
39
39
  x: () => import("./x-EMLFCHSG.js").then((m) => m.xCommand),
40
40
  chatgpt: () => import("./chatgpt-S5EVEKYV.js").then((m) => m.chatgptCommand),
41
- performance: () => import("./performance-L3Q57H4H.js").then((m) => m.performanceCommand),
41
+ performance: () => import("./performance-6XFKDJGY.js").then((m) => m.performanceCommand),
42
42
  terms: () => import("./terms-X4OJWTQH.js").then((m) => m.termsCommand)
43
43
  }
44
44
  });
45
45
  export {
46
46
  adsCommand
47
47
  };
48
- //# sourceMappingURL=ads-F2PURRHL.js.map
48
+ //# sourceMappingURL=ads-6ESCXPHK.js.map
package/dist/cli.js CHANGED
@@ -170,7 +170,7 @@ Introspection: Run 'baker schema <command>' to inspect argument schemas.`
170
170
  capabilities: () => import("./capabilities-BEZXR2FZ.js").then((m) => m.capabilitiesCommand),
171
171
  actions: () => import("./actions-33IZOT5C.js").then((m) => m.actionsCommand),
172
172
  "scheduled-agents": () => import("./scheduled-agents-EPPP4SCZ.js").then((m) => m.scheduledAgentsCommand),
173
- ads: () => import("./ads-F2PURRHL.js").then((m) => m.adsCommand),
173
+ ads: () => import("./ads-6ESCXPHK.js").then((m) => m.adsCommand),
174
174
  brand: () => import("./brand-GBP4OEJI.js").then((m) => m.brandCommand),
175
175
  analytics: () => import("./analytics-OUNKG2FW.js").then((m) => m.analyticsCommand),
176
176
  experiment: () => import("./experiment-MO6MT6OJ.js").then((m) => m.experimentCommand),
@@ -2257,6 +2257,7 @@ function compactEntityRow(row) {
2257
2257
  budgetDaily: row.budgetDaily === null ? null : roundNumber(row.budgetDaily),
2258
2258
  budgetLifetime: row.budgetLifetime === null ? null : roundNumber(row.budgetLifetime)
2259
2259
  }),
2260
+ ...compactServing(row.serving),
2260
2261
  metrics: compactMetrics(row.metrics),
2261
2262
  ratios: compactRatios(row.ratios),
2262
2263
  ...entityPath(row) ? { path: entityPath(row) } : {},
@@ -2267,6 +2268,14 @@ function compactEntityRow(row) {
2267
2268
  ...compactSearchParts(row)
2268
2269
  };
2269
2270
  }
2271
+ function compactServing(serving) {
2272
+ if (!serving) return {};
2273
+ const { children } = serving;
2274
+ return {
2275
+ serving: serving.state,
2276
+ ...children ? { below: { level: children.level, total: children.total, on: children.active, live: children.live } } : {}
2277
+ };
2278
+ }
2270
2279
  function compactSearchParts(row) {
2271
2280
  return {
2272
2281
  ...dropEmpty({ campaignKind: row.campaignKind, segment: row.segment }),
@@ -5302,7 +5311,7 @@ var overviewCommand = report({
5302
5311
  var entitiesCommand = report({
5303
5312
  name: "entities",
5304
5313
  schemaName: "entities",
5305
- schemaDescription: `Campaigns, ad groups / ad sets, ads or keywords across platforms, ranked (default by spend), with metrics, budget, first delivery (beforeHistory: it ran before the stored history starts) and peer shares against its parent. Paged with --limit/--offset; totalRows counts every match. ${STORE_NOTE}`,
5314
+ schemaDescription: `Campaigns, ad groups / ad sets, ads or keywords across platforms, ranked (default by spend), with metrics, budget, first delivery (beforeHistory: it ran before the stored history starts) and peer shares against its parent. status is its own switch; serving says whether it really delivers given its parents and children (campaign_off, ad_group_off, off, no_children, children_off) and below counts a campaign's or ad set's children (on, live). Paged with --limit/--offset; totalRows counts every match. ${STORE_NOTE}`,
5306
5315
  help: "Campaigns, ad groups, ads or keywords ranked. Example: baker ads performance entities --level ad --sort cost_per_result --order asc",
5307
5316
  path: "entities",
5308
5317
  args: ENTITIES_ARGS,
@@ -5553,4 +5562,4 @@ Full guide: __tooling__/docs/tools/baker/ads-performance.md`
5553
5562
  export {
5554
5563
  performanceCommand
5555
5564
  };
5556
- //# sourceMappingURL=performance-L3Q57H4H.js.map
5565
+ //# sourceMappingURL=performance-6XFKDJGY.js.map