Query and change errors
For AI assistants and the curious. What to do when Google rejects a query or a change, by error code, plus renamed fields and Analytics fields that clash.
Most of these mean the call was built wrong, so the assistant fixes the call itself and runs it once more. There is nothing for you to do unless the entry says so. A refused query reads nothing and changes nothing.
Google's query errors arrive as
Google Ads rejected the query: <category> <CODE> at <field>: <Google's message>.
Match on the code in capitals.
UNRECOGNIZED_FIELD
What you see.
Google Ads rejected the query: query_error UNRECOGNIZED_FIELD: … Call get_resource_metadata with the resource name for the fields it can select, filter and sort by; field names are written in full, e.g. 'campaign.id'.
Why it happens. A field name in fields, conditions or orderings is
not one Google knows for that resource.
Fix (assistant).
- Call
get_resource_metadatawith the resource name. It lists the fields the resource can select, filter and sort by, and does not count against the daily operations. - Use a listed field, written in full (
campaign.id, notid). - Run the query once more.
If it persists. Pick another resource that carries the data, or tell the user what could not be read.
Names Google changed. Some names an assistant remembers are no longer Google's. AdCopilot knows these and answers them itself:
| Old name | Now |
|---|---|
campaign.start_date, campaign.end_date | campaign.start_date_time, campaign.end_date_time; the values include the time, like 2026-10-01 00:00:00 |
metrics.video_views, metrics.video_view_rate, metrics.video_view_rate_in_feed, metrics.video_view_rate_in_stream, metrics.video_view_rate_shorts, metrics.average_cpv | metrics.video_trueview_views, metrics.video_trueview_view_rate, metrics.video_trueview_view_rate_in_feed, metrics.video_trueview_view_rate_in_stream, metrics.video_trueview_view_rate_shorts, metrics.trueview_average_cpv |
campaign.url_expansion_opt_out, campaign.final_url_expansion_opt_out | campaign.asset_automation_settings: the entry of type FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION has the status OPTED_IN or OPTED_OUT |
asset_group_asset.performance_label | Removed by Google, with no replacement. To compare assets, read metrics such as metrics.impressions, metrics.conversions and metrics.cost_micros from asset_group_asset with a date range; asset_group_asset.primary_status says whether an asset is serving |
campaign.maximize_clicks.cpc_bid_ceiling_micros, campaign.maximize_clicks.target_spend_micros | campaign.target_spend.cpc_bid_ceiling_micros, campaign.target_spend.target_spend_micros (Google deprecated the second): its API calls Maximize clicks target_spend |
campaign.conversion_goal_config.goal_config_level, campaign.conversion_goal_campaign_config.goal_config_level, campaign.conversion_goal_config.custom_conversion_goal | Not campaign fields: read goal_config_level and custom_conversion_goal from the conversion_goal_campaign_config resource |
An old campaign date in fields or orderings is swapped for the new name
and the result says so, in one line: "Note: Google renamed
campaign.start_date to campaign.start_date_time …". The old date in a
condition is not swapped, because the new field's values carry a time and a
condition on them selects differently; every other name above is not swapped
either. Those calls are refused before anything is sent to Google, with each
old name and its current one: "campaign.end_date is now
campaign.end_date_time. … Nothing was sent to Google." The Tool calls list
shows the reason retired field name with the old name in brackets, such as
retired field name (campaign.end_date). Run the query again with the new
name, and in a condition write a date with its time, such as
campaign.end_date_time <= '2026-10-31 23:59:59'.
Answered before it is sent. AdCopilot checks every search against
Google's own field catalogue for the API version it speaks (the facts the
field reference publishes for each resource) before anything is sent. A name
Google does not have is answered at once with the nearest real names, for
example "campaign.nme is not a Google Ads field; the nearest campaign fields
are campaign.name. Nothing was sent to Google." So is a metric, a segment or
another resource's field that the resource in resource cannot take, and a
segment filtered or sorted by without being in fields. The Tool calls
list shows the reason query check: and the code Google would have answered
with, often followed by the field behind it in brackets, such as
query check: UNRECOGNIZED_FIELD (campaign.nme).
EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE
What you see. query_error EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE.
Why it happens. Google requires a field used in orderings, and a
segment other than the date used in conditions, to be in fields too. On a
resource whose field reference lists segmenting resources (geographic_view,
campaign_budget, landing_page_view, campaign_asset and others), the
fields of those resources count as segments: a condition on campaign.status
needs campaign.status in fields, and selecting it splits the rows by
campaign.
Fix (assistant). Add that field to fields and run the query once more.
AdCopilot says this before the query is sent: "campaign.status must also be
in fields: on geographic_view, campaign fields split the rows, and Google
filters or sorts by one only when the search selects it." When the conditions
keep one item, such as campaign.id = 123, the field is added instead,
because the rows stay the same, and the result says so in one line: "Note:
this read also selected campaign.id …". A segments. field is never added
for you: it would split the rows.
If it persists. Check the field names with get_resource_metadata.
PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE
What you see. PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE, or another
code that starts with PROHIBITED_.
Why it happens. That metric or segment cannot be read with this resource, or with another field in the same query.
Fix (assistant).
- Remove the field Google names.
- If you need it, query a resource that carries it;
get_resource_metadatashows what each resource can select. - Run once more.
If it persists. Split the question into two queries.
AdCopilot answers these before the query is sent too, with where the field can be read, for example "metrics.clicks and metrics.cost_micros are not available on ad_group_criterion; keyword_view has them and reads ad_group_criterion fields too."
METRIC_ACCESS_DENIED
What you see. METRIC_ACCESS_DENIED.
Why it happens. Google does not let this account read that metric.
Fix (assistant). Drop the metric and run once more. Tell the user which figure is not available, rather than estimating it.
START_DATE_TOO_OLD
What you see. START_DATE_TOO_OLD, usually on change_event or
change_status.
Why it happens. Google keeps change history for a limited time: about the
last 30 days for change_event and 90 days for change_status.
Fix (assistant). Use a later start_date, inside that window, and run
once more. Tell the user that older changes are not available through
AdCopilot.
"… does not take the parameter …"
What you see.
search does not take the parameter
query, so nothing was run. Its parameters are: …
In the Tool calls list on the dashboard's Usage page the reason reads
unknown argument.
Why it happens. The call used a parameter name the tool does not have. AdCopilot refuses it rather than run the tool without it.
On the AdCopilot connector, a call whose only wrong names are other
spellings of real parameter names (other capital letters, or _ and -
changed or left out: site_url for siteUrl, startDate for start_date)
runs as if the real names had been sent, and the answer ends with a note that
names them. A few tools also take one other name that can only mean one of
their parameters: gtm_list_tags, gtm_list_triggers, gtm_list_variables,
gtm_list_folders and gtm_list_built_in_variables take a whole workspace
path sent as parent, path, container, workspace_path or
workspace_id as workspace; the Analytics reads that take a property
take one sent as property_id; ga4_list_properties and
gtm_list_containers take an account_id as account; gsc_inspect_url
takes a page's whole address sent as url, page_url or page as
inspectionUrl; and save_org_context takes a last_session object sent
beside patch as patch.last_session. A call is
refused as above when it also has any other name the tool does not have, or
sends the real name as well.
search takes no query string. It builds the query from its parameters: the
resource in resource, the selected fields in fields, each filter in
conditions, the order in orderings, the row cap in limit, and the dates
in start_date and end_date. When a query was sent in query, the message
gives those parameters for that query, or how the query is built when it
cannot read it. A clause sent under a name of its own, such as order_by,
where, select or date_range, is answered with the parameter it goes in
and the shape that parameter takes, and an order is written back as
orderings takes it, with any segment it orders by that fields leaves out
(Google refuses that order).
Fix (assistant). Call again with only the parameter names the message
lists, or for search with the parameters it gives. Nothing ran, so nothing
needs undoing.
Never add a manager account ID. AdCopilot refuses it and reaches an account under a manager through that manager by itself, once the account is switched on under Ad accounts.
"image_source must be …"
What you see.
image_source must be an http:// or https:// address of the image, or the image itself as a data: URI (data:image/png;base64,...). This connector cannot read files, so nothing was uploaded.
Fix (assistant). Pass the image's web address, or the image itself as a
data: URI. A file path on your computer cannot be read.
Analytics: "Selected dimensions and metrics cannot be queried together"
What you see. An Analytics report fails with HttpError 400 and
"Selected dimensions and metrics cannot be queried together".
Why it happens. Google Analytics does not combine those dimensions and metrics in one report.
Fix (assistant).
- Call
ga4_get_metadatafor the property to see its dimensions and metrics. - Remove the dimension or metric that doesn't fit, or split the report in two.
- Run once more.
TOO_LONG
What you see. TOO_LONG, with the field it is about, for example a
headline or a description. For a sitelink, a callout or a structured snippet
value, AdCopilot counts the text before sending it: one longer than Google
allows is refused with the field and its length, nothing is sent to Google,
and the Tool calls list shows asset text too long.
Why it happens. A text is longer than Google allows for that field. Google's limits include 30 characters for a responsive search ad headline, 90 for a description, 15 for each display path, 25 for sitelink text, for a callout and for a structured snippet value, and 35 for each sitelink description line.
Fix (assistant).
- Shorten the text Google names to its limit.
- Show the user the new text. It is a new change, so ask for it as one.
- Run once more.
POLICY_ERROR
What you see. POLICY_ERROR, or a policy finding, with Google's
message naming the policy.
Why it happens. Google's ad policies refused the text, for example a word, a claim or a symbol.
Fix.
- The assistant tells the user which policy Google named.
- Reword the text without what Google flagged, and propose it again.
- AdCopilot cannot ask Google for a policy exception. If you think Google is wrong, that is done in Google Ads.
RESOURCE_LIMIT
What you see. RESOURCE_LIMIT.
Why it happens. The account, campaign or ad group already holds as many of that kind of item as Google allows.
Fix.
- The assistant tells the user; repeating the call gives the same answer.
- Pause or reuse an existing item instead of adding another, or remove one in Google Ads.
CONCURRENT_MODIFICATION
What you see. CONCURRENT_MODIFICATION.
Why it happens. Something else changed the same item at the same moment: another person, a Google Ads rule, or another call.
Fix (assistant). Wait a few seconds, read the item again, and try the change once more if it is still needed.
"… was removed in Google Ads"
What you see.
That ad group, or the campaign it is in, was removed in Google Ads, so it cannot be changed or paused. Nothing was changed. Pick an ad group that is still enabled or paused, or create a new one. …
The same sentence names an ad, a keyword, a campaign or an asset link when
that is what the change was for. Google's own code is
OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE.
A campaign change that also carried a new budget amount reads differently, because the amount goes to Google before the campaign's other settings:
Its other settings were not changed, but the new budget amount may already be applied, because it is sent before them: check the budget in Google Ads before trying again.
A refusal that also holds another Google error keeps Google's own text, so the other error is not hidden.
Why it happens. The item, or the campaign or ad group it sits in, was removed in Google Ads earlier. Google does not let a removed item be changed, paused or switched back on, and the connector can't bring it back. Google can keep an ad's or keyword's own status when its campaign or ad group is removed, so the item's own status does not show it.
Fix (assistant).
- Do not repeat the change: it gets the same answer.
- Search for items that are still live: put
<resource>.status != 'REMOVED'inconditions(ad_group.statusfor ad groups,ad_group_ad.statusfor ads,ad_group_criterion.statusfor keywords,campaign.statusfor campaigns). For an ad group, ad or keyword addcampaign.status != 'REMOVED'too, andad_group.status != 'REMOVED'for an ad or keyword.list_asset_linksleaves out a link that was removed, but lists a link on a removed campaign or ad group: check the campaign or ad group the same way. - Make the change on one of those, or propose a new one, and tell the user which.
If it persists. The user can check the item in Google Ads: a removed item shows there as removed.
Any other Google error
What you see. "Google Ads rejected the query: …" with another code, or,
for a change, Google's raw GoogleAdsException with an error_code and a
message.
Fix (assistant).
- Read the code and Google's message: they name the field and the rule.
- Fix the call and run it once more.
- If the same error comes back, stop and tell the user Google's message.
- Before repeating a change, read the item back: a call that makes several changes can stop partway.
If it persists. The user can write to support@adcopilot.cloud with the error text and what was asked for.
Teammate problems
When calls fail for one teammate, an account isn't shared with you, a shared Google login refuses a call, a product uses a teammate's login, or access stopped.
Busy, slow or rate-limited
Google asking for a pause, Google Ads is busy, RESOURCE_EXHAUSTED, the one-request-per-second rule, HTTP 429 and Google's 500 errors. None is your plan's cap.