google-ads-api-account-diagnostics
它能做什么
它会通过实时数据查询调查你的 Google Ads 账户,解释转化损失、潜在客户数量偏低以及错失的展示份额。适合遇到效果突然下滑、需要排查的广告主和代理机构。
适用场景
- ✓当转化或潜在客户数量突然下降,你需要找出原因时。
- ✓当你的广告因出价或预算而缺少展示时。
- ✓当你想检查某个广告系列的展示份额指标时。
技能链接
https://github.com/google/skills/blob/main/skills/ads/google-ads-api-account-diagnostics/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的 Google Ads 转化本周大幅下降。请根据我的账户数据查明原因。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先检查 Google Ads 工具是否可用,确认你可以访问的客户账户,然后运行有针对性的查询,并阅读出价、预算和广告排名限制的相关结果。
技术内容(原始 SKILL.md)
作者在 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 — these may be exposed with a server prefix, e.g. customers_list_accessible_customers) 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 (argumentscustomer_idandquery). - 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 — these may be exposed with a server prefix, e.g. customers_list_accessible_customers) 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-setup skill 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_metadatawith resourcecampaignorad_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. - 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
- Resource:
常见问题
它会更改我的广告系列吗?
不会。它只诊断效果问题,不负责设置或修改广告系列。
如果 Google Ads 工具没有连接怎么办?
它有针对这种情况的备用路径,具体见其说明。
它如何选择要检查的账户?
如果你没有指定,它会先列出你可以访问的账户。
详情
作者的原始描述
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).
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10185
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。