Thanks !we have successfully get the data
but we found that some country_criterion_id cannot return data from the
*geo_target_constant*
<https://developers.google.com/google-ads/api/fields/latest/geo_target_constant>
for example 2192 and 2364
we also search from the CSV of geo targets it's not a Criteria ID
or Parent ID
geographic_view {
resource_name:
"customers/***********/geographicViews/2192~LOCATION_OF_PRESENCE"
country_criterion_id: 2192
}
shell we ask the reason?And how to locate this country_criterion_id ?
在2025年9月15日星期一 UTC+8 17:58:23<Google Ads API Forum Advisor> 写道:
> Hi,
>
> Thank you for reaching out to the Google Ads API support team.
>
> Based on the provided information, I understand that you want to retrieve
> the metrics including ad group and location through the Google Ads API. I
> would recommend you to use the *geographic_view*
> <https://developers.google.com/google-ads/api/fields/latest/geographic_view>
> report
> to retrieve the matched locations data of the ad group through the Google
> Ads API. Please be informed that the *geographic_view*
> <https://developers.google.com/google-ads/api/fields/v19/geographic_view>
> report is used to retrieve the data displayed for an ad group under the
> ‘Insights and Reports’ -> ’When and where ads showed’ -> ’Matched
> locations’ tab in the UI. Kindly use the below sample GAQL query by giving
> the ag group ID, this query retrieves only the IDs of the state and city.
>
>
> SELECT segments.geo_target_state, segments.geo_target_city, campaign.name,
> ad_group.name, ad_group.id, segments.geo_target_region,
> segments.geo_target_county, geographic_view.resource_name,
> geographic_view.location_type, geographic_view.country_criterion_id FROM
> geographic_view WHERE ad_group.id = XXXXXX
>
> After retrieving the IDs as "geoTargetCity": "geoTargetConstants/******",
> "geoTargetState": "geoTargetConstants/*****", you can use the following
> query to retrieve the corresponding state and city names using
> *geo_target_constant*
> <https://developers.google.com/google-ads/api/fields/latest/geo_target_constant>
>
> report.
>
>
> SELECT geo_target_constant.canonical_name, geo_target_constant.country_code,
> geo_target_constant.resource_name, geo_target_constant.name,
> geo_target_constant.id FROM geo_target_constant WHERE geo_target_constant.id
> = *****
>
> You can use the* search*
> <https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.googleAds/search?apix=true>
>
> or* searchStream*
> <https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.googleAds/searchStream?apix=true>
>
> methods in making the API calls while retrieving the data. Additionally,
> you can utilize the *Google Ads Query Builder*
> <https://developers.google.com/google-ads/api/fields/v20/geo_target_constant_query_builder>
>
> and *Query Validator*
> <https://developers.google.com/google-ads/api/fields/v17/query_validator>
> to build and validate the queries for retrieving the data from the Google
> Ads API. Additionally, please specify the geoTargetState and geoTargetCity
> IDs individually in the geo_target_constant.id field to retrieve the
> corresponding state and city names.
>
> If this is not what you are looking for, kindly provide the uncropped UI
> screenshot of the data that you are trying to retrieve along with the *Google
> Ads customer ID*
> <https://support.google.com/google-ads/answer/1704344?hl=en&sjid=10686818941406815727-AP>
>
> so that we can investigate your issue further.
>
> You can send the details via *Reply privately to the author option*, or
> *direct
> private reply* to this email.
> Thanks,
>
> [image: Google Logo] Google Ads API Team
> Feedback
> How was our support today?
>
> [image: rating1]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=1&entry.295079254=500Ht00001u6bxhIAA>
>
> [image: rating2]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=2&entry.295079254=500Ht00001u6bxhIAA>
>
> [image: rating3]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=3&entry.295079254=500Ht00001u6bxhIAA>
>
> [image: rating4]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=4&entry.295079254=500Ht00001u6bxhIAA>
>
> [image: rating5]
> <https://docs.google.com/forms/d/e/1FAIpQLSeRhIg5VeThVmbcD0c5DTWTDjmpJuSktN8vFelEL7_KV_Orbg/viewform?usp=pp_url&entry.141427034=5&entry.295079254=500Ht00001u6bxhIAA>
> [2025-09-15 09:57:28Z GMT] This message is in relation to case
> "ref:!00D1U01174p.!500Ht01u6bxh:ref" (ADR-00332746)
>
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/adwords-api/49d803b0-e1a4-4910-b45d-f66dbe2d2cden%40googlegroups.com.