Registering your client application with Google Cloud involves three basic steps: creating a Google Project, registering the application, and creating OAuth credentials.

Create a Google Cloud project

If you do not already have a Google Cloud project to access Google Analytics resources, you must create one to register a client application.

Take the following steps to create a Google Cloud project.

  1. Go to Google Developer Console.
  2. Navigate to Enabled APIs & services.
  3. Create the project using one of the following methods:
    • If you have no projects, click CREATE PROJECT.
    • If you are in a project but want to create a new one, select the project you are in, and then click NEW PROJECT.
  4. Specify the project name in the Project name field.
  5. Specify the location in the Location field.
  6. Click CREATE.

Results:

You have created a Google Cloud project. From within this project, you will register your client application and create OAuth credentials.

Register the application

Take the following steps to register an application to access the resources of a Google Cloud project.

  1. From the Google Developer Console, navigate to the APIs & Services > OAuth Consent screen.
  2. Select the User Type.
  3. Click CREATE.
  4. Complete the application registration forms.

    OAuth Consent Screen form

    1. Specify values for the following fields.
      • App name
      • User support email
      • App logo
      • Application home page
      • Application privacy policy link
      • Application terms of service link
      • Authorized domain
      • Developer contact information
    2. Click SAVE AND CONTINUE.

    Scopes form

    1. Click ADD OR REMOVE SCOPES.
    2. Select the scope or scopes to specify permissions for the client application. In some cases, you may need to manually enter scopes. The following scopes are the default scopes used by the driver and provide read-only access to Google Analytics resources.
      • View and download data:

        https://www.googleapis.com/auth/analytics

        https://www.googleapis.com/auth/analytics.readonly

      • View user permissions:

        https://www.googleapis.com/auth/analytics.manage.users.readonly

      Note: The values you select should be saved to a secure location. You will need to specify these values to obtain access and refresh tokens, as described in Obtaining access and refresh tokens using the Configuration Manager.
    3. Click UPDATE.
    4. Click SAVE AND CONTINUE.

    Test users form

    1. Click ADD USERS.
    2. Enter email address of each test user.
    3. Click ADD.
    4. Click SAVE AND CONTINUE.

    Summary Page

    1. Review the summary.
    2. Click BACK TO DASHBOARD.

Results:

The OAuth consent screen page for your application is displayed. You have completed the registration process for your application.

Create OAuth credentials

Take the following steps to create client ID and client secret OAuth credentials for your application.

  1. From the Google Developer Console, navigate to the Credentials screen by clicking Credentials on the left.
  2. Click CREATE CREDENTIALS and select OAuth client ID.
  3. Select an application type, and enter the requested information.
    Note: The Desktop app option is a common option for initially setting up and testing the driver from localhost. If you are using Progress DataDirect Hybrid Data Pipeline, choose Web application even if you have deployed Hybrid Data Pipeline on a local machine.
  4. Click CREATE.

    Step result: A dialog is displayed with the client ID and secret.

  5. Save the application information to a secure location using one of the following methods:
    • Download the JSON file and save it to a secure location. The JSON file includes the client ID and secret as well as summary information about the client application, including useful endpoints.
    • Copy the client ID and secret, and save them to a secure location.
    Note: The values for the client ID and secret should be saved to a secure location. You will need to specify these values for the ClientID and ClientSecret connection options.

Results:

You have created OAuth credentials for your client application.