Connect Facebook Lead Ads to FTP/SFTP with LeadsBridge


In this article, you'll learn how to set up the bridge and connect Facebook Lead Ads to FTP/SFTP using LeadsBridge.
Benefits
Facebook Lead Ads are a type of ads specifically designed to collect leads. In comparison to traditional ads that drive to website landing pages, with Facebook Lead Ads, the process of generating leads on Facebook is much easier. In fact, when users click on a Lead Ad on Facebook they instantly visualize a registration form to leave their data, without leaving the social network. The opt-in forms are pre-filled.
Facebook Lead Ads are optimized for mobile navigation and allow advertisers to easily collect leads from smartphones and tablets. User's data, in fact, are automatically added by Facebook which takes them from their personal profiles.
How to set up your bridge step-by-step tutorial
Before you start
Step 1: Bridge's Main information
- Choose a name for your bridge (this will only be visible inside LeadsBridge)
- You may add labels to help you identify your bridge later
- Choose Facebook Lead Ads as the source for your bridge
- Choose FTP/SFTP as the destination
- Click on the Next button
Step 2: Setup your Facebook Lead Ads source
- Select the Facebook Ad Account, Page and the Lead Ads Form from the dropdown
- If you didn't add your Facebook Ad Account yet, please click on the "Add Ad Account" button or read how to connect a Facebook Ad Account.
- Click on the Next button
Step 3: Setup your FTP/SFTP destination
- Type in the integration's name in the dedicated field
- Enter Domain, Consumer secret, Use SFTP? (Secure FTP), FTP Host, FTP Port, FTP Username, FTP Password, Root directory, Destination filename pattern, Private Key, Charset, File's extension (eg. txt), Fields Separator Char and Headers row number (default 0) to connect FTP/SFTP with LeadsBridge
- Some FTP/SFTP details such as host name, username and password are required for accessing your files on the server by using an FTP client. The FTP details will comprise a server address (similar to ftp.yourdomain.com), a username and a password.
In case that you don't have, or you don't know, those details, you should contact your web hosting provider, and they will be able to give you this information.
Usually, web hosting services provide you these details after you sign up for a web hosting package. In most cases you’ll receive your FTP/SFTP information details in the welcome email sent from your web host provider after signing up to their services.
Below you can find a short description for each field from the FTP/SFTP integration:- Use SFTP This toggle will allow you to use the Secure mode (SFTP), if your FTP server implements it
- FTP Host This is the hosting server name
- FTP Port This is the server port, the default port for FTP is 21, and for SFTP is 22
- FTP Username/Password Your FTP credentials, usually they're the same as your cPanel login details
- Root Directory This is the folder in your FTP service where you would read files from or put files to. If any provided, the root dir will be used
- Headers row number This is the row index (0 based) in which the file headers are located
- Charset This is the charset encoding of your input files
- File's extension This is the extensions that will be used to filter files in case you use your integration as a Source
- Fields Separator Char The char used as separator in the CSV file
- Destination filename pattern This value will be used to define the name of the output file in case the integration is used as Destination. You may use Date and Time patterns chars such as Y/m/d H:i:s. Notice that you should type the pattern inside square brackets, for instance [Ymd]
- Click on the Next button
- You'll now be able to select the destination segment to send your leads to
- You may choose to receive an email receipt for each incoming lead.
- Type the address(es) where you'd like to receive the receipt
- You may also modify the Subject line of the email
- Click on the Next button
Step 4: Fields Mapping
Here you'll be able to map your source information with your destination fields.
You'll see a field name with the destination integration's logo at the top, this indicates the name of the field on FTP/SFTP.
Underneath there's a box where you may add the information you'd like to send.
- Check each of the FTP/SFTP fields available
- Match the information you wish to pass along from Facebook Lead Ads
- You may type the information manually and pass them as a static value
- Use the functions to customize information like reformatting dates and times or modifying text, phone numbers and so on
- You may also leave blank the box of a field's information you don't want to send through
Custom Fields
- If you'd like to add more fields, just look at the bottom of the page
- Head over the "Don't find a CRM custom field?" box
- Select the field you'd like to add from the dropdown list
- Click the Add Custom Field button
- The field will appear above
- Add the desired information, as you did with the other ones
Once accomplished your desired outcome, just click Next and head to the last step.
Step 5: Test
In this final step, you'll be able to send a lead from LeadsBridge to test if the configuration works properly.
- To create a new test lead, fill in the required information when prompted
- Click Test Now
- To test with a real lead, switch the toogle to "Test with existing lead".
- Click Sync Now along the lead you'd like to send
- If you did everything right the button will turn green, meaning your lead was synced successfully and the integration is ready
- Click Finish to save your settings and turn active your bridge
That's all! Congratulations.
You'll be redirected to the bridges section of your account with a green success message at the top right of the page and your bridge will now be active.
Would you like to test the connection?
You don’t need to start a campaign to test if the connection works fine, just register yourself through your Ad preview.
To do so, follow this documentation: Facebook Lead Ads Testing Tool
Have you got some questions?
You may want to take a look at the common questions on the respective integration's documentation.
- Destination: FTP/SFTP
If you have any other questions, or need help to configure your bridge from Facebook Lead Ads to FTP/SFTP with LeadsBridge, do not hesitate to contact our Support!