From 753f3e612c9ce3f7efb318e2e3f6af22f6baff55 Mon Sep 17 00:00:00 2001 From: Ali Hesari Date: Mon, 23 Nov 2026 23:16:42 +0100 Subject: [PATCH 1/2] refactor(ads)!: remove ads tree, catalogs, library and the Google keyword, asset and recommendation commands --- internal/cmd/ads.go | 50 +---- internal/cmd/ads_extras.go | 157 --------------- internal/cmd/ads_google.go | 388 +------------------------------------ internal/cmd/cli_test.go | 38 ---- 4 files changed, 4 insertions(+), 629 deletions(-) delete mode 100644 internal/cmd/ads_extras.go diff --git a/internal/cmd/ads.go b/internal/cmd/ads.go index 0422a16..b7047ff 100644 --- a/internal/cmd/ads.go +++ b/internal/cmd/ads.go @@ -16,17 +16,14 @@ func init() { register(newAdsCmd) } func newAdsCmd(state *State) *cobra.Command { cmd := &cobra.Command{ Use: "ads", - Short: "Inspect campaigns and catalogs, change status, read insights, leads, the ad archive and ad comments, and track conversions", + Short: "Change status, read insights, leads and ad comments, and track conversions", } cmd.AddCommand( newAdsNetworksCmd(state), - newAdsTreeCmd(state), newAdsStatusCmd(state, "pause", fopost.AdStatusPaused), newAdsStatusCmd(state, "resume", fopost.AdStatusActive), newAdsInsightsCmd(state), newAdsLeadsCmd(state), - newAdsCatalogsCmd(state), - newAdsLibraryCmd(state), newAdsGoogleCmd(state), newAdsTrackingCmd(state), newAdsIdentitiesCmd(state), @@ -106,51 +103,6 @@ func minorAmount(minor *int) string { return fmt.Sprintf("%d.%02d", *minor/100, *minor%100) } -func newAdsTreeCmd(state *State) *cobra.Command { - var connection string - cmd := &cobra.Command{ - Use: "tree ", - Short: "Show every campaign on an ad account with its ad sets and ads", - Args: cobra.ExactArgs(1), - RunE: func(cmd *cobra.Command, args []string) error { - if connection == "" { - return usageErrorf("--connection is required") - } - client, err := state.Client() - if err != nil { - return err - } - resolved, err := state.Resolved() - if err != nil { - return err - } - tree, err := client.Ads.Tree(cmd.Context(), args[0], &fopost.AdObjectParams{ - WorkspaceID: resolved.Workspace, - ConnectionID: connection, - }) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(tree, func() { - rows := [][]string{} - for _, campaign := range tree.Campaigns { - rows = append(rows, []string{"campaign", campaign.ID, output.Truncate(campaign.Name, 32), campaign.Status, minorAmount(campaign.BudgetMinor)}) - for _, set := range campaign.AdSets { - rows = append(rows, []string{" ad set", set.ID, output.Truncate(set.Name, 32), set.Status, minorAmount(set.BudgetMinor)}) - for _, ad := range set.Ads { - rows = append(rows, []string{" ad", ad.ID, output.Truncate(ad.Name, 32), ad.Status, "-"}) - } - } - } - printer.Table([]string{"level", "id", "name", "status", "budget"}, rows) - }) - }, - } - cmd.Flags().StringVar(&connection, "connection", "", "Meta Ads connection id (required)") - return cmd -} - func newAdsStatusCmd(state *State, verb, status string) *cobra.Command { var connection string var campaigns, adSets, ads []string diff --git a/internal/cmd/ads_extras.go b/internal/cmd/ads_extras.go deleted file mode 100644 index 42849fc..0000000 --- a/internal/cmd/ads_extras.go +++ /dev/null @@ -1,157 +0,0 @@ -package cmd - -import ( - "strconv" - "strings" - - fopost "github.com/fopost/fopost-go" - "github.com/spf13/cobra" - - "github.com/fopost/fopost-cli/internal/output" -) - -func count(n *int) string { - if n == nil { - return "-" - } - return strconv.Itoa(*n) -} - -// newAdsCatalogsCmd lists the product catalogs a connection reaches, and the -// product sets inside one. A catalog ad runs from a set, not the whole catalog. -func newAdsCatalogsCmd(state *State) *cobra.Command { - var connection, catalog string - cmd := &cobra.Command{ - Use: "catalogs", - Short: "List product catalogs, or the product sets in one", - Example: strings.Join([]string{ - " fopost ads catalogs --connection conn_1", - " fopost ads catalogs --connection conn_1 --catalog 500123456789", - }, "\n"), - RunE: func(cmd *cobra.Command, args []string) error { - if connection == "" { - return usageErrorf("--connection is required") - } - client, err := state.Client() - if err != nil { - return err - } - resolved, err := state.Resolved() - if err != nil { - return err - } - params := &fopost.AdObjectParams{ - WorkspaceID: resolved.Workspace, - ConnectionID: connection, - } - printer := state.Printer() - - if catalog != "" { - sets, err := client.Ads.ProductSets(cmd.Context(), catalog, params) - if err != nil { - return err - } - return printer.Value(sets, func() { - rows := [][]string{} - for _, set := range sets { - rows = append(rows, []string{ - set.ID, - output.Truncate(set.Name, 40), - count(set.ProductCount), - }) - } - printer.Table([]string{"id", "name", "products"}, rows) - }) - } - - result, err := client.Ads.Catalogs(cmd.Context(), params) - if err != nil { - return err - } - return printer.Value(result.Catalogs, func() { - rows := [][]string{} - for _, c := range result.Catalogs { - rows = append(rows, []string{ - c.ID, - output.Truncate(c.Name, 40), - c.Vertical, - count(c.ProductCount), - }) - } - printer.Table([]string{"id", "name", "vertical", "products"}, rows) - }) - }, - } - cmd.Flags().StringVar(&connection, "connection", "", "Meta Ads connection id (required)") - cmd.Flags().StringVar(&catalog, "catalog", "", "Show the product sets in this catalog instead") - return cmd -} - -// newAdsLibraryCmd searches the public ad archive. Results are read live on -// every call and stored nowhere, so an ad that stops running is simply absent -// from the next search. -func newAdsLibraryCmd(state *State) *cobra.Command { - var connection, country, page string - var limit int - cmd := &cobra.Command{ - Use: "library [keyword]", - Short: "Search the public ad archive for ads anyone is running", - Args: cobra.MaximumNArgs(1), - Example: strings.Join([]string{ - " fopost ads library --connection conn_1 --country US \"running shoes\"", - " fopost ads library --connection conn_1 --country GB --page 1234567890", - }, "\n"), - RunE: func(cmd *cobra.Command, args []string) error { - if connection == "" { - return usageErrorf("--connection is required") - } - keyword := "" - if len(args) == 1 { - keyword = args[0] - } - if keyword == "" && page == "" { - return usageErrorf("search by keyword or by --page") - } - client, err := state.Client() - if err != nil { - return err - } - resolved, err := state.Resolved() - if err != nil { - return err - } - params := &fopost.LibraryParams{ - WorkspaceID: resolved.Workspace, - ConnectionID: connection, - Countries: []string{country}, - Q: keyword, - Limit: limit, - } - if page != "" { - params.PageIDs = []string{page} - } - result, err := client.Ads.Library(cmd.Context(), params) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(result.Entries, func() { - rows := [][]string{} - for _, entry := range result.Entries { - rows = append(rows, []string{ - entry.ID, - output.Truncate(entry.PageName, 28), - output.Truncate(strings.Join(entry.Bodies, " · "), 48), - strings.Join(entry.PublisherPlatforms, ","), - }) - } - printer.Table([]string{"id", "page", "copy", "platforms"}, rows) - }) - }, - } - cmd.Flags().StringVar(&connection, "connection", "", "Meta Ads connection id (required)") - cmd.Flags().StringVar(&country, "country", "US", "Two-letter code the ad reached") - cmd.Flags().StringVar(&page, "page", "", "Search one Page instead of a keyword") - cmd.Flags().IntVar(&limit, "limit", 25, "How many entries to return, 1-100") - return cmd -} diff --git a/internal/cmd/ads_google.go b/internal/cmd/ads_google.go index a12ce30..9a31509 100644 --- a/internal/cmd/ads_google.go +++ b/internal/cmd/ads_google.go @@ -1,9 +1,6 @@ package cmd import ( - "fmt" - "strings" - fopost "github.com/fopost/fopost-go" "github.com/spf13/cobra" @@ -13,18 +10,11 @@ import ( func newAdsGoogleCmd(state *State) *cobra.Command { cmd := &cobra.Command{ Use: "google", - Short: "Keywords, assets and GAQL on a Google Ads connection", - Long: "The Search surface no other network has. Campaigns, ad groups, ads and\n" + - "insights are on the other ads commands and work across networks.", + Short: "Conversion actions and GAQL on a Google Ads connection", + Long: "What only Google has. Insights are on the other ads commands and work\n" + + "across networks.", } cmd.AddCommand( - newGoogleRecommendationsCmd(state), - newGoogleOptimizationScoreCmd(state), - newGoogleKeywordsCmd(state), - newGoogleKeywordIdeasCmd(state), - newGoogleSearchTermsCmd(state), - newGoogleAssetsCmd(state), - newGoogleAssetGroupsCmd(state), newGoogleConversionsCmd(state), newGoogleQueryCmd(state), ) @@ -61,232 +51,6 @@ func (f *googleFlags) scope(state *State) (fopost.GoogleScope, error) { }, nil } -func newGoogleKeywordsCmd(state *State) *cobra.Command { - flags := &googleFlags{} - var adGroup string - cmd := &cobra.Command{ - Use: "keywords", - Short: "List the keywords on an account, or on one ad group", - RunE: func(cmd *cobra.Command, _ []string) error { - client, err := state.Client() - if err != nil { - return err - } - scope, err := flags.scope(state) - if err != nil { - return err - } - var params *fopost.ListGoogleKeywordsParams - if adGroup != "" { - params = &fopost.ListGoogleKeywordsParams{AdGroupID: adGroup} - } - keywords, err := client.GoogleAds.Keywords(cmd.Context(), scope, params) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(keywords, func() { - rows := [][]string{} - for _, keyword := range keywords { - rows = append(rows, []string{ - keyword.ID, - output.Truncate(keyword.Text, 32), - keyword.MatchType, - keyword.Status, - minorAmount(keyword.CPCBidMinor), - }) - } - printer.Table([]string{"id", "keyword", "match", "status", "bid"}, rows) - }) - }, - } - flags.bind(cmd) - cmd.Flags().StringVar(&adGroup, "ad-group", "", "Limit to one ad group") - return cmd -} - -func newGoogleKeywordIdeasCmd(state *State) *cobra.Command { - flags := &googleFlags{} - var seeds []string - var url string - cmd := &cobra.Command{ - Use: "keyword-ideas", - Short: "Find keywords to bid on, from seed terms or a landing page", - RunE: func(cmd *cobra.Command, _ []string) error { - if len(seeds) == 0 && url == "" { - return usageErrorf("give at least one --seed or a --url") - } - client, err := state.Client() - if err != nil { - return err - } - scope, err := flags.scope(state) - if err != nil { - return err - } - ideas, err := client.GoogleAds.KeywordIdeas(cmd.Context(), &fopost.GoogleKeywordIdeasRequest{ - GoogleScope: scope, - Seeds: seeds, - URL: url, - }) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(ideas, func() { - rows := [][]string{} - for _, idea := range ideas { - rows = append(rows, []string{ - output.Truncate(idea.Text, 40), - fmt.Sprintf("%d", idea.AvgMonthlySearches), - output.Dash(idea.Competition), - }) - } - printer.Table([]string{"keyword", "searches", "competition"}, rows) - }) - }, - } - flags.bind(cmd) - cmd.Flags().StringSliceVar(&seeds, "seed", nil, "A seed keyword; repeatable") - cmd.Flags().StringVar(&url, "url", "", "A landing page to read ideas from") - return cmd -} - -func newGoogleSearchTermsCmd(state *State) *cobra.Command { - flags := &googleFlags{} - var since, until string - cmd := &cobra.Command{ - Use: "search-terms", - Short: "Read what people actually searched, with what each term earned", - RunE: func(cmd *cobra.Command, _ []string) error { - if since == "" || until == "" { - return usageErrorf("--since and --until are required") - } - client, err := state.Client() - if err != nil { - return err - } - scope, err := flags.scope(state) - if err != nil { - return err - } - terms, err := client.GoogleAds.SearchTerms( - cmd.Context(), scope, fopost.GoogleDateRange{Since: since, Until: until}) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(terms, func() { - rows := [][]string{} - for _, term := range terms { - spend := term.Metrics.SpendMinor - rows = append(rows, []string{ - output.Truncate(term.Term, 40), - output.Dash(term.Status), - fmt.Sprintf("%d", term.Metrics.Impressions), - fmt.Sprintf("%d", term.Metrics.Clicks), - minorAmount(&spend), - }) - } - printer.Table([]string{"term", "status", "impressions", "clicks", "spend"}, rows) - }) - }, - } - flags.bind(cmd) - cmd.Flags().StringVar(&since, "since", "", "Start date, YYYY-MM-DD (required)") - cmd.Flags().StringVar(&until, "until", "", "End date, YYYY-MM-DD (required)") - return cmd -} - -func newGoogleAssetsCmd(state *State) *cobra.Command { - flags := &googleFlags{} - cmd := &cobra.Command{ - Use: "assets", - Short: "List sitelinks, callouts and snippets, and where each one is attached", - RunE: func(cmd *cobra.Command, _ []string) error { - client, err := state.Client() - if err != nil { - return err - } - scope, err := flags.scope(state) - if err != nil { - return err - } - result, err := client.GoogleAds.Assets(cmd.Context(), scope) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(result, func() { - attached := map[string]int{} - for _, link := range result.Links { - attached[link.AssetID]++ - } - rows := [][]string{} - for _, asset := range result.Assets { - where := "library" - if count := attached[asset.ID]; count > 0 { - where = fmt.Sprintf("%d place(s)", count) - } - rows = append(rows, []string{ - asset.ID, - asset.Type, - output.Truncate(asset.Text, 28), - output.Dash(asset.FinalURL), - where, - }) - } - printer.Table([]string{"id", "type", "text", "destination", "attached"}, rows) - }) - }, - } - flags.bind(cmd) - return cmd -} - -func newGoogleAssetGroupsCmd(state *State) *cobra.Command { - flags := &googleFlags{} - var campaign string - cmd := &cobra.Command{ - Use: "asset-groups", - Short: "List Performance Max asset groups", - RunE: func(cmd *cobra.Command, _ []string) error { - client, err := state.Client() - if err != nil { - return err - } - scope, err := flags.scope(state) - if err != nil { - return err - } - var params *fopost.ListGoogleAssetGroupsParams - if campaign != "" { - params = &fopost.ListGoogleAssetGroupsParams{CampaignID: campaign} - } - groups, err := client.GoogleAds.AssetGroups(cmd.Context(), scope, params) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(groups, func() { - rows := [][]string{} - for _, group := range groups { - rows = append(rows, []string{ - group.ID, - output.Truncate(group.Name, 32), - group.Status, - output.Dash(strings.Join(group.FinalURLs, ", ")), - }) - } - printer.Table([]string{"id", "name", "status", "destination"}, rows) - }) - }, - } - flags.bind(cmd) - cmd.Flags().StringVar(&campaign, "campaign", "", "Limit to one campaign") - return cmd -} - func newGoogleConversionsCmd(state *State) *cobra.Command { flags := &googleFlags{} cmd := &cobra.Command{ @@ -355,149 +119,3 @@ func newGoogleQueryCmd(state *State) *cobra.Command { flags.bind(cmd) return cmd } - -func newGoogleRecommendationsCmd(state *State) *cobra.Command { - flags := &googleFlags{} - var types []string - var apply, dismiss []string - var yes bool - cmd := &cobra.Command{ - Use: "recommendations", - Short: "Read, apply or dismiss what Google suggests for the account", - Long: "Without --apply or --dismiss this lists what Google suggests, with the\n" + - "impact it projects. Applying one changes what the live account serves or bids.", - RunE: func(cmd *cobra.Command, _ []string) error { - client, err := state.Client() - if err != nil { - return err - } - scope, err := flags.scope(state) - if err != nil { - return err - } - printer := state.Printer() - - if len(apply) > 0 && len(dismiss) > 0 { - return usageErrorf("give --apply or --dismiss, not both") - } - - if len(apply) > 0 || len(dismiss) > 0 { - ids := apply - verb := "Applied" - run := client.GoogleAds.ApplyRecommendations - if len(dismiss) > 0 { - ids, verb, run = dismiss, "Dismissed", client.GoogleAds.DismissRecommendations - } - if !yes { - if err := confirm(state, fmt.Sprintf( - "%s %d recommendation(s) on %s?", verb, len(ids), flags.customer)); err != nil { - return err - } - } - count, err := run(cmd.Context(), &fopost.GoogleRecommendationsRequest{ - GoogleScope: scope, - IDs: ids, - }) - if err != nil { - return err - } - return printer.Value(map[string]int{strings.ToLower(verb): count}, func() { - printer.Success("%s %d recommendation(s)", verb, count) - }) - } - - rows, err := client.GoogleAds.Recommendations(cmd.Context(), scope, types) - if err != nil { - return err - } - return printer.Value(rows, func() { - table := [][]string{} - for _, row := range rows { - table = append(table, []string{ - row.ID, - row.Type, - deltaOf(impactClicks(row)), - deltaOf(impactConversions(row)), - }) - } - printer.Table([]string{"id", "type", "clicks", "conversions"}, table) - }) - }, - } - flags.bind(cmd) - cmd.Flags().StringSliceVar(&types, "type", nil, "Limit to a recommendation type; repeatable") - cmd.Flags().StringSliceVar(&apply, "apply", nil, "Apply this recommendation id; repeatable") - cmd.Flags().StringSliceVar(&dismiss, "dismiss", nil, "Dismiss this recommendation id; repeatable") - cmd.Flags().BoolVarP(&yes, "yes", "y", false, "skip the confirmation prompt") - return cmd -} - -func impactClicks(row fopost.GoogleRecommendation) (*float64, *float64) { - if row.Impact == nil { - return nil, nil - } - return row.Impact.BaseClicks, row.Impact.PotentialClicks -} - -func impactConversions(row fopost.GoogleRecommendation) (*float64, *float64) { - if row.Impact == nil { - return nil, nil - } - return row.Impact.BaseConversions, row.Impact.PotentialConversions -} - -// deltaOf renders what applying a recommendation would move the metric by. -func deltaOf(base, potential *float64) string { - if base == nil || potential == nil { - return "-" - } - change := *potential - *base - if change >= 0 { - return fmt.Sprintf("+%.1f", change) - } - return fmt.Sprintf("%.1f", change) -} - -func newGoogleOptimizationScoreCmd(state *State) *cobra.Command { - flags := &googleFlags{} - cmd := &cobra.Command{ - Use: "optimization-score", - Short: "Read the account's optimization score and each campaign's", - RunE: func(cmd *cobra.Command, _ []string) error { - client, err := state.Client() - if err != nil { - return err - } - scope, err := flags.scope(state) - if err != nil { - return err - } - score, err := client.GoogleAds.OptimizationScore(cmd.Context(), scope) - if err != nil { - return err - } - printer := state.Printer() - return printer.Value(score, func() { - printer.Line("Account: %s", percentOf(score.Score)) - rows := [][]string{} - for _, campaign := range score.Campaigns { - rows = append(rows, []string{ - campaign.ID, - output.Truncate(campaign.Name, 40), - percentOf(campaign.Score), - }) - } - printer.Table([]string{"id", "campaign", "score"}, rows) - }) - }, - } - flags.bind(cmd) - return cmd -} - -func percentOf(score *float64) string { - if score == nil { - return "-" - } - return fmt.Sprintf("%.0f%%", *score*100) -} diff --git a/internal/cmd/cli_test.go b/internal/cmd/cli_test.go index fda17dc..0a8b71d 100644 --- a/internal/cmd/cli_test.go +++ b/internal/cmd/cli_test.go @@ -634,44 +634,6 @@ func TestAccountsMoveBlockedExitsWithAnError(t *testing.T) { } } -func TestAdsTreeSendsTheConnectionAndPrintsEveryLevel(t *testing.T) { - isolate(t) - var query string - api := newFakeAPI(t, func(w http.ResponseWriter, r *http.Request) { - query = r.URL.RawQuery - json.NewEncoder(w).Encode(map[string]any{"data": map[string]any{ - "adAccountId": "act_1", - "campaigns": []any{map[string]any{ - "id": "c_1", "name": "Launch", "status": "ACTIVE", "budgetMinor": nil, - "adSets": []any{map[string]any{ - "id": "s_1", "name": "US", "status": "ACTIVE", "budgetMinor": 5000, - "ads": []any{map[string]any{"id": "a_1", "name": "Hero", "status": "PAUSED"}}, - }}, - }}, - }}) - }) - if err := config.Save(&config.File{APIKey: "fp_k", BaseURL: api.URL, Workspace: "ws_1"}); err != nil { - t.Fatal(err) - } - - if _, _, code := run(t, "", "ads", "tree", "act_1"); code != ExitUsage { - t.Fatalf("exit = %d without --connection, want %d", code, ExitUsage) - } - stdout, stderr, code := run(t, "", "ads", "tree", "act_1", "--connection", "conn_1") - if code != ExitOK { - t.Fatalf("exit = %d: %s", code, stderr) - } - api.find(t, http.MethodGet, "/ads/accounts/act_1/tree") - if query != "connection_id=conn_1&workspace_id=ws_1" { - t.Fatalf("query = %q", query) - } - for _, want := range []string{"c_1", "s_1", "a_1", "50.00"} { - if !strings.Contains(stdout, want) { - t.Fatalf("tree output is missing %q:\n%s", want, stdout) - } - } -} - func TestAdsPauseSendsEveryObjectWithItsLevel(t *testing.T) { isolate(t) api := newFakeAPI(t, func(w http.ResponseWriter, _ *http.Request) { From 3da1af209115df987cf41d540a84ee54d61b4b52 Mon Sep 17 00:00:00 2001 From: Ali Hesari Date: Mon, 23 Nov 2026 23:16:42 +0100 Subject: [PATCH 2/2] docs: drop the removed ads commands from the README and changelog --- CHANGELOG.md | 5 +++++ README.md | 12 +++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 566b8c1..8d893fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ All notable changes to the CLI are documented here. Releases are `v` ta - `fopost video-edits ops · create · get` runs edit jobs on a media library video. `create` takes `--op name` or `--op 'name={json params}'` (repeatable) or `--operations-file`, and `--wait` on `create` and `get` blocks until the job succeeds or fails, exiting 1 on a failed job. - Requires `fopost-go` with the Designs, Fonts and VideoEdits services (the pin in `go.mod` must be bumped once that SDK version is released). +### Removed + +- `fopost ads tree`, `fopost ads catalogs` and `fopost ads library`. The API no longer serves the account tree, product catalogs or the Ad Library. +- `fopost ads google recommendations · optimization-score · keywords · keyword-ideas · search-terms · assets · asset-groups`. `fopost ads google conversions · query` stay. + ## 0.3.0 - 2026-11-19 ### Added diff --git a/README.md b/README.md index 3323f9b..c93e6b0 100644 --- a/README.md +++ b/README.md @@ -268,8 +268,7 @@ fopost webhooks list · create · test · delete fopost connect-sessions create · get fopost activity list · audit fopost x post · search -fopost ads networks · tree · pause · resume · insights · leads · catalogs · library · - google · tracking +fopost ads networks · pause · resume · insights · leads · google · tracking fopost completion bash · zsh · fish · powershell fopost version ``` @@ -341,15 +340,10 @@ MIT © Porter Bridge, LLC. See [LICENSE](LICENSE). ### Google Ads -`fopost ads google` covers the Search surface no other network has. Every command names -the connection and the Google Ads account: +`fopost ads google` covers what only Google has: conversion actions and raw GAQL. Every +command names the connection and the Google Ads account: ```bash -fopost ads google keywords --connection c4d5e6f7-… --customer 1234567890 -fopost ads google keyword-ideas --connection c4d5e6f7-… --customer 1234567890 --seed "running shoes" -fopost ads google search-terms --connection c4d5e6f7-… --customer 1234567890 --since 2026-09-01 --until 2026-09-20 -fopost ads google assets --connection c4d5e6f7-… --customer 1234567890 -fopost ads google asset-groups --connection c4d5e6f7-… --customer 1234567890 fopost ads google conversions --connection c4d5e6f7-… --customer 1234567890 fopost ads google query --connection c4d5e6f7-… --customer 1234567890 \ 'SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_30_DAYS'