You need to set an admin account with:
.setServiceAccountUser(some_admin_email)
And make sure your App (with the correct scopes) is granted access in the cpanel.
More Related Contents:
- Where can I get Google developer key
- How do I authorise an app (web or installed) without user intervention?
- Restrict Login Email with Google OAuth2.0 to Specific Domain Name
- Error: ‘The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console.’
- OAuth2 and Google API: access token expiration time?
- Migrating 50TB data from local Hadoop cluster to Google Cloud Storage
- Error: invalid_client no application name
- What are the alternatives now that the Google web search API has been deprecated? [closed]
- This IP, site or mobile application is not authorized to use this API key
- Can I really not ship open source with Client ID? [closed]
- Getting Google+ profile picture url with user_id
- How do I add/create/insert files to Google Drive through the API?
- The signing fingerprint you specified is already used by another Android OAuth2 client
- Google Speech Recognition API Result is Empty
- Google image search says api no longer available
- Lookup City and State by Zip Google Geocode Api [closed]
- google plus api: “insufficientPermissions” error
- Google Sheets API returns “The caller does not have permission” when using server key
- Google Contacts API vs People API
- Google Video no longer able to retrieve captions?
- Google Calendar API v3 – authenticate with hardcoded credentials
- Sign in with Google temporarily disabled for this app
- Youtube video uploads rejected before API quota limit reached
- Google push notifications – Unauthorized WebHook callback channel
- Google API to get impressions of youtube videos?
- Validate Google Id Token
- Google.GData.Client.GDataRequestException – Authentication suddenly fails in old code
- Google API OAuth2, Service Account, “error” : “invalid_grant”
- What is the fastest way to update a google spreadsheet with a lot of data through the spreadsheet api?
- get_video_info YouTube endpoint suddenly returning 404 not found