Hi Charles,
The keyword Id may or may not be the same, as the criteria Id is not globally unique. However, while generating the reports you may use the (AdGroupId, CriterionId) or the (CampaignId, CriterionId) pairs which are globally unique. Please refer to
this guide for more information. Let me know if you have any further questions.
Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UMWMCn:ref