Hi Ameya,
Thanks for reaching out. You can use the AdGroupCriterionService.MutateAdGroupCriterion using AdgrouCriterionOpration for adding ad group criterion. We do not have an exact sample code example but you may refer to this code example to add targeting criterion but replacing it with the AdGroupCriterionopration instead of CampaignCriterionOperation.