You need an active Google account with Google Drive service as a prerequisite for generating Google Drive API credentials.
First, register your Google account on the Google Cloud Platform. Navigate to ‘Google Cloud Paltform’ You might need to provide your Credit card details to complete the registration.
Now, create a new Project from the menu.
Go to the ‘Credentials’ subtab and you can also create an app for the integration. Choose the app type based on your preferences.
You can use the ‘Client IDs’ present on the page.
Click the ‘Add Client Secret’ button to generate client secret values.
Make sure to enable the Google Drive API for the application.