Skip to content

Guide · Agent skill

How to use the Google Ads API Quickstart agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The google-ads-api-quickstart skill is an agent skill that walks you through your first Google Ads API request, from getting credentials to running a script that retrieves your campaigns. It is aimed at developers starting a first Google Ads API integration, and at anyone stuck on a setup error. After following this guide you will know how to install the skill, how to ask for help with natural requests, and what you need on hand before the agent starts.

Google Ads API Quickstartgoogle/skills · Apache-2.0

Quick start

  1. 1Download and unzip the skill. Download the ZIP from the directory page and unzip it. Keep the skill folder intact, including SKILL.md and the references folder.
  2. 2Place it in your skills folder. Move the folder into ~/.claude/skills/ for personal use or into .claude/skills/ inside your project. Alternatively, upload it under Settings → Capabilities → Skills in the Claude apps.
  3. 3Gather your developer token. In the API Center of a Google Ads Manager account, copy your developer token. A pending token only works with test accounts.
  4. 4Create OAuth2 credentials. In the Google Cloud Console, enable the Google Ads API, configure the OAuth consent screen with yourself as a test user, and create a Desktop App OAuth client. Save the downloaded file as client_secrets.json.
  5. 5Ask for a quickstart. Tell the agent which language you use, such as Python or Java, and that you want to retrieve your campaigns. It will guide you through setup and generate the script.
  6. 6Run and troubleshoot. Run the generated script. If it fails, paste the complete error message, such as USER_PERMISSION_DENIED, into the chat for a diagnosis.

What does the Google Ads API Quickstart skill make the agent do?

When installed, the agent can guide you from zero to a working Google Ads API request. It covers getting your developer token and OAuth2 credentials, choosing a client library or raw REST calls, setting up the environment, and generating a script that retrieves your campaigns.

It also helps diagnose common setup errors such as USER_PERMISSION_DENIED, login_customer_id issues and DEVELOPER_TOKEN_NOT_APPROVED.

  • Supported tracks: Python, Java, .NET, PHP, Ruby or Perl client libraries, or direct REST HTTP requests.
  • Credential walkthrough: developer token, OAuth2 client ID and secret, and OAuth2 refresh token.
  • Script generation: a 'retrieve campaigns' example for your chosen track.

How do you install the Google Ads API Quickstart skill?

Download the ZIP of the skill from the directory page and unzip it. Put the resulting folder in one of these locations, depending on how you use your agent.

For personal use across projects, unzip it into ~/.claude/skills/. For a single project, unzip it into that project's .claude/skills/ folder.

If you use the Claude apps instead, upload the skill under Settings → Capabilities → Skills.

  • Personal install: ~/.claude/skills/
  • Project install: .claude/skills/ inside your project
  • Claude apps: Settings → Capabilities → Skills, then upload

What do you need before you start?

The skill assumes you already have a Google Ads Manager account with API Center access and a developer token. You also need a Google Cloud project with the Google Ads API enabled and OAuth2 client credentials. The skill walks you through creating these, but it does not create accounts for you.

You need a language runtime such as Python, Java, .NET, PHP, Ruby or Perl. The skill looks up current minimum versions online and falls back to versions stored inside the skill if the lookup fails.

Outbound HTTPS access to Google documentation and GitHub is needed for the live lookups.

  • Google Ads Manager account with API Center access and a developer token
  • Google Cloud project with the Google Ads API enabled and OAuth2 client credentials
  • A language runtime (Python, Java, .NET, PHP, Ruby or Perl)
  • Outbound HTTPS access to Google documentation and GitHub

How do you trigger the skill with a natural request?

You do not need a special command. Describe what you are trying to do in plain language, and the agent will load the skill when your request matches it. The skill's description says it applies when you ask how to get started with the Google Ads API, need credentials or a developer token, want a quickstart script, or hit errors such as USER_PERMISSION_DENIED or DEVELOPER_TOKEN_NOT_APPROVED.

  • How do I get started with the Google Ads API in Python?
  • I need to set up a Google Ads developer token. Where do I find it?
  • Write a quickstart script that retrieves my campaigns using the Java client library.
  • I'm getting USER_PERMISSION_DENIED when I call the Google Ads API. What should I check?
  • Should I use the .NET client library or raw REST calls for my Google Ads integration?

