If you're referring to the AdGroup, you may use the
AdGroupService.mutate() operation to update the status of the AdGroup. You may refer to the
UpdateAdGroup code sample in the respective client library as a reference. If you're referring to the Campaign Group, you may use the
CampaignGroupService.mutate() to update the status. Could you please take a look and let me know if you have any questions?