Transferring files from Google Cloud Storage (GCS) to Salesforce Marketing Cloud (SFMC) requires using SFTP, because Marketing Cloud does not natively connect to GCS.
Transferring files from Google Cloud Storage (GCS) to Salesforce Marketing Cloud (SFMC) requires using SFTP, because Marketing Cloud does not natively connect to GCS.
The standard flow is:
Google Cloud Storage → SFTP Upload → Marketing Cloud Automation Studio Import
Step 1: Obtain Marketing Cloud SFTP Credentials
In Salesforce Marketing Cloud:
Navigate to Setup → Data Management → FTP Accounts
Retrieve:
SFTP hostname
Username
Port (typically 22)
Configure SSH key authentication (recommended over password)
These credentials will be used to upload files from GCP to Marketing Cloud.
Step 2: Prepare the File in Google Cloud Storage
In Cloud Storage:
- Upload or generate the file inside your bucket
Example:gs://outbound-bucket/customer_export_20260224.csv - Validate:
- File format: CSV (most common)
- Encoding: UTF-8
- Correct delimiter (comma, pipe, etc.)
- Header row (if required by Import Definition)
Step 3: Transfer File from GCS to Marketing Cloud
Because SFMC cannot directly pull from GCS, you must push the file via SFTP.
Recommended Method: Cloud Function or Cloud Run (Automated)
Using Google Cloud Platform serverless services:
Process:
- Download file from GCS
- Connect to SFMC SFTP using SSH
- Upload file to the appropriate folder
You can:
- Trigger on file creation in GCS
- Schedule via Cloud Scheduler
- Run manually if needed
This method is scalable and requires minimal infrastructure maintenance.
Step 4: Configure Import in Marketing Cloud
Once the file is on the Enhanced FTP:
- Go to Automation Studio
- Create a File Import Activity
- Configure:
- File location (FTP folder)
- File naming pattern
- Target Data Extension
- Import type (Overwrite / Add Only / Add & Update)
- Add the Import Activity to an Automation
- Schedule it to run after file transfer completes
Step 5: Add Scheduling and Monitoring
To ensure reliability:
- Use Cloud Scheduler to trigger the transfer
- Add logging and retry logic
- Ensure Marketing Cloud import runs after the file upload
- Monitor file size and row counts for validation


