
The next step is to create the service account, click Menu ☰ > IAM & Admin > Service Accounts, click Create service account, enter the service account name and ID, click Create and continue, optionally select roles, we can leave it blank, click Continue and Done. Once the project is created, we need to enable the APIs that we want to access, in this case, Google Drive API, click Menu ☰ > APIs & Services> Library, search for Google Drive API, and select it, in the next screen, click enable. To create a service account, first, you need to create a project in the google cloud platform to associate the account with, go to the google cloud console, if it is the first time you are accessing it, you will need to accept the Terms of Service, once there, at the top-left, click Menu ☰ > IAM & Admin > Create a Project, enter a project name, optionally edit the project ID and click create. Next to the API you want to disable, click Disable.If you need to access your files from a program in Google Drive without needing you to authenticate yourself, that is, a machine-to-machine communication, then you will need to set up a service account.If the API Manager page isn't already open, open the console left side menu and select API Manager.For more information, see APIs and Billing. You can disable an API for a project at any time, although any pending fees will still be charged to your account and you'll be charged for any billable API use in your projects. When more information is requested, it will not be shared outside of Google it's used to help Google understand how the API is being used and as a secondary contact should we need to contact you regarding your use of the service. Others might ask for additional information, such as your organization's contact information and the name of the application you are developing. Some APIs are in preview mode, meaning that they require special signup and whitelisting before you can use them. Some APIs will prompt you to accept their Terms of Service before you can enable them.

Note: The process of enabling an API varies depending on the API.


If you need help finding the API, use the search field. If the APIs & services page isn't already open, open the console left side menu and select APIs & services, and then select Library.From the projects list, select a project or create a new one.

Enabling an API associates it with the current project, adds monitoring pages, and enables billing for that API if billing is enabled for the project.
