Now, select an existing project, if any. Otherwise, opt for to Create a New Project option. Note: If there is any existing project check whether it contains the required API, Admin SDK, Google Drive, Contacts, Calendar, Chat, Hangout.)
Click on the Credentials tab from the left section.
After that, select the Create Credentials option.
Choose Service account from the drop-down list.
Furthermore, enter the following account details to the Service Account: Name, ID, and Description. Press the
Create and Continue button.
After that, select a specific Project and employ a suitable role (recommended role: Owner).
Now, click the Continue button to move to the next step.
Click Done. It will create the new Service Account successfully.
Next, press the Edit Account option to make suitable changes.
In the next wizard, check the service account ID and copy it for further use.
How to Create a p12 File?
Go to the newly created Service Account and press Edit.
Switch to the Keys section and hit the Add Key button.
Now, select the Create New Key option.
After that, select the p12 file as the file type and press the Create button.
It will save the Private Key to your system. Copy the Private Key Password for further use and press Close.