@koda-sl/baker-cli 0.111.0-dev.4a58faec8 → 0.111.0-dev.802867580
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 +33 -0
- package/dist/cli.js +1856 -485
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -653,6 +653,39 @@ baker ads google library search-competitors "crm software" --location uk
|
|
|
653
653
|
|
|
654
654
|
---
|
|
655
655
|
|
|
656
|
+
### Staged writes (`baker ads google budgets|campaigns|...`)
|
|
657
|
+
|
|
658
|
+
Write commands **never touch the Google Ads API at stage time**. Each command stages a create/update/pause/resume/remove op against the current chat's draft (`BAKER_CHAT_ID`); the dashboard shows it as a pending "Google Ads" change, and the whole draft applies as one atomic `GoogleAdsService.Mutate` when the chat is published. Feature-flagged per company (`companies.googleAdsWriteEnabled`) — off by default = a fully simulated publish with zero real API calls.
|
|
659
|
+
|
|
660
|
+
Reference not-yet-created resources with `g_temp_*` refs returned by earlier `create` commands (they map to Google's temporary negative-ID resource names inside one atomic batch).
|
|
661
|
+
|
|
662
|
+
```bash
|
|
663
|
+
# Build a Search campaign bottom-up, chaining temp refs
|
|
664
|
+
baker ads google budgets create --customer-id 1234567890 --name "Search budget" --amount 50
|
|
665
|
+
# → { ref: "g_temp_ab12", ... }
|
|
666
|
+
baker ads google campaigns create --customer-id 1234567890 --name "Brand — Search" \
|
|
667
|
+
--channel-type SEARCH --budget-ref g_temp_ab12 --bidding-strategy MANUAL_CPC
|
|
668
|
+
baker ads google ad-groups create --customer-id 1234567890 --name "Brand terms" --campaign-ref g_temp_<campaign>
|
|
669
|
+
baker ads google keywords add --customer-id 1234567890 --ad-group-ref g_temp_<adgroup> --text "brand name" --match-type EXACT
|
|
670
|
+
# Shared negative keyword list → attach to the campaign
|
|
671
|
+
baker ads google keyword-lists create --customer-id 1234567890 --name "Brand exclusions"
|
|
672
|
+
baker ads google keyword-lists add --customer-id 1234567890 --list-ref g_temp_<list> --text "free" --match-type BROAD
|
|
673
|
+
baker ads google keyword-lists attach --customer-id 1234567890 --campaign-ref g_temp_<campaign> --list-ref g_temp_<list>
|
|
674
|
+
# Responsive search ad
|
|
675
|
+
baker ads google ads create --customer-id 1234567890 --ad-group-ref g_temp_<adgroup> \
|
|
676
|
+
--headlines "Fast Widgets,Buy Online,Free Shipping" --descriptions "Best widgets around.,Ships tomorrow." \
|
|
677
|
+
--final-url https://example.com
|
|
678
|
+
|
|
679
|
+
# Review / undo staged changes
|
|
680
|
+
baker ads google draft list
|
|
681
|
+
baker ads google draft remove g_temp_ab12 # cascades to dependents
|
|
682
|
+
baker ads google draft clear
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
Command groups: `budgets`, `campaigns`, `ad-groups`, `keywords` (add/update/remove), `negative-keywords`, `keyword-lists`, `ads`, `assets`, `audiences`, `conversions`, `bidding-strategies`, `labels`, `campaign-criteria`, and `draft`. Amounts are in major currency units (converted to micros). Money/bids: `--amount`, `--cpc-bid`, `--target-cpa` take major units; `--target-roas` a ratio. Less-common ops accept a `--file <payload.json>` (flags override file keys). Updates target a resource name or bare id as the positional argument; a target that names an op staged earlier **amends it in place**.
|
|
686
|
+
|
|
687
|
+
---
|
|
688
|
+
|
|
656
689
|
### Caching
|
|
657
690
|
|
|
658
691
|
Google Ads data is cached at two levels:
|