# /google-ads-api-quickstart: Get a first Google Ads API request working end to end

Source: https://trendhub.net/skills/google-skills/google-ads-api-quickstart
Skill folder: https://github.com/google/skills/tree/main/skills/ads/google-ads-api-quickstart
Pack: Google Agent Skills (https://trendhub.net/skills/google-skills)
Works with: Any agent supported by the skills CLI, Claude Code (plugins), Codex (plugins), Antigravity CLI

The Google Ads API quickstart takes a developer from nothing to a script that lists campaigns. It resolves the current API and library versions at run time, explains the Cloud project access levels that replaced developer tokens, sets up OAuth and the customer IDs, loads the setup guide for your language or REST, and diagnoses the most common permission errors.

## When to use it

- You are starting with the Google Ads API and need credentials and a working example.
- Your calls fail with USER_PERMISSION_DENIED in a manager and client account setup.
- You see CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION when calling a live account.

## How it works

1. **Resolve versions**: The agent checks release notes for the newest API version and current runtime minimums instead of hardcoding them, with stated offline fallbacks.
2. **Set up access**: It enables the API on a Cloud project, explains Test versus production access levels, and creates a desktop OAuth client with you as a test user.
3. **Get tokens and IDs**: It generates a refresh token with gcloud application-default login and collects the client and manager customer IDs without hyphens.
4. **Pick a client**: It loads the reference for Python, Java, .NET, PHP, Ruby, Perl or REST and fills in version placeholders before writing code.
5. **Troubleshoot statically**: For access errors it reviews configuration rather than rerunning scripts, adding login_customer_id or explaining which access level is needed.

## What it steers the agent away from

- Hardcoded API versions that go stale.
- Sending users to request developer tokens, which the skill says were sunset.
- Workarounds that bypass access-level checks or widen OAuth scopes.

## What it can touch

It writes configuration files and example code, and the commands it suggests create OAuth credentials and call the Google Ads API with your account.

## Pairs well with

- `/google-cloud-recipe-auth`
- `/google-analytics-data-api-basics`

## Questions

### Can I call real ad accounts straight away?

Not with Test access, which only works on test accounts; production accounts need Explorer, Basic or Standard access on the Cloud project.

### I want my AI assistant to query Google Ads. Is this the right skill?

No. The skill hands that case to the separate Google Ads MCP setup skill instead of writing scripts.
