Hi Ankit,
Thank you for reaching out. It is not possible to preview the Ad before publishing it via API. Please note, you can preview your Ad via UI only. Let us know if need additional information.
Regards,
Nikisha Patel, Google Ads API Team