Hi,
Thank you for reaching out to the Google Ads API support team. I hope that you are doing well today.
It appears that the error you encountered is FeedItemError.LEGACY_FEED_TYPE_READ_ONLY. The possible reason why this error occurred is because this feed type is migrated over to asset. The feed type is already deprecated and read-only, so the user cannot modify it. For more information, you may check this blog post and this guide in Asset-based Extensions Migration.
Let me know if you have further questions.
Kind regards,
Google Ads API Team