title: Gmail Push Notifications for regular Accounts
body: <p>I'm trying to create an app that can send new mails in gmail to a Google Sheet. I'm trying to use the push notification from PubSub and trigger the push to Google Sheet. But the problem is PubSub works with Service Accounts and Service Accounts only works with Google Workspace accounts (like Organization accounts) and not regular gmail accounts. So, is it not possible to create Push Notification for Gmails for regular accounts?</p>
  <p>Edit:</p>
  <p>Sorry, I should have been more specific and clearer. I'm able to create service accounts. I'm able to create topics, subcriptions etc without need of Google Workspace. But the challenge I'm facing is on the authorization flow. A Gmail Web App needs authorization from the gmail account owner to access user. I'm able to do this using OAuth 2.0 Client IDs. The below flow process takes the user to the authorization page and the user is able to authorize the app.</p>
  <pre><code>flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
        CLIENT_SECRETS_FILE, scopes=SCOPES)
  </code></pre>
  <p>But for Service Accounts, I don't see a similar authorization flow. I'm trying to use this authorization and use pubsub to get gmail push notification to my app. I can provide more details if needed.</p>