google-ads-api-account-diagnostics
БесплатноБез исполняемых скриптовНе проверенDiagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due…
от google★ 25 380 звёзд на GitHubОб этом скилле
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
Pre-Flight Tool Verification
Before starting any diagnostic task, verify whether the Google Ads MCP Server
tools (search, list_accessible_customers, get_resource_metadata — exposed
with default server prefixes as search_search,
customers_list_accessible_customers, and metadata_get_resource_metadata) are
available in the runtime environment:
- If MCP tools are available: Proceed with live diagnostics — first
identify active client accounts, then
run GAQL via the
searchtool (structured parameterscustomer_id,resource, andfields, plus optionalconditions,orderings,limit, andlogin_customer_id). - If MCP tools are missing: Follow Fallback When MCP Tools Are Unavailable.
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:
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.
Fallback When MCP Tools Are Unavailable
When Google Ads MCP tools (search, list_accessible_customers,
get_resource_metadata — exposed with default server prefixes as
search_search, customers_list_accessible_customers, and
metadata_get_resource_metadata) are not registered in the runtime environment:
- Inform the User: State that live account performance diagnostics require the Google Ads MCP Server.
- Reference Setup Guide: Direct the user to the setup instructions in the
google-ads-api-mcp-setupskill to install and configure the Google Ads MCP Server for their assistant environment. - Provide GAQL Templates, Gotchas, and Remediation Guidance: Formulate and output the complete diagnostic plan for manual execution in the Google Ads Query Builder or via API integration:
- Provide all multi-step GAQL queries for the workflow, including current-vs-prior date window comparisons (e.g. traffic, impression share, conversion breakdowns, or change events).
- Explain all metric conversion and constraint gotchas (
metrics.cost_micros / 1,000,000for currency, impression share reported as decimals or"< 0.10",change_event30-day window andLIMIT 10000withoutmetrics.*, andsuccessful_event_count / total_event_countplusstatusfor upload health). - Outline concrete actionable next steps for each diagnostic branch (e.g., raising campaign budgets when
search_budget_lost_impression_shareis high vs. improving ad quality or bids whensearch_rank_lost_impression_shareis high).
- Do Not Attempt Unauthorized Local Probing: Do not attempt to run shell commands, custom Python scripts, local SQL/database queries, or direct RPC CLI utilities to access account data. These commands lack credentials and API access and will fail.
1. Conversion and Conversion Value Loss
When conversions or conversion value suddenly decline, use the following steps to diagnose the issue.
Steps:
- Discover Fields: Use
get_resource_metadatawithresource_nameset tocampaignorad_groupto ensure you have the correct field names. - Query Performance: Use
searchto retrieve performance data.- Resource:
campaignorad_group - Fields: Include
campaign.name,metrics.conversions,metrics.conversions_value,metrics.cost_micros, plus segment fields (segments.date,segments.device,segments.conversion_action) insidefieldsrather than as a separatesegmentsargument. - Conditions: Compare the period of decline with a previous period using a finite date range (e.g.,
segments.date >= '{start_date}' AND segments.date <= '{end_date}'). - Gotcha:
metrics.cost_microsmust be divided by 1,000,000 to get standard currency amounts. - Gotcha (conversion action segmentation): In GAQL,
metrics.cost_microscannot be selected when segmenting bysegments.conversion_action
- Resource:
Установить google-ads-api-account-diagnostics в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл google-ads-api-account-diagnostics?
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).
Как установить скилл google-ads-api-account-diagnostics?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл google-ads-api-account-diagnostics запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic