Hello,
Thank you for reaching out to the Google Ads API Support.
Please note that Keywords are Ad Group Criteria. While using keyword_view report, you may add the resource field “keyword_view.resource_name” in your query, since based on this reference document you are able to obtain the ad_group_id with criterion_id as keywordViews id, the format looks like this customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id} from the resource name you have queried.
Alternetively, you may use keyword_view report and use ad_group_criterion.criterion_id field to get the keyword ID via reporting.
Here's the below sample GAQL:
SELECT ad_group_criterion.criterion_id FROM keyword_view
Let us know if you have any additional questions.
Regards,
![]() |
Google Ads API Team |