Hi Suresh,
You would need to specify an
AdGroupId when creating ads via the AdWords API. Furthermore, associating an existing ad to a different ad group is currently not supported in the AdWords API. You may reach out to the product experts via the
Google Ads Community Forum to verify if this is supported in the Google Ads UI. I hope this helps.
Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UEGLkr:ref