Make sure the Google Cloud Platform account you are using has credit to create new projects.
- Navigate to Google Cloud Console.
- Click the icon and click the New Project button.
- Enter the name of project and click the Create button.
- In the left-hand side menu, click the IAM & Admin option and choose Service Accounts.
- Create Service Account for the newly created project.
- Enter the Service Account name and click the Create button. Enter other details (optional) and click the Done button.
The service accounts for the project are displayed.
- Click the icon and select the Create Key button.
- Select Key type and click the Create button.
A private key is saved to your computer and displays project_id, private_key_id, private_key, client_id, etc.
Enable APIs
- In the Project Dashboard, click the Go to APIs overview button to navigate to the APIs & Services window. .
- Click the ENABLE APIS AND SERVICES button.
- Click on Google Docs API.
- Click the ENABLE button.
- Similarly, enable Google Drive API and Google Sheets API.