What it does?
A Python CLI pulls Shopping and Performance Max product-level data via GoMarble MCP, ranks every product by ROAS, and flags both stars (high ROAS with real spend) and wasted products (spend with no conversions or low ROAS).
What you need
- → Google Ads Customer ID (CID), e.g. 7556164258
- → Anthropic API key
- → GoMarble API key
First, connect Claude Code to your Google Ads account
GoMarble MCP connects Claude Code with your live Google Ads data — Shopping campaigns, Performance Max, product-level metrics — so the script can fetch everything it needs to analyze product performance automatically.
Install Claude Code and Python
Download Claude Code (claude.com/download) and Python (python.org/downloads) if you don't have them.
Connect your Google Ads account
Go to apps.gomarble.ai, sign up, and connect your Google Ads account in the Integrations page.
Get your GoMarble API key
In GoMarble, go to Settings → API Key, copy it and save it somewhere safe.
Add GoMarble MCP to Claude Code
Run the command below in your terminal.
Requires terminal access, Claude Code, a Claude account (Pro or Max recommended), and Python installed.
The prompt
Paste this into Claude Code — it will build the shopping_performance.py CLI script for you. Once built, run it with: python shopping_performance.py --google 1234567890 (replace with your Google Ads Customer ID).
What you get back
-
→
Format: Three files, produced by a 6-step pipeline (account & Shopping/PMax campaign data → 30-day product metrics → weekly trends → ROAS rankings with star/wasted flags → AI-written brief → CSV/TXT outputs):
- – product_performance.csv
- – wasted_products.csv
- – shopping_brief.txt
Want this automated?
Run the prompt above every Monday morning automatically. GoMarble Agents don't just deliver the report (Slack / email / in-app) — they can execute the recommended changes directly in your ad account, too. Offload the whole recurring task and stop doing it manually.
Try GoMarble Agents free →FAQ
Does this cover Performance Max too, or only classic Shopping campaigns?
What counts as a "star" product?
What counts as a "wasted" product?
How many products does it analyze per run?
How do I run the finished script?
Does it require Meta Ads too?
Skip the prompt — let GoMarble do this for you.
Sign up, connect your ad accounts, and shopping product performance cli runs on every account, every week, automatically.