performance-marketing

google-api-ads-ruby: Ad Manager API

Manage ads with google-api-ads-ruby, a Ruby client library for Ad Manager API, ideal for founders and developers.
intermediateโฑ 1-2 hours๐Ÿ’ต Free
303 stars221 forksRubyGuide quality 8/10Updated 9/1/2026100% free ยท open source
What it is

Access Ad Manager data and settings with an Ad Manager SOAP API Client.

Real use case example

"A founder wants to automate the process of updating ad targeting rules in Google Ad Manager based on changes to their email list in Google Sheets. First, they set up a schedule in Google Sheets to run a script that pulls email changes. Then, they use this skill to connect to Ad Manager and update the targeting rules. As a result, they save time and reduce the risk of human error."

Best insideCursorCodex CLI
When to use it
  • โ€ขYou need to automate ad campaigns across multiple platforms
  • โ€ขYou want to integrate Ad Manager with your existing Ruby application
  • โ€ขYou require fine-grained control over ad targeting and bidding
Ready-to-paste prompt
Run the example code in `examples/v202202/get_ad_units.rb` to retrieve a list of ad units: `ruby examples/v202202/get_ad_units.rb YOUR_AD_UNIT_ID`
Heads up: You must have a Google Ad Manager account and generate API credentials (OAuth client ID and secret) to use this library, and ensure you have the correct Ruby version (2.6 or higher) and gem dependencies installed
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-api-ads-ruby && curl -fsSL https://workflowstacks.com/api/skills/google-api-ads-ruby/claude-skill -o ~/.claude/skills/google-api-ads-ruby/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-api-ads-ruby: Ad Manager API works
Codeflow
Free to inspect

Google-api-ads-ruby: Ad Manager API is a very large project (~164k lines across 880 code files, plus 19 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, no license file, has a test suite.

Size
Very large codebase
~164k lines ยท 880 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
See README
No API keys detected
Where to start reading
  1. 1
    README.md
    Start here โ€” what it does and how to install it
  2. 2
    ad_manager_api/lib/ad_manager_api.rb
    Inside ad_manager_api/lib/ โ€” the main logic begins here
What's in each folder
ad_manager_api/lib/Core code โ€” the actual logic354 files
ad_manager_api/examples/Examples you can copy489 files
ads_common/Folder33 files
ads_savon/Folder26 files
ad_manager_api/test/Tests โ€” proof it works9 files
READMEHas testsDocumentedNo CINo licenseUpdated this month
Quick Actions
Details
Creator
googleads
Language
Ruby
Category
performance-marketing
Published
1/23/2012

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