Hi,
Thank you for reaching out to the Google Ads API support team.
I understand that you are looking for guidance on how to retrieve the actual names for geo target constants across the postal codes, city and metro. I would recommend you to use the
geo_target_constant resource to retrieve the actual names for the geo target constants using the Google Ads API. However, I am providing the sample GAQL query on how to fetch the location by its resource name:
SELECT geo_target_constant.canonical_name,
geo_target_constant.country_code,
geo_target_constant.id,
geo_target_constant.name,
geo_target_constant.status,
geo_target_constant.target_type
FROM geo_target_constant
WHERE geo_target_constant.resource_name = 'geoTargetConstants/{criterionId}'
I would recommend you to refer to the '
Looking up geo constants' guide for more information. Additionally, you can utilize the
Google Ads Query Builder and
Query Validator to build and validate the queries for retrieving the data from the Google Ads API.
