Skip to content

Google Ads API Quickstart

Walks an agent through Google Ads API setup and a first campaign-retrieval script

Repository
google/skills
Stars
21,782
Licence
Apache-2.0
Files
8 files

What it does

When installed, the agent can guide you from zero to a working Google Ads API request: getting your developer token and OAuth credentials, picking a client library (Python, Java, .NET, PHP, Ruby, Perl) or raw REST, setting up the environment, and generating a script that retrieves your campaigns. It also helps diagnose common setup errors such as USER_PERMISSION_DENIED and DEVELOPER_TOKEN_NOT_APPROVED. The instructions require the agent to look up current API and language versions online before generating code, falling back to versions baked into the skill if that fails.

Great for

  • Developers starting their first Google Ads API integration
  • Teams choosing between a Google Ads client library and direct REST calls
  • Anyone hitting a setup error like login_customer_id or developer token rejection

Skip it if

  • Users who only want to manage ads in the Google Ads web interface, since the skill is for API code and setup
  • Production systems where a pending developer token would be used against live accounts, because the skill warns that unapproved tokens only work with test accounts

Try asking

  • “How do I get started with the Google Ads API in Python?”
  • “Write a quickstart script that retrieves my campaigns using the Java client library.”
  • “I'm getting USER_PERMISSION_DENIED when calling the Google Ads API, what should I check?”
  • “Help me set up OAuth credentials and a developer token for Google Ads.”
Step-by-step guide: how to use Google Ads API QuickstartInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 8 original files, the Apache-2.0 licence and an attribution note.

    google-ads-api-quickstart.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip google-ads-api-quickstart.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip google-ads-api-quickstart.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Give the agent your chosen language and whether you have a test or approved developer token so it picks the right template.
  • Never paste real developer tokens, client secrets or refresh tokens into chat; keep them in environment variables or a local config file you control.
  • Run generated scripts against a Google Ads test account first, especially while your developer token is still pending approval.

What's inside

  • references/dotnet.md
  • references/java.md
  • references/perl.md
  • references/php.md
  • references/python.md
  • references/rest.md
  • references/ruby.md
  • SKILL.md

Redistributed unmodified from google/skills under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.