Official agent skill

Google Ads API Account Diagnostics

by google in google/skills

Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets.

OfficialApache-2.0Auto-check passedMarketing & SEO

Install Google Ads API Account Diagnostics

skills CLI
$ npx skills add google/skills --skill google-ads-api-account-diagnostics -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install google/skills google-ads-api-account-diagnostics --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ads/google-ads-api-account-diagnostics .claude/skills/google-ads-api-account-diagnostics && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
google-ads-api-account-diagnostics
GitHub stars
21k
Token cost
~2.5k tokens
SKILL.md length
928 words
Files
1
Skills in repo
147
Repo updated
First seen
Licence
Apache-2.0

At a glance

Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets.

  • Works in 4 steps: Conversion and Conversion Value Loss → Opportunities Lost (Impression Share) → Low Lead Flow Diagnostics → …
  • Troubleshooting sudden performance drops
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Analyzing campaign impression share metrics

What it does

Google Ads API Account Diagnostics is an agent skill from google/skills, published by the product's own GitHub organization. Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets. Use when troubleshooting sudden performance drops, analyzing campaign impression share metrics, investigating low lead flow, or searching for bidding and budget constraints. Don't use for setting up new campaigns, uploading conversion events directly, or general Google Mobile Ads SDK integration issues (use…

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Marketing & SEO, covering Paid advertising and Third-party API integration. It works with Google Ads and Android. The repository describes itself as: Agent Skills for Google products and technologies. The licence is Apache-2.0.

When your agent uses it

  • Troubleshooting sudden performance drops
  • Analyzing campaign impression share metrics
  • Investigating low lead flow
  • Searching for bidding and budget constraints

Example prompts

  • “Use the google-ads-api-account-diagnostics skill to diagnose Google Ads account performance issues such as conversion loss (value or volume), low…”
  • “/google-ads-api-account-diagnostics”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Conversion and Conversion Value Loss
  2. Opportunities Lost (Impression Share)
  3. Low Lead Flow Diagnostics
  4. Offline Upload Pipeline Diagnostics

What it can do on your machine

Read from SKILL.md and the folder at commit 7d97937. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are sql).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Google Ads API Account Diagnostics loads about 2.5k tokens when it runs. Until then it costs about 141 tokens; SKILL.md has 928 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~141
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from google/skills at commit 7d97937, republished under its Apache-2.0 licence (© google). 928 words, ~2,472 tokens.

