@koda-sl/baker-cli 0.347.0 → 0.349.0-dev.c05788ee3
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 +7 -5
- package/dist/{chunk-YBD3W4M7.js → chunk-CEFJ5YSG.js} +4 -4
- package/dist/chunk-CEFJ5YSG.js.map +1 -0
- package/dist/cli.js +190 -19
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-YBD3W4M7.js.map +0 -1
package/README.md
CHANGED
|
@@ -304,7 +304,7 @@ Read it before interpreting any null. Field coverage is folded page by page on t
|
|
|
304
304
|
}
|
|
305
305
|
```
|
|
306
306
|
|
|
307
|
-
Never total or count from a response carrying it — re-run with `--all --limit
|
|
307
|
+
Never total or count from a response carrying it — re-run with `--all --limit 8192 --out data.csv` (one read returns at most 8,192 rows; split a bigger data set into narrower queries — a shorter date range or one campaign each) and check the re-run came back without the warning. A read that returns one row by construction — `FROM customer` with no segment selected, such as `--preset account-summary` — has no page to fill, so it never carries `TRUNCATED_RESULTS`, nor `CONVERSION_MIX`, since one account-wide row has no campaigns to total or compare. Warnings reach every output format, so no `--output` choice can hide one:
|
|
308
308
|
|
|
309
309
|
| `--output` | Where warnings land |
|
|
310
310
|
|------------|---------------------|
|
|
@@ -343,11 +343,11 @@ The same lines also go to stderr. A read with nothing to report prints none of i
|
|
|
343
343
|
|-----------------|--------------------------------------------------------------|
|
|
344
344
|
| `--customer-id` | Google Ads customer ID (10 digits, no dashes). Falls back to `BAKER_GOOGLE_ADS_CUSTOMER_ID` env var. |
|
|
345
345
|
| `--preset` | Named query template (see presets below) |
|
|
346
|
-
| `--date-range` | Override preset date range (LAST_7_DAYS, LAST_30_DAYS, etc.) |
|
|
346
|
+
| `--date-range` | Override preset date range: a Google literal (LAST_7_DAYS, LAST_30_DAYS, LAST_MONTH, etc.) or `BETWEEN 'YYYY-MM-DD' AND 'YYYY-MM-DD'` — there is no LAST_90_DAYS |
|
|
347
347
|
| `--include-paused` | Include paused entities in preset results. Off by default: presets return only actually-serving entities (enabled campaign **and** ad group **and** ad). Google Ads has no single serving flag, so the whole chain must be `ENABLED` for an entity to serve. |
|
|
348
|
-
| `--limit` | Max rows per page (default 200)
|
|
348
|
+
| `--limit` | Max rows per page (default 200, at most 8,192) |
|
|
349
349
|
| `--cursor` | Pagination cursor from previous response |
|
|
350
|
-
| `--all` | Auto-paginate all results. Exhausts the pages, not the statement's `LIMIT` — pair it with a
|
|
350
|
+
| `--all` | Auto-paginate all results. Exhausts the pages, not the statement's `LIMIT` — pair it with a `LIMIT` in the statement above the expected row count (at most 8,192 — split bigger reads into narrower queries), and a read that still fills its cap is flagged `TRUNCATED_RESULTS` either way |
|
|
351
351
|
| `--out` | Write data to file (format from extension: .csv, .jsonl, .json) |
|
|
352
352
|
| `--append` | Append to existing file (skip CSV headers) |
|
|
353
353
|
| `--output` | Output format: `json` \| `csv` \| `jsonl` \| `md` |
|
|
@@ -391,6 +391,8 @@ The CLI rejects or automatically corrects common GAQL mistakes before hitting th
|
|
|
391
391
|
| `shopping_performance_view.product_*` | Rewrites to `segments.product_*` | Field renamed |
|
|
392
392
|
| `campaign.status = 'ACTIVE'` | Rewrites to `= 'ENABLED'` | Enum corrected |
|
|
393
393
|
| `segments.conversion_action_name` with `metrics.cost_micros` | Rejects; split into separate conversion-action and spend queries | `INCOMPATIBLE_FIELDS` with `fix.action: "split_query"` |
|
|
394
|
+
| `DURING` with a literal Google does not accept (`LAST_90_DAYS`, `LAST_12_MONTHS`, `THIS_YEAR` …) | Rejects before any request; `DURING` takes only `TODAY`, `YESTERDAY`, `LAST_7_DAYS`, `LAST_14_DAYS`, `LAST_30_DAYS`, `LAST_BUSINESS_WEEK`, `THIS_MONTH`, `LAST_MONTH`, `THIS_WEEK_SUN_TODAY`, `THIS_WEEK_MON_TODAY`, `LAST_WEEK_SUN_SAT`, `LAST_WEEK_MON_SUN` | `INVALID_DATE_RANGE`, with `fix.correctedCommand` spelling the same window as `BETWEEN 'YYYY-MM-DD' AND 'YYYY-MM-DD'` |
|
|
395
|
+
| `--limit` outside 1–8,192, or a statement `LIMIT` above 8,192 | Rejects before any request — one read returns at most 8,192 rows | `VALIDATION_ERROR` naming the cap and how to split a bigger read; a statement `LIMIT` also gets `fix.correctedCommand` at `LIMIT 8192` |
|
|
394
396
|
| `FROM ad_group_criterion` without `negative` field | Warns | `"ad_group_criterion returns BOTH positive and negative keywords. Use --preset positive-keywords or negative-keywords."` |
|
|
395
397
|
|
|
396
398
|
Auto-fixed queries proceed normally. Warnings appear in the response:
|
|
@@ -740,7 +742,7 @@ Use `--no-cache` on any command to bypass **both** the local file cache and the
|
|
|
740
742
|
|------|-----------|---------|
|
|
741
743
|
| `FIELD_NOT_FOUND` | No | Invalid field in GAQL query |
|
|
742
744
|
| `WRONG_RESOURCE` | No | Field queried from wrong resource |
|
|
743
|
-
| `INVALID_OPERATOR` | No | Unsupported operator (e.g. CONTAINS) |
|
|
745
|
+
| `INVALID_OPERATOR` | No | Unsupported operator (e.g. CONTAINS(), or IS NOT NULL on a list field such as `final_urls` — the fix names the operators Google accepts) |
|
|
744
746
|
| `CUSTOMER_NOT_FOUND` | No | Invalid customer ID — run `baker ads google accounts` to find valid IDs |
|
|
745
747
|
| `MISSING_MANAGER_ID` | No | Account not accessible (may need MCC login-customer-id) |
|
|
746
748
|
| `INCOMPATIBLE_FIELDS` | No | Fields can't be in same query |
|
|
@@ -20,9 +20,9 @@ import {
|
|
|
20
20
|
shouldEscalate
|
|
21
21
|
} from "./chunk-2OKSJNLA.js";
|
|
22
22
|
|
|
23
|
-
//
|
|
23
|
+
// ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/index.js
|
|
24
24
|
var require_safe_stable_stringify = __commonJS({
|
|
25
|
-
"
|
|
25
|
+
"../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/index.js"(exports, module) {
|
|
26
26
|
"use strict";
|
|
27
27
|
var { hasOwnProperty } = Object.prototype;
|
|
28
28
|
var stringify = configure2();
|
|
@@ -1114,7 +1114,7 @@ function resolveAdaptFormats(params) {
|
|
|
1114
1114
|
return params.formats ?? [];
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
|
-
//
|
|
1117
|
+
// ../../.pnpm-store/v10/links/@/safe-stable-stringify/2.5.0/766ad107c42df28eeadaf0ac2f9089c8a9e200f6ba0b2b1a817b8d536cbdcc49/node_modules/safe-stable-stringify/esm/wrapper.js
|
|
1118
1118
|
var import__ = __toESM(require_safe_stable_stringify(), 1);
|
|
1119
1119
|
var configure = import__.default.configure;
|
|
1120
1120
|
var wrapper_default = import__.default;
|
|
@@ -9805,4 +9805,4 @@ export {
|
|
|
9805
9805
|
defaultRegistry,
|
|
9806
9806
|
createEngineFromEnv
|
|
9807
9807
|
};
|
|
9808
|
-
//# sourceMappingURL=chunk-
|
|
9808
|
+
//# sourceMappingURL=chunk-CEFJ5YSG.js.map
|