Hi Kiran,
Thank you for reaching out. If you are using Adwords API, you could query the Ad Performance Report to fetch data on the Ad level. If you are using Google Ads API, you could query the ad_group_ad resource instead. Please let me know if you have any further concerns.
Thanks and regards,
Xiaoming, Google Ads API Team