1
---
2
name: google-ads-api-account-diagnostics
3
description: >-
4
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).
5
compatibility: "Google Ads MCP Server (tools: search, list_accessible_customers, get_resource_metadata); see the google-ads-api-mcp-setup skill."
6
metadata:
7
category: GoogleAds
8
author: google-ads-api-team
9
version: "1.0.3"
10
---
11
12
# Google Ads API Account Performance Diagnostics Skill
13
14
This skill provides instructions on how to use the Google Ads MCP server tools to diagnose common account performance issues.
15
16
## Workflows
17
18
### Pre-Flight Tool Verification
19
Before starting any diagnostic task, verify whether the Google Ads MCP Server
20
tools (`search`, `list_accessible_customers`, `get_resource_metadata` — exposed
21
with default server prefixes as `search_search`,
22
`customers_list_accessible_customers`, and `metadata_get_resource_metadata`) are
23
available in the runtime environment:
24
- **If MCP tools are available**: Proceed with live diagnostics — first
25
[identify active client accounts](#identifying-active-client-accounts), then
26
run GAQL via the `search` tool (structured parameters `customer_id`,
27
`resource`, and `fields`, plus optional `conditions`, `orderings`, `limit`,
28
and `login_customer_id`).
29
- **If MCP tools are missing**: Follow [Fallback When MCP Tools Are Unavailable](#fallback-when-mcp-tools-are-unavailable).
30
31
### Identifying Active Client Accounts
32
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.
33
34
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:
35
```sql
36
SELECT
37
customer_client.id,
38
customer_client.descriptive_name,
39
customer_client.status,
40
customer_client.manager
41
FROM customer_client
42
WHERE customer_client.status = 'ENABLED' AND customer_client.manager = FALSE
43
```
44
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.
45
46
### Fallback When MCP Tools Are Unavailable
47
When Google Ads MCP tools (`search`, `list_accessible_customers`,
48
`get_resource_metadata` — exposed with default server prefixes as
49
`search_search`, `customers_list_accessible_customers`, and
50
`metadata_get_resource_metadata`) are not registered in the runtime environment:
51
1. **Inform the User**: State that live account performance diagnostics require the Google Ads MCP Server.
52
2. **Reference Setup Guide**: Direct the user to the setup instructions in the
53
`google-ads-api-mcp-setup` skill to install and configure the Google Ads MCP
54
Server for their assistant environment.
55
3. **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:
56
- 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).
57
- Explain all metric conversion and constraint gotchas (`metrics.cost_micros / 1,000,000` for currency, impression share reported as decimals or `"< 0.10"`, `change_event` 30-day window and `LIMIT 10000` without `metrics.*`, and `successful_event_count / total_event_count` plus `status` for upload health).
58
- Outline concrete **actionable next steps** for each diagnostic branch (e.g., raising campaign budgets when `search_budget_lost_impression_share` is high vs. improving ad quality or bids when `search_rank_lost_impression_share` is high).
59
4. **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.
60
61
### 1. Conversion and Conversion Value Loss
62
63
When conversions or conversion value suddenly decline, use the following steps to diagnose the issue.
64
65
**Steps:**
66
1. **Discover Fields**: Use `get_resource_metadata` with `resource_name` set to `campaign` or `ad_group` to ensure you have the correct field names.
67
2. **Query Performance**: Use `search` to retrieve performance data.
68
* **Resource**: `campaign` or `ad_group`
69
* **Fields**: Include `campaign.name`, `metrics.conversions`,
70
`metrics.conversions_value`, `metrics.cost_micros`, plus segment fields
71
(`segments.date`, `segments.device`, `segments.conversion_action`)
72
inside `fields` rather than as a separate `segments` argument.
73
* **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}'`).
74
* *Gotcha*: `metrics.cost_micros` must be divided by 1,000,000 to get standard currency amounts.
75
* *Gotcha (conversion action segmentation)*: In GAQL, `metrics.cost_micros` cannot be selected when segmenting by `segments.conversion_action`. Query conversion action breakdowns separately without `metrics.cost_micros`.
76
77
**Example GAQL Queries:**
78
1. To query performance and cost by date and device:
79
```sql
80
SELECT
81
campaign.name,
82
metrics.conversions,
83
metrics.conversions_value,
84
metrics.cost_micros,
85
segments.date,
86
segments.device
87
FROM campaign
88
WHERE segments.date >= '{start_date}' AND segments.date <= '{end_date}'
89
```
90
91
2. To query conversion breakdown by conversion action (without `metrics.cost_micros`):
92
```sql
93
SELECT
94
campaign.name,
95
metrics.conversions,
96
metrics.conversions_value,
97
segments.date,
98
segments.conversion_action
99
FROM campaign
100
WHERE segments.date >= '{start_date}' AND segments.date <= '{end_date}'
101
```
102
103
3. **Analyze**: Check if the loss is limited to certain devices (e.g., mobile vs desktop) or specific conversion actions.
104
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.
105
106
**Example GAQL Query:**
107
To check upload pipeline health for a customer account `{customer_id}`:
108
```sql
109
SELECT
110
offline_conversion_upload_conversion_action_summary.conversion_action_name,
111
offline_conversion_upload_conversion_action_summary.successful_event_count,
112
offline_conversion_upload_conversion_action_summary.total_event_count,
113
offline_conversion_upload_conversion_action_summary.status
114
FROM offline_conversion_upload_conversion_action_summary
115
```
116
117
### 2. Opportunities Lost (Impression Share)
118
119
To identify lost opportunities due to ad rank, bids, or budgets, analyze impression share metrics.
120
121
**Steps:**
122
1. **Query Impression Share**: Use `search` to retrieve impression share metrics.
123
* **Resource**: `campaign`
124
* **Fields**: Include `campaign.name`, `metrics.search_impression_share`, `metrics.search_rank_lost_impression_share`, `metrics.search_budget_lost_impression_share`.
125
* *Gotcha*: Impression share values in the API are returned as decimals (e.g., 0.35 = 35%) or formatted strings (e.g., `"< 0.10"`).
126
127
**Example GAQL Query:**
128
To query impression share metrics for a customer account `{customer_id}` between `{start_date}` and `{end_date}`:
129
```sql
130
SELECT
131
campaign.name,
132
metrics.search_impression_share,
133
metrics.search_rank_lost_impression_share,
134
metrics.search_budget_lost_impression_share
135
FROM campaign
136
WHERE segments.date >= '{start_date}' AND segments.date <= '{end_date}'
137
```
138
139
2. **Analyze**:
140
* High `search_budget_lost_impression_share` indicates opportunities lost due to limited budget.
141
* High `search_rank_lost_impression_share` indicates opportunities lost due to low ad rank (bid or quality issues).
142
143
### 3. Low Lead Flow Diagnostics
144
145
When a user asks "why is my lead flow low these past few days?", follow this systematic approach.
146
147
**Steps:**
148
1. **Confirm Drop**: Query conversions segmented by date for the last few days vs the previous period.
149
2. **Isolate Cause**:
150
* Check if **Traffic** (clicks, impressions) dropped.
151
* Check if **Conversion Rate** (conversions/clicks) dropped.
152
153
**Example GAQL Query (Traffic and Conversion Trends):**
154
To query traffic and conversion rate metrics across campaigns segmented by date:
155
```sql
156
SELECT
157
campaign.id,
158
campaign.name,
159
segments.date,
160
metrics.impressions,
161
metrics.clicks,
162
metrics.ctr,
163
metrics.conversions,
164
metrics.conversions_from_interactions_rate
165
FROM campaign
166
WHERE segments.date >= '{start_date}' AND segments.date <= '{end_date}'
167
ORDER BY segments.date DESC
168
```
169
170
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.
171
4. **If Conversion Rate Dropped**: Check breakdowns by `segments.device` or `segments.conversion_action` to see if a specific area is failing.
172
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.
173
* *Gotcha (change_event constraints)*: Queries to the `change_event` resource:
174
* Must specify a `LIMIT` clause of less than or equal to 10000.
175
* Must filter by date (`change_event.change_date_time`) within the past 30 days.
176
* Cannot select performance metrics (e.g., `metrics.*` is not supported; only `change_event` attributes and allowed resource fields can be selected).
177
178
**Example GAQL Query:**
179
To query change events for a customer account `{customer_id}` between `{start_date}` and `{end_date}`:
180
```sql
181
SELECT
182
change_event.change_date_time,
183
change_event.change_resource_name,
184
change_event.resource_change_operation,
185
change_event.changed_fields
186
FROM change_event
187
WHERE change_event.change_date_time >= '{start_date}' AND change_event.change_date_time <= '{end_date}'
188
LIMIT 10000
189
```
190
191
### 4. Offline Upload Pipeline Diagnostics
192
193
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.
194
195
**Steps:**
196
1. **Retrieve Client Accounts**: If `{customer_id}` is not provided, follow [Identifying Active Client Accounts](#identifying-active-client-accounts) to retrieve active client customer accounts.
197
198
2. **Verify Pipeline Health**: Query `offline_conversion_upload_conversion_action_summary` for the active client account.
199
* **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`.
200
201
**Example GAQL Query:**
202
```sql
203
SELECT
204
offline_conversion_upload_conversion_action_summary.conversion_action_name,
205
offline_conversion_upload_conversion_action_summary.successful_event_count,
206
offline_conversion_upload_conversion_action_summary.total_event_count,
207
offline_conversion_upload_conversion_action_summary.status
208
FROM offline_conversion_upload_conversion_action_summary
209
```
210
211
3. **Analyze**:
212
* *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.
213
* 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.
214
215