Prerequisite
A project in Developer Portal
The APIs you want to use are enabled in the project
Steps
1. On the left-side navigation menu, click on the Credentials entry.
2. Select the Service account tab.
3. Click on the Create new service account button.
4. On the next screen, configure your new service account.
Name: Name your service account or go with the pre-populated name. This name is only used to identify the client in Developer Portal and will not be shown to end users.
Base URL: The base URL of the website to which this client belongs. This is a piece of descriptive information that we use to trace back suspicious activities.
Description: A short description to help your users understand what this service account does before sharing their data.
Allow sharing data: This gives your users the option to share their data with this service account.
API scope restrictions:
Keep the API Scope toggle deactivated if you want access to any API scopes in the project.
If you want to restrict specific scopes the service account has access to, activate the toggle and select the scope(s). Only the scopes of enabled APIs will be available. If the toggle is activated, but no scopes are added, the API request will not work.
5. After entering all required fields, click on the Save button to finish. You will then be redirected to the Credentials screen, where your client ID and client secret are displayed on a popup window.
Please note that access to enterprises must be granted in AdminCom before this service account can be used to retrieve data. Learn how access is granted to your service account here.