Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Issue with CriteriaID

19 views
Skip to first unread message

cv

unread,
Apr 22, 2025, 7:44:38 AMApr 22
to Google Ads API and AdWords API Forum
Hi Team,

I can see that there is 2 different CriteriaID for the same CanonicalName.
CanonicalName : Las Vegas,Nevada,United States has 2 CriteriaID (1022639 and 9197757)
how I can identify which need to use?

Thanks,

Google Ads API Forum Advisor

unread,
Apr 22, 2025, 9:10:06 AMApr 22
to chirag....@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

Note that the same canonical name can have multiple criterion IDs due to different levels of targeting. A canonical name might represent the same general location or other criteria, but the specific ID depends on the granular level of detail the targeting is set at. For example targeting a city or region or metro etc.

I would recommend you to use the below query that fetches the location targeting details with canonical names and criteria IDs to know which one to use. I.e., you can use the criteria ID which has an ‘ENABLED’ status.

SELECT geo_target_constant.canonical_name, geo_target_constant.country_code, geo_target_constant.id, geo_target_constant.name, geo_target_constant.parent_geo_target, geo_target_constant.resource_name, geo_target_constant.status, geo_target_constant.target_type FROM geo_target_constant WHERE geo_target_constant.country_code = <country_code>

You can use the search or searchStream methods in making the API calls while retrieving the data. 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.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-22 13:04:47Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qUXuG:ref" (ADR-00300701)



Reply all
Reply to author
Forward
0 new messages