Download SKILL.mdSave it as .claude/skills/google-ads-api-account-diagnostics/SKILL.md (or your agent's skills folder).
name
google-ads-api-account-diagnostics
description
Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets. Use when troubleshooting sudden performance drops, analyzing campaign impression share metrics, investigating low lead flow, or searching for bidding and budget constraints. Don't use for setting up new campaigns, uploading conversion events directly, or general Google Mobile Ads SDK integration issues (use gma-android-integrate instead).
metadata.category
GoogleAds
metadata.author
google-ads-api-team
metadata.version
1.0.0

Google Ads API Account Performance Diagnostics Skill

This skill provides instructions on how to use the Google Ads MCP server tools to diagnose common account performance issues.

Workflows

Identifying Active Client Accounts

Most diagnostics tasks require sending GAQL queries to a specific customer account. If the customer ID is not explicitly provided by the user, you must first call the list_accessible_customers (or customers_list_accessible_customers) tool to retrieve the customer resource names/IDs you have access to.

Once you have the list of accessible customer IDs, query the customer_client resource using the search tool under those customer accounts to find active client customer accounts. Make sure to select only enabled client accounts and filter out manager accounts:

sql
SELECT
  customer_client.id,
  customer_client.descriptive_name,
  customer_client.status,
  customer_client.manager
FROM customer_client
WHERE customer_client.status = 'ENABLED' AND customer_client.manager = FALSE

Only run subsequent diagnostic queries against the enabled client customer IDs retrieved from this list. Do not query deactivated or manager accounts, as doing so will cause API errors.

Using the MCP Tools Directly

To retrieve information and run queries, you must call the search tool on the MCP server directly (with arguments like customer_id, fields, resource, and conditions). Do not write or execute custom Python scripts or use the Google Ads client library to query the API, as they will fail authentication inside the evaluation sandbox.

1. Conversion and Conversion Value Loss

When conversions or conversion value suddenly decline, use the following steps to diagnose the issue.

Steps:

  1. Discover Fields: Use get_resource_metadata with resource campaign or ad_group to ensure you have the correct field names.

  2. Query Performance: Use search to retrieve performance data.

    • Resource: campaign or ad_group
    • Fields: Include campaign.name, metrics.conversions, metrics.conversions_value, metrics.cost_micros.
    • Segments: To isolate the loss, include segments like segments.date, segments.device, segments.conversion_action.
    • Conditions: Compare the period of decline with a previous period (e.g., segments.date >= '{start_date}').
    • Gotcha: metrics.cost_micros must be divided by 1,000,000 to get standard currency amounts.

    Example GAQL Query: To query performance data for a customer account {customer_id} between {start_date} and {end_date}:

    sql
    SELECT
      campaign.name,
      metrics.conversions,
      metrics.conversions_value,
      metrics.cost_micros,
      segments.date,
      segments.device,
      segments.conversion_action
    FROM campaign
    WHERE segments.date >= '{start_date}' AND segments.date <= '{end_date}'
  3. Analyze: Check if the loss is limited to certain devices (e.g., mobile vs desktop) or specific conversion actions.

  4. Check Uploads: If using offline imports, query offline_conversion_upload_conversion_action_summary to verify upload pipeline health. If the query returns no results, report that no offline uploads exist for the account and proceed.

    Example GAQL Query: To check upload pipeline health for a customer account {customer_id}:

    sql
    SELECT
      offline_conversion_upload_conversion_action_summary.conversion_action_name,
      offline_conversion_upload_conversion_action_summary.successful_event_count,
      offline_conversion_upload_conversion_action_summary.total_event_count,
      offline_conversion_upload_conversion_action_summary.status
    FROM offline_conversion_upload_conversion_action_summary
2. Opportunities Lost (Impression Share)

To identify lost opportunities due to ad rank, bids, or budgets, analyze impression share metrics.

Steps:

  1. Query Impression Share: Use search to retrieve impression share metrics.

    • Resource: campaign
    • Fields: Include campaign.name, metrics.search_impression_share, metrics.search_rank_lost_impression_share, metrics.search_budget_lost_impression_share.
    • Gotcha: Impression share values in the API are returned as decimals (e.g., 0.35 = 35%) or formatted strings (e.g., "< 0.10").

    Example GAQL Query: To query impression share metrics for a customer account {customer_id} between {start_date} and {end_date}:

    sql
    SELECT
      campaign.name,
      metrics.search_impression_share,
      metrics.search_rank_lost_impression_share,
      metrics.search_budget_lost_impression_share
    FROM campaign
    WHERE segments.date >= '{start_date}' AND segments.date <= '{end_date}'
  2. Analyze:

    • High search_budget_lost_impression_share indicates opportunities lost due to limited budget.
    • High search_rank_lost_impression_share indicates opportunities lost due to low ad rank (bid or quality issues).
Show full SKILL.md (413 more words)Show less
3. Low Lead Flow Diagnostics

When a user asks "why is my lead flow low these past few days?", follow this systematic approach.

Steps:

  1. Confirm Drop: Query conversions segmented by date for the last few days vs the previous period.

  2. Isolate Cause:

    • Check if Traffic (clicks, impressions) dropped.
    • Check if Conversion Rate (conversions/clicks) dropped.
  3. If Traffic Dropped: Check Impression Share metrics (see Workflow 2) to see if it's a budget or rank issue, or if search volume generally declined.

  4. If Conversion Rate Dropped: Check breakdowns by segments.device or segments.conversion_action to see if a specific area is failing.

  5. Check Changes: Query the change_event resource to see if any changes were made to bids, budgets, or targeting around the time the drop started.

    • Gotcha (change_event constraints): Queries to the change_event resource:
      • Must specify a LIMIT clause of less than or equal to 10000.
      • Must filter by date (change_event.change_date_time) within the past 30 days.
      • Cannot select performance metrics (e.g., metrics.* is not supported; only change_event attributes and allowed resource fields can be selected).

    Example GAQL Query: To query change events for a customer account {customer_id} between {start_date} and {end_date}:

    sql
    SELECT
      change_event.change_date_time,
      change_event.change_resource_name,
      change_event.resource_change_operation,
      change_event.changed_fields
    FROM change_event
    WHERE change_event.change_date_time >= '{start_date}' AND change_event.change_date_time <= '{end_date}'
    LIMIT 10000
4. Offline Upload Pipeline Diagnostics

When offline conversion uploads for a specific action (e.g., store-purchase) stop showing up or fail, use the following steps to diagnose the issue.

Steps:

  1. Retrieve Client Accounts: If {customer_id} is not provided, first call the list_accessible_customers (or customers_list_accessible_customers) tool to retrieve the customer resource names/IDs you have access to. Then, query the customer_client resource to find active client customer accounts, ensuring you filter out manager accounts and deactivated/canceled accounts to avoid query errors.

    Example GAQL Query:

    sql
    SELECT
      customer_client.id,
      customer_client.descriptive_name,
      customer_client.status,
      customer_client.manager
    FROM customer_client
    WHERE customer_client.status = 'ENABLED' AND customer_client.manager = FALSE
  2. Verify Pipeline Health: Query offline_conversion_upload_conversion_action_summary for the active client account.

    • Fields: Include offline_conversion_upload_conversion_action_summary.conversion_action_name, offline_conversion_upload_conversion_action_summary.successful_event_count, offline_conversion_upload_conversion_action_summary.total_event_count, and offline_conversion_upload_conversion_action_summary.status.

    Example GAQL Query:

    sql
    SELECT
      offline_conversion_upload_conversion_action_summary.conversion_action_name,
      offline_conversion_upload_conversion_action_summary.successful_event_count,
      offline_conversion_upload_conversion_action_summary.total_event_count,
      offline_conversion_upload_conversion_action_summary.status
    FROM offline_conversion_upload_conversion_action_summary
  3. Analyze:

    • Gotcha: If the query to offline_conversion_upload_conversion_action_summary returns no results or is empty (indicating there are no offline conversion uploads configured or active for the customer account), immediately stop/break the diagnostic workflow. Report directly to the user that no offline conversion upload data or summaries exist in the accessible account(s), rather than retrying or attempting to generate custom scripts.
    • If results are returned, verify the upload success rate by comparing successful_event_count with total_event_count. Check the status field to diagnose failures.

© google, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/ads/google-ads-api-account-diagnostics of google/skills.

Open the folder on GitHubat commit 7d97937

Compare with similar skills

Google Ads API Account Diagnostics next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Google Ads API Account Diagnostics compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Google Ads API Account Diagnostics this skillgoogle/skills21k—~2.5kAutomated safety check: PassApache-2.0
Blog GoogleAgriciDaniel/claude-blog2.3k1 repos~3.3kAutomated safety check: NotesMIT
AdsCesarjoquin/Marketing-Skills2001 repos~3.5kAutomated safety check: PassMIT
Adscoreyhaines31/marketingskills54k1 repos~7.8kAutomated safety check: PassMIT
Paid Adsfreekmurze/dotfiles1k14 repos~2.4kAutomated safety check: PassNone
Google Adszapier/connectors1761 repos~3.7kAutomated safety check: PassElastic-2.0

Similar skills

  • Blog Google

    AgriciDaniel/claude-blog

    Google API integration for blog performance: PageSpeed Insights, CrUX Core Web Vitals with 25-week history, Search Console performance, URL Inspection, Indexing API, GA4 organic traffic, NLP entity…

    2.3k GitHub starsUsed in 1 repo~3.3k tokens
    Marketing & SEOAuto-check: notes
  • Ads

    Cesarjoquin/Marketing-Skills

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    200 GitHub starsUsed in 1 repo~3.5k tokens
    Marketing & SEOAuto-check passed
  • Ads

    coreyhaines31/marketingskills

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    54k GitHub starsUsed in 1 repo~7.8k tokens
    Marketing & SEOAuto-check passed
  • Paid Ads

    freekmurze/dotfiles

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms.

    1k GitHub starsUsed in 14 repos~2.4k tokens
    Marketing & SEOAuto-check passed
  • Google Ads

    zapier/connectors

    Official

    Agent-callable Google Ads tools — search campaigns, ad groups, and ads via GAQL, build performance reports, manage campaign status and budgets, and set up conversion tracking.

    176 GitHub starsUsed in 1 repo~3.7k tokens
    Marketing & SEOAuto-check passed
  • Money Ads

    iamzifei/show-me-the-money

    Paid advertising automation for Google Ads, Meta Ads, and other ad platforms.

    1k GitHub stars~2.4k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed

More from google/skills

All 147 skills in this repo
  • Official

    Query Cloud Trace spans, filter by latency thresholds or error status, correlate distributed traces with Cloud Logging, and diagnose latency bottlenecks across Google Cloud services.

    21k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Official

    Manages Google Cloud Privileged Access Manager entitlements and grants: create and edit entitlements, request temporary access, and approve or deny pending grants.

    21k GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Official

    Writes Terraform alerting policies for AI agents that emit OpenTelemetry metrics, covering reliability, cost, safety, security and quality signals on Google Cloud.

    21k GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Official

    Deploys open models or custom weights from Model Garden to Agent Platform endpoints, checks deployment status and cleans up endpoints, confirming before any change.

    21k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Official

    Searches, manages and scaffolds skills in the Gemini Enterprise Agent Platform Skill Registry using bundled Python scripts and Google Cloud credentials.

    21k GitHub stars~584 tokensUpdated today
    Auto-check passed
  • Designs GCP infrastructure as local Terraform, validates and scans it against best practices, then imports it to Application Design Center for deployment and troubleshooting.

    21k GitHub stars~4.4k tokensUpdated today
    Auto-check passed

Categories

Questions about Google Ads API Account Diagnostics

What does Google Ads API Account Diagnostics do?

Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets. Google Ads API Account Diagnostics is an agent skill from google/skills, published by the product's own GitHub organization. Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due to ad rank, bids, or budgets.

When should I use Google Ads API Account Diagnostics?

Google Ads API Account Diagnostics fits situations like: troubleshooting sudden performance drops; analyzing campaign impression share metrics; investigating low lead flow; searching for bidding and budget constraints.

How do I install Google Ads API Account Diagnostics in Claude Code?

Run `npx skills add google/skills --skill google-ads-api-account-diagnostics -a claude-code`. Or copy the skill folder (skills/ads/google-ads-api-account-diagnostics in google/skills) into .claude/skills/google-ads-api-account-diagnostics in your project. Claude Code loads it when a task matches its description.

How do I install Google Ads API Account Diagnostics in Codex?

Run `npx skills add google/skills --skill google-ads-api-account-diagnostics -a codex`. Or copy the skill folder (skills/ads/google-ads-api-account-diagnostics in google/skills) into .agents/skills/google-ads-api-account-diagnostics in your project. Codex loads it when a task matches its description.

Can I use Google Ads API Account Diagnostics in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add google/skills --skill google-ads-api-account-diagnostics -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/google-ads-api-account-diagnostics, .gemini/skills/google-ads-api-account-diagnostics, .github/skills/google-ads-api-account-diagnostics and .opencode/skills/google-ads-api-account-diagnostics in your project.

What does Google Ads API Account Diagnostics need to run?

SKILL.md names no scripts, command-line tools or credentials: Google Ads API Account Diagnostics is instructions for the agent only. Our summary lists: Python 3.

Does Google Ads API Account Diagnostics access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Google Ads API Account Diagnostics safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Google Ads API Account Diagnostics use?

Google Ads API Account Diagnostics is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Google Ads API Account Diagnostics use?

About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Google Ads API Account Diagnostics?

Skills that share tags, products or a category with Google Ads API Account Diagnostics: Blog Google (AgriciDaniel/claude-blog, 2.3k stars), Ads (Cesarjoquin/Marketing-Skills, 200 stars), Ads (coreyhaines31/marketingskills, 54k stars) and Paid Ads (freekmurze/dotfiles, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Google Ads API Account Diagnostics?

google (a GitHub organization, an official publisher) maintains it in google/skills, which has 21,032 GitHub stars. The repository holds 147 skills in this directory. The repository was last updated on October 8, 2026.

Source: google/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.