Hi,
Thank you for reaching out.
For the keyword text, you can use: googleAdsRow.getSegments().getKeyword().getInfo().getText().getValue()
For the ad group criterion ID, you have to get the resource name by using the following: googleAdsRow.getSegments().getKeyword().getAdGroupCriterion().getValue()
As a tip for getting these values, you can print the whole GoogleAdsRow to the console and follow the printed hierarchy.
Regards,
Mitchell
Google Ads API Team
![](https://ci5.googleusercontent.com/proxy/wRXcA_Jwb4tT8crdGpP-bxx1bU4oMlao_L-TFYdmUZSgc4gdikDokK4NEBDsCOpAktLfy2O6XbGcgopOXCF9XvbMkn4oc_nP2mNdAPRikQLrZPWqjKC3oGV1TvaM0yRongZ_dQP0-gplGabFhHY_7LxKzJAQwIQ9Z-JK6H1s5hQzLxxvyA=s0-d-e1-ft#http://google-dev-relations.my.salesforce.com/servlet/servlet.ImageServer?oid=00D1U000001174p&esid=0184Q000019CduR)
ref:_00D1U1174p._5004Q219gK4:ref