# Setting up GCP Account, GCP Project, API Enablement, and Credentials (Prerequisites)

Follow this section to understand and complete the prerequisites for setting up the Google Drive Connector.

## Setting up a GCP Account&#x20;

A GCP Account needs to be configured to enable the Google Drive API before establishing a connection. This involves creating a project and enabling the Google Drive API in that project.

Google Cloud projects form the basis for creating, enabling, and using all Google Cloud services including managing APIs, enabling billing, adding and removing collaborators, and managing permissions for Google Cloud resources.&#x20;

Without enabling the Google Drive API, communication cannot take place between Langstack and Google Drive as a connector.

Following are the detailed steps with screenshots to configure the GCP Account.

## Create GCP Project

To use Google Drive API, you need a Google Cloud Platform Project. A Project in GCP contains the settings for the Google API to be enabled (in this case, we need to enable Google Drive API) and how an App communicates with the Google Drive (the permissions or scope of data).

To create a new Google Cloud Platform (GCP) Project, proceed as follows.

* Open the Google Cloud Console <https://console.cloud.google.com/>&#x20;
* Login to your Google Account.
* After Login, next to “Google Cloud Platform”, click the downward arrow.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdmyprojfirstarr.png" alt=""><figcaption></figcaption></figure>

* Click on New Project.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdcreateproject.png" alt=""><figcaption></figcaption></figure>

* The navigation displays the New Project screen. In the Project Name field, enter a descriptive name for your project.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdprojectname.png" alt=""><figcaption></figcaption></figure>

* To edit the Project ID, click Edit (Optional). The project ID cannot be changed after the project is created.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdeditprojectname.png" alt=""><figcaption></figcaption></figure>

* In this case, the Location name is provided. To add a new Location, click Browse to display potential locations for your project.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdbrowselocations.png" alt=""><figcaption></figcaption></figure>

* Then click the \[ Create ] button to create this project.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdprojectcreate.png" alt=""><figcaption></figcaption></figure>

* The console navigates to the Dashboard page and your project is created.

## Enable Google Drive API

In the created project, the user needs to enable the Google Drive API to allow access to the resources on the Google Drive.&#x20;

* Open the[ Google Cloud Console](https://console.cloud.google.com/).
* Next to "Google Cloud Platform," click the downward arrow and select a project for which the API needs to be enabled. In this case, choose the project you created for this exercise.
* In the top-left corner, click on the Navigation Menu. \
  In the “All Products” category, click APIs & Services>Enabled APIs & Services.&#x20;

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdapisservenablservices.png" alt=""><figcaption></figcaption></figure>

* Click \[+ Enable APIs and Services].

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdaddenableapinservices.png" alt=""><figcaption></figcaption></figure>

* In the search field, enter the name of the API you want to enable. For example, type "Google Drive API" to find the Google Drive API.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdsearchgdapi.png" alt=""><figcaption></figcaption></figure>

* The API page appears. Click the API “Google Drive API”.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdclickgdapi.png" alt=""><figcaption></figcaption></figure>

* Click Enable. The API gets enabled.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdenablegdapi.png" alt=""><figcaption></figcaption></figure>

* The API/Service Details page appears. The Google Account has been set up to create credentials.

<figure><img src="https://media.langstack.com/documentation/media/images/connector/googledriveconnector/gdgdapipage.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.langstack.com/welcome/in-depth-learning/connectors/google-drive-connector/setting-up-gcp-account-gcp-project-api-enablement-and-credentials-prerequisites.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
