Cannot write to google sheets using Apikey authentication type in UiPath

Solution for Cannot write to google sheets using Apikey authentication type in UiPath
is Given Below:

I am trying to use write range to write to google sheets but encountered the following error:

Write Range: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. [401]

I am using ApiKey in GSuite Application Scope. According to the gsuite documentation here,https://docs.uipath.com/activities/docs/gsuite-application-scope , I should be able to use write range (a Google sheet activitie) using ApiKey. But why does the error message suggest that I need OAuth authentication?

enter image description here

Note: there was no issue when I use the read range from google sheet within the same workflow