Welcome to Microsoft Q&A! Thanks for posting the question.
If you want to use the Gmail connector, only G-Suite business accounts can use this connector without restriction in logic apps. If you have a Gmail consumer account, you can use this connector with only specific Google-approved services, or you can create a Google client app to use for authentication with your Gmail connector. For more information, see Data security and privacy policies for Google connectors in Azure Logic Apps.
Unfortunately, this is the only way: https://learn.microsoft.com/en-us/azure/connectors/connectors-google-data-security-privacy-policy#steps-for-affected-logic-apps