performance-marketing

Adwords-Scripts

Google Ads Bidding scripts
55 stars+1★ this week11 forksJavaScriptUpdated 3/7/2025100% free · open source
What it does

Runs JavaScript‑based Google Ads scripts that automatically adjust bids based on performance metrics.

When to use it
  • •You need to auto‑adjust CPC/CPA bids across many keywords without manual spreadsheets.
  • •You want to enforce a hard ROAS or CPA ceiling every hour or day.
  • •You have a large account (hundreds of campaigns) and want a single script to keep bids in line with budget pacing.
Ready-to-paste prompt
```javascript
function main() {
  var TARGET_ROAS = 5.0; // 500% ROAS
  var campaignIterator = AdsApp.campaigns()
      .withCondition('Status = ENABLED')
      .get();
  while (campaignIterator.hasNext()) {
    var camp = campaignIterator.next();
    var stats = camp.getStatsFor('LAST_30_DAYS');
    var currentRoas = stats.getConversionValue() / stats.getCost();
    if (currentRoas < TARGET_ROAS) {
      camp.bidding().setTargetRoas(TARGET_ROAS);
    }
  }
}
```
Heads up: The script only runs after you manually **authorize** it the first time; without that step the script fails with “Authorization required” and no bids are changed.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/adwords-scripts && curl -fsSL https://workflowstacks.com/api/skills/adwords-scripts/claude-skill -o ~/.claude/skills/adwords-scripts/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 Adwords-Scripts works
Codeflow
Free to inspect

Adwords-Scripts is a small JavaScript project (~1.8k lines across 5 code files). Setup is light: small project — see the README for how to run it. Last commit 20 months ago, MIT license, no tests found.

Size
Small codebase
~1.8k lines · 5 code files · 15 min skim
Setup
Light setup
Small project — see the README for how to run it.
Runs on
JavaScript
No API keys detected
JavaScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
What's in each folder
brainlabs/Folder1 files
.github/CI / automation (GitHub Actions)2 files
READMENo tests foundDocumentedNo CIMIT licenseLast update 20 mo ago
Quick Actions
Details
Creator
Czarto
Language
JavaScript
Category
performance-marketing
Published
9/12/2016

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/adwords-scripts.svg)](https://workflowstacks.com/skills/adwords-scripts?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.