Connecting Census to Salesforce Marketing Cloud

Census can publish your tables and models to Salesforce Marketing Cloud. Here's how to get connected:


You'll need a Census account as well as a Salesforce Marketing Cloud account with the Administrator role. This process involves several steps - please set aside 15-30 minutes to complete it. Note that you may be on an older or newer version of Marketing Cloud which has slightly different screens than the ones pictured below. Marketing Cloud configuration can be complex, so if you have any questions please reach out to and we'll help you tailor these instructions to your needs.

1. Create and Configure a Server-to-Server Installed Package

Sign in to Salesforce Marketing Cloud and enter "Setup"

Navigate to "Apps > Installed Packages". Click "New" to create a new package. Create an app called "Census" and provide an optional description, then click "Save"

Click "Add Component" and choose "API Integration"

Choose "Server-to-Server" as the OAuth Integration Type

In "Set Server-to-Server Properties", given the new component the following permissions by checking the appropriate boxes:

  • Automation > Automations: Read, Write, Execute
  • Contacts > Audiences: Read, Write
  • Contacts > List and Subscribers: Read, Write
  • Data > Data Extensions: Read, Write
  • Data > File Locations: Read, Write

Click "Save" to continue. You should see a new Component in your package - verify that it has the correct permissions (in the Scope section) by comparing to the image below.

Copy the Client Id, Client Secret, and Authentication Base URI from this page - you will need to provide these values to Census in Step 3.

2. Create a SFTP Account in Salesforce Marketing Cloud

Census uses the ExactTarget Enhanced FTP server to upload large data files to your Salesforce Marketing Cloud instance and prepare them for import. In this step, you'll create a new user account on your FTP server that Census can use to sign in

Still in Salesforce Marketing Cloud Setup, navigate to "Data Management > FTP Accounts" and click "Add FTP User".

For the email address, type in "" and give the user a strong, random password. You do not need to write down or memorize this password - Census does not require it, and in step 4 we will replace it with an SSH key. Make sure to give the Census user "Full" access, and do not specify any IPs in the "Allowlist IPs" list. Click Next.

There's nothing to do yet on the next screen - we'll set up SSH Keys later. Click "Save" to create the user.

Salesforce Marketing Cloud will create the user, which may take a few seconds. Copy the FTP Username that was assigned to the user, which you'll need in Step 3.

3. Configure Census with Your Connection Information

Go to Census Connections, click "Add Service" and choose "Salesforce Marketing Cloud".

In the dialog, fill out the data you gathered in steps 2 and 3:

  • Name: A descriptive name of your choosing. If you have more than one Salesforce Marketing Cloud connection, you can use this field to help you keep track them
  • Endpoint URL: Fill in the Authentication Base URI from Step 2
  • Client ID and Client Secret: Fill in the Client ID and Client Secret from step 2
  • SFTP User: Fill in the FTP Username from Step 3

Click "Save Connection".

Census will show your new Salesforce Marketing Cloud connection in its connections list

4. Upload Census's SSH Public Key to Marketing Cloud

The final step is to configure Marketing Cloud to accept Census's SSH public key for FTP access, instead of using a password. Still in Census, click the button labeled "Click to Download" next to the "SFTP Public Key". This will download a file called "" to your computer - make a note of where it was saved.

Return to Salesforce Marketing Cloud Setup and navigate to "Data Management" > "Key Management". Click "Create".

  • For "Key Type", choose "SSH"
  • For "Name", type "Census Public Key"
  • For "External Key", type "census-public-key"
  • Check the "Public Key" checkbox
  • Click "Browse" next to the "Key (required)" field and find the "" file you previously downloaded.
  • Click "Save"

Now we'll associate the key with the Census user. Navigate to "Data Management" > "FTP Accounts". Choose the "" user and click the small arrow next to their name (you may need to scroll to the right. Choose "SSH Keys" from the drop-down menu.

Click in the "Search SSH Keys" box and find "Census Public Key" and select it. Change the "Authentication Options" to "SSH Key" and click "Save". In a few seconds, Salesforce Marketing Cloud will finish configuring the SSH key (you can click the refresh icon at the top right to see the activity log go from "Pending" to "Success".

You're ready to start using Census to load data from your warehouse to Salesforce Marketing Cloud!