Standalone Gmail Campaigns Becoming Read Only In Google Ads
https://ads-developers.googleblog.comStarting on July 8, 2021, all standalone Gmail campaigns will become read-only. This means that you will not be able to create new campaigns or create ad groups in existing campaigns of this type after that date. This applies not only to the Google Ads and AdWords APIs, but also to any other interface you use to manage your Google Ads accounts.
There is no general workaround for API users to continue to be able to target Gmail specifically. If you would like to continue to target Gmail, you can use Discovery campaigns, which include Gmail ads, in the Google Ads web interface.