Gemini CLI
Get data insights

Get Data Insights from Gemini CLI

Once you have finished the setup process between Gemini CLI and Adzviser, you're all set to start analyzing your marketing & sales data using Gemini and Adzviser connectors via Model Context Protocol.

🎯 What You Can Do

With your accounts connected, Gemini can now access and analyze reporting data from:

  • Google Ads
  • Meta (Facebook) Ads
  • Shopify
  • TikTok Ads
  • Instagram Insights
  • Klaviyo
  • And more

Example Prompts

Here are some example prompts you can use in Gemini CLI:

Campaign Performance

How much did I spend on Facebook Ads last month?

Cross-Channel Analysis

Show me my top-performing campaigns across Google Ads and Meta.

E-commerce Insights

Compare this week's Net sales with last week's on my Shopify store.

Keyword Performance

Which keyword in the search campaigns of my Google Ads account performed the best last 30 days?

ROAS Analysis

What was the ROAS for my Meta Ads campaigns in December?

Trend Analysis

Show me the daily trend of website sessions from Google Analytics for the past 2 weeks.

Tips for Better Results

Be specific with dates: Instead of "last month," try "from December 1 to December 31, 2025" for more accurate results.

  1. Specify the data source — mention which platform you want data from (Google Ads, Meta Ads, Shopify, etc.)
  2. Include time ranges — always specify the date range for your analysis
  3. Ask follow-up questions — Gemini remembers context, so you can drill deeper into insights
  4. Request specific metrics — mention the KPIs you care about (ROAS, CPC, CTR, conversion rate, etc.)

Terminal Workflow

Start interactively so you can review tool requests:

gemini -i "Use Adzviser to show my Google Ads spend for last week. Confirm the workspace and dates first."

Approval modes: -y / --approval-mode=yolo automatically approves all tool calls, including available shell and file tools. It is not limited to Adzviser. --allowed-mcp-server-names adzviser limits which MCP servers load; it does not disable built-in tools or, by itself, provide a reporting-only approval policy.

Unattended Google Ads reporting

First complete OAuth setup and run a report interactively. For a dedicated reporting project, add this adzviser entry to .gemini/settings.json, keeping unrelated settings:

{
  "mcpServers": {
    "adzviser": {
      "httpUrl": "https://mcp.adzviser.com/http",
      "trust": true,
      "includeTools": [
        "list_workspace",
        "list_metrics_and_breakdowns_google_ads",
        "retrieve_reporting_data"
      ]
    }
  }
}

includeTools exposes only these three Adzviser tools; trust: true lets them run without confirmation in a trusted project. This grants reporting access to your connected account, not just one saved query. Other tools remain subject to your existing policies. See Gemini’s MCP configuration reference.

gemini --approval-mode=default --allowed-mcp-server-names adzviser \
  -p "Use Adzviser to retrieve Google Ads Cost for September 14–20, 2026 in workspace YOUR_WORKSPACE. Return a table. If that workspace is unavailable, stop and report the error." \
  > google-ads-report.txt

Replace the workspace and dates before running. The shell saves the output; Gemini does not need file-write approval for that redirection. If a run requests additional approval or authentication, resolve it interactively before scheduling. Do not enable YOLO just to bypass the failure. For another source, include its field-list tool as well.

This configuration’s tool filtering and approval behavior were checked with Gemini CLI 0.26.0. Confirm your installed version with gemini --version; organization policies may override local settings.

Once inside the interactive session, MCP servers configured in your settings.json will be available automatically.

The terminal interface makes it easy to:

  • Copy/paste data into reports
  • Pipe output to files
  • Integrate with scripts and automation
  • Work without leaving your development environment

Happy analyzing! 🚀