Recently, when Drive API is enabled at Advanced Google services with the script editor, Drive API v3 is automatically used. In the official document, Drive API v3 has already been used. Ref In the current stage, the users can select V3 and V2.
When Drive API v3 is used with Advanced Google services, the following advantages can be considered.
- Drive API v3 can be used with only the scopes for Drive API without adding a scope
https://www.googleapis.com/auth/script.external_request
. - The files and folders can be searched by the search query of
createdTime
. Ref
References:
-
You can see the official document of “Drive API v2 & v3 comparison reference”.
-
Google Apps Script release notes on December 11, 2023
(Generally Available): You can now call version 3 of the Google Drive API from Apps Script with the advanced Drive service. To learn more, see Advanced Drive service.