Skip to main content
Creating OAuth credentials requires Owner or Editor permissions on the Google Cloud project.

Select or create a Google Cloud project

Google Search Console API access is granted through an OAuth client that belongs to a Google Cloud project, so start by choosing the project that will own the credentials.

1

Select or create a project

Sign in to the Google Cloud console.

  • Click the project name in the top bar to open the Select a resource dialog.
  • Pick an existing project from the list, or click New project to create one.
The Select a resource dialog in the Google Cloud console with New project highlighted

Enable the Google Search Console API

The API must be enabled on the project before its scopes can be granted or its endpoints called.

1

Enable the API

In the Google Cloud console, open APIs & Services > Library.

  • Search for Google Search Console API.
  • Open the result.
  • On the Google Search Console API product page, click Enable.
  • If the API is already enabled on this project, the button shows Manage next to an API Enabled marker instead.
  • Enable the API before configuring scopes. The scope editor only lists scopes belonging to APIs that are already enabled.
The Google Search Console API product page with the Enable button highlighted

Configure Google Auth Platform

Google Auth Platform holds the consent-screen configuration that your OAuth client presents to users. It must be configured before the client can be used.

1

Enter the app information

In the Google Cloud console, open APIs & Services > OAuth consent screen to open Google Auth Platform. In its sidebar, open Branding and fill in the App information section.

  • If it has not been configured yet, complete the getting-started flow that Overview presents, then return to Branding.
  • App name: the name shown on the consent screen when a user authorizes access
  • User support email: the address users can contact with questions about their consent
  • Click Save at the bottom of the page.
The Branding page with the App name and User support email fields highlighted
2

Set the audience

Open Audience and check User type.

  • Internal — only users in your Google Workspace organization can authorize the app, and no verification is required.
  • Click Make external to allow any Google account to authorize it. External apps need verification before general production use.
  • Google warns that OAuth access is restricted to users within your organization unless the OAuth consent screen is published and verified.
The Audience page showing User type set to Internal with the Make external button highlighted

Configure scopes

Scopes are configured on the Data Access page of Google Auth Platform.

1

Add the scopes

Enables actions: Add Site, Delete Site, Delete Sitemap, Get Site, Get Sitemap, Inspect URL, List Sitemaps, List Sites, Query Search Analytics, Submit Sitemap

In Google Auth Platform, open Data Access.

  • Click Add or remove scopes.
  • Under Manually add scopes in the Update selected scopes side panel, paste each scope listed.
  • Click Add to table.
  • Click Update.
  • On the Data Access page, click Save.
The Manually add scopes section with the text box, Add to table and Update buttons highlighted

Create OAuth 2.0 client credentials

The client is a Web application client.

1

Create the OAuth client

In the Google Cloud console, open APIs & Services > Credentials.

  • Click + Create credentials.
  • Choose OAuth client ID.
  • Application type: Web application
  • Name: StackOne Search Console Integration
  • Under Authorized redirect URIs, click + Add URI.
  • Enter the Callback URL from your Connector Profile.
  • Leave Authorized JavaScript origins empty.
  • Click Create.
  • Google notes that it may take 5 minutes to a few hours for settings to take effect, so a newly added redirect URI may not work immediately.
The Create OAuth client ID form with the Name field, redirect URI field and Create button highlighted
2

Copy the Client ID and Client Secret

Copy the Client ID and Client Secret into your Connector Profile. The OAuth client created dialog shows both values, each with a copy button.

  • The Client ID ends in .apps.googleusercontent.com
  • The Client Secret begins with GOCSPX-
  • Google warns that you will no longer be able to view or download the client secret once you close this dialog, so copy it or use Download JSON first.
  • The Client ID stays available afterwards from the Clients page in Google Auth Platform.
  • Click OK to close the dialog.
The OAuth client created dialog showing the Client ID and Client secret rows with their copy buttons highlighted

Create the StackOne Connector Profile

1

Create a Connector Profile

Enable the connector and create a Connector Profile in your project. See Setup Connector Profile.
2

Link an Account

Once the Connector Profile is created, continue to link an account.