performance-marketing

google-ads-python: Automate Ads

Manage Google Ads with python,, with the google-ads-python library
intermediateโฑ 1-2 hours๐Ÿ’ต Free (but may incur Google Ads API costs)
746 stars547 forksPythonGuide quality 8/10Updated 9/8/2026100% free ยท open source
What it is

Use the Google Ads Python library to interact with Google Ads.

Real use case example

"A founder, Alex, wants to manage their Google Ads campaigns automatically. They use the Google Ads Python library to write a script that creates a new ad group and targets specific audiences based on their product's features. Within a few minutes, Alex has their Google Ads campaigns set up and running with minimal manual effort."

Best insideClaude DesktopClaude CodeCodex CLI
When to use it
  • โ€ขWhen you need to automate Google Ads campaign management
  • โ€ขWhen you want to integrate Google Ads data with your own analytics or CRM systems
  • โ€ขWhen you need to perform complex Google Ads optimization tasks, such as bidding or ad rotation
Ready-to-paste prompt
campaign_service.mutate([{'operator': 'ADD', 'operand': {'name': 'My Test Campaign', 'status': 'ENABLED'}}])
Heads up: You need to have a Google Ads account and enable the Google Ads API in the Google Cloud Console, and also set up OAuth2 credentials to use the google-ads-python library
Saves to your device
Use with Claude
New

Skip the builder โ€” one click puts this in Claude, Cursor, Antigravity and more.

๐Ÿ”‘ Needs an API key

Works after you add credentials โ€” the setup agent will ask you for them.

Try it instantly โ€” no install
Claude Code
mkdir -p ~/.claude/skills/google-ads-python && curl -fsSL https://workflowstacks.com/api/skills/google-ads-python/claude-skill -o ~/.claude/skills/google-ads-python/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go โ€” no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How google-ads-python: Automate Ads works
Codeflow
Free to inspect

Google-ads-python: Automate Ads is a very large Python project (~2.3M lines across 8500 code files, plus 33 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, Apache-2.0 license, has a test suite.

Size
Very large codebase
~2.3M lines ยท 8500 code files ยท days to read โ€” use, don't read
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Python ยท Docker
No API keys detected
Python 100%
Where to start reading
  1. 1
    README.rst
    Start here โ€” what it does and how to install it
  2. 2
    pyproject.toml
    Dependencies and the commands it exposes
  3. 3
    examples/__init__.py
    A worked example โ€” copy this to get going
What's in each folder
examples/Examples you can copy135 files
google/Folder8921 files
tests/Tests โ€” proof it works36 files
.github/CI / automation (GitHub Actions)4 files
READMEHas testsDocumentedNo CIDocker readyExamples includedApache-2.0 licenseUpdated this month
Quick Actions
Details
Creator
googleads
Language
Python
Category
performance-marketing
Published
8/3/2018

Are you the creator of this tool? Claim your listing โ†’ and earn 85% of every sale.