How do you set up the client library once you have credentials?

The agent gives you install steps for your chosen language. For example, the .NET reference installs the official package with NuGet, and the Perl reference installs the client with cpanm. Your credentials go into a configuration file or into code, depending on the library.

For Perl, the library looks for a googleads.properties file. It checks an explicit path passed to Client->new first, then the GOOGLE_ADS_CONFIGURATION_FILE_PATH environment variable, and then a default location.

dotnet add package Google.Ads.GoogleAds cpanm Google::Ads::GoogleAds::Client

What does a typical session look like?

Ask the agent for a quickstart in your language. It first resolves current API and runtime versions, then asks you to gather the five authentication parameters, including the developer token and OAuth2 credentials. The skill creates the OAuth consent screen and client steps for the Google Cloud Console, then guides you through generating the refresh token with the gcloud CLI.

If you hit an error, paste the full message into the chat. The skill includes troubleshooting guidance for USER_PERMISSION_DENIED, login_customer_id problems and DEVELOPER_TOKEN_NOT_APPROVED.

  • Developer token from the API Center, signed in with a Manager account
  • OAuth2 client created as a Desktop App, saved locally as client_secrets.json
  • Test user added to the OAuth consent screen, using the email you log into Google Ads with

What safety notes should you know about?

The skill runs scripts and uses the network, so review anything it generates before running it. Its own instructions say it resolves versions from live sources and falls back to stored ones when that fails.

Do not use a pending developer token against live accounts. The skill warns that a token that is not yet approved can only target Google Ads test accounts, and a production account call will fail with DEVELOPER_TOKEN_NOT_APPROVED.

Keep client_secrets.json and your credentials private. Do not paste them into shared chats or commit them to public repositories.

  • Runs scripts and uses the network: check generated code before running it.
  • Pending tokens work only with test accounts.
  • Treat your OAuth client file and tokens as secrets.

What tips help you get the most from it?

Name your language and whether you want a client library or REST in your first message, so the agent picks the right reference. Tell it if you need a specific API version; otherwise it resolves the latest stable one.

If you are choosing between a client library and direct REST calls, ask for a comparison before you commit to one. Keep the generated script in a version-controlled project so you can see what changed when an error appears.

  • Say your language and track (library or REST) in the first message.
  • Paste the exact error text when troubleshooting.
  • Ask for a comparison of client library and REST before choosing.

What people use it for

  • Starting a first Google Ads API integration in Python, Java, .NET, PHP, Ruby or Perl.
  • Deciding between a Google Ads client library and direct REST calls for a project.
  • Fixing a login_customer_id or developer token error that blocks your first request.
  • Generating a script that lists your campaigns as a base for reporting work.

Frequently asked questions

How do I install the Google Ads API Quickstart skill?

Download the ZIP from the directory page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings → Capabilities → Skills.

What do I need before using the Google Ads API skill?

You need a Google Ads Manager account with API Center access and a developer token, plus a Google Cloud project with the Google Ads API enabled and OAuth2 client credentials. You also need a language runtime and outbound HTTPS access to Google documentation and GitHub.

Is the Google Ads API Quickstart skill free?

The source material for this skill does not state pricing or licence terms beyond its listed licence, Apache-2.0. Check the directory page and the skill's licence file for the details that apply to you.

What causes DEVELOPER_TOKEN_NOT_APPROVED?

This error occurs when you call a production account with a developer token that is still pending approval. A pending token can only target Google Ads test accounts, so use a test account until your token is approved.

How do I fix USER_PERMISSION_DENIED with the Google Ads API?

Ask the agent to diagnose it and paste the full error message. The skill includes troubleshooting for this error, along with login_customer_id issues, which often come up when you authenticate through a manager account.

Should I use a Google Ads client library or raw REST?

Client libraries are available for Python, Java, .NET, PHP, Ruby and Perl and provide language-specific setup. Raw REST calls avoid a library but require you to build HTTP requests yourself. Ask the agent to compare the two for your project.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits developers starting their first Google Ads API integration, and anyone stuck on a setup error like a rejected developer token or a login_customer_id problem. It is not a fit if you only want to manage ads in the Google Ads web interface, or if you plan to run production traffic on an unapproved developer token.

Download the skill