# Google Cloud Storage

You can import an XML, CSV, TXT, or JSON file directly from your Google Cloud Storage (GCS).

{% stepper %}
{% step %}

### Add a new XML/CSV/TXT/JSON import

* Go to **Setup > Import**.
* Click **Setup import** (or **Combine imports** if you added an import in this project).
* Select the file type you need: XML, CSV, TXT, or JSON.
  {% endstep %}

{% step %}

### Configure the GCS import settings

* At **Name**, add a name for your import.
* At **\[type of] file url**, paste your GCS file URL from Google Cloud.
  * Make sure your URL starts with “<https://storage.cloud.google.com”>.
* At **Authentication**, select "Google Cloud Storage (GCS)".
* For **Upload GCS Service Account Key file**, create and download a Service Account key file using Google Cloud: <https://cloud.google.com/iam/docs/keys-create-delete#iam-service-account-keys-create-console>. Once you have created the file, upload it.
* For **Encoding**, **Quoting** and **Delimiter**, select "Automatically detect".

{% hint style="warning" %}
For security reasons, make sure that your Google Service Account has as few permissions as necessary. For example, make sure the account only allows read access for the files you want to import.
{% endhint %}

<figure><img src="https://3042294697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZa0iYflHeXmKWGnfFMAN%2Fuploads%2FVd2bnzHNhMiBNtr2dlbz%2F27768167562770?alt=media&#x26;token=f1472340-ae16-45fa-9b36-bd9a049e8212" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If a file in GCS is available publicly, you do not need to set up authentication (Check **Public URL** in Google Cloud). You can select “No authentication” at **Authentication**.
{% endhint %}

<figure><img src="https://3042294697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZa0iYflHeXmKWGnfFMAN%2Fuploads%2Fn3MrESfyk0wcmKSqaFwt%2F27768151094290?alt=media&#x26;token=ba2d93d9-3b2a-455b-89da-145490c109e0" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Import your items

After configuring the GCS settings for your import, click **Start import**. You will be directed to the **Edit mapping** tab where you need to click **Save & Import**.

Your data will start importing from Google Cloud Storage.

<figure><img src="https://3042294697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZa0iYflHeXmKWGnfFMAN%2Fuploads%2F2wcaZLuQ6oZkhnNlrpct%2F27768151095698?alt=media&#x26;token=0d13af97-48a7-47a0-bd5c-d5b5f843dc26" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
