Hi Suresh,
Thank you for contacting support.
Unfortunately, we do not have an exact sample code that on how to create TextAsset using the AssetService. However, you can refer to this
sample code (also available in different languages) on how to create responsive search ads. This guide includes on how you can associate
TextAsset in your ads.
Let me know if you have further clarifications.
Regards,
Dannison
Google Ads API Team

ref:_00D1U1174p._5001UEIC9T:ref