-
Notifications
You must be signed in to change notification settings - Fork 365
Facebook Custom Audiences (Actions) documentation #6913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
6fa6def
83a0763
c5f2e36
fc77213
a5f19ee
4d85a24
f5cee61
d40f27f
5b9971f
1f89389
18b6ddb
ea4f9b6
da023f1
12cc330
bc72c51
f3bcfd9
6faa7c7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,129 @@ | ||||||||
--- | ||||||||
title: Facebook Custom Audiences (Actions) | ||||||||
id: 645d5fc12eb891cf0a93fe4b | ||||||||
hidden: true | ||||||||
beta: true | ||||||||
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
strat: facebook | ||||||||
--- | ||||||||
|
||||||||
Deliver effective Facebook Ads campaigns by defining and syncing [custom audiences](https://developers.facebook.com/docs/marketing-api/audiences/guides/custom-audiences){:target="_blank”} to power ad suppression, acquisition (using lookalikes), retargeting, and more. | ||||||||
|
||||||||
This destination sends audiences, or lists of users, from your data warehouse to Facebook Custom Audiences using Reverse ETL. Syncs can add or remove users from your Facebook Custom Audiences as records are created, updated, or deleted in your warehouse. | ||||||||
|
||||||||
> info "This destination only supports **Reverse ETL sources** | ||||||||
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
> This destination only supports [Reverse ETL sources](/docs/connections/reverse-etl/#what-warehouse-data-sources-does-segment-support). To connect Facebook Custom Audiences to Twilio Engage, use the [Facebook Custom Audiences](/docs/connections/destinations/catalog/personas-facebook-custom-audiences/) destination. | ||||||||
|
||||||||
## Getting started | ||||||||
|
||||||||
### Prerequisites | ||||||||
- A Reverse ETL source already set up. If you don't yet have a Reverse ETL source, follow the instructions in Segment's [Reverse ETL documentation](/docs/connections/reverse-etl/#getting-started). Segment recommends setting your External ID as your primary key for your Reverse ETL model, as you'll need an External ID to remove users from your custom audiences. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we link: "...Segment recommends setting your External ID" ^ the External ID reference to the Available Actions section below? I don't expect customers to know what we mean intuitively
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
- A Facebook Custom Audiences account with the following permissions: | ||||||||
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
- | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
### Connect to Facebook Custom Audiences | ||||||||
1. From your Segment app, navigate to **Catalog > Destinations** and search for "Facebook Custom Audiences (Actions)". | ||||||||
2. Select the Facebook Custom Audiences (Actions) destination and click **Add destination**. | ||||||||
3. Select the Reverse ETL source you'd like to connect to your Facebook Custom Audiences (Actions) Destination and click **Next**. | ||||||||
4. Enter a name for your destination and click **Create destination**. | ||||||||
5. Navigate to your destination's settings page and click **Connect to...** to authenticate with Facebook. | ||||||||
6. Return to the Segment app and enter your Advertiser Account ID. See Facebook's [Find your Facebook ad account ID number](https://www.facebook.com/business/help/1492627900875762){:target="_blank”} documentation for more information. | ||||||||
7. Save the changes you've made and **Enable** your destination. | ||||||||
|
||||||||
|
||||||||
### Add users to a Custom Audience | ||||||||
|
||||||||
After you've connected your Facebook Custom Audiences destination to Segment, set up a mapping that adds users to a new or existing Custom Audience. | ||||||||
|
||||||||
1. Navigate to **Connections > Sources** and select your Reverse ETL source. | ||||||||
2. On the Models page, select the model you'd like to use and click **Add Mapping**. | ||||||||
3. Select the Facebook Custom Audience (Actions) destination and the Sync Audience action, then click **Create Mapping**. | ||||||||
4. Enter a descriptive name for your mapping. Segment recommends a name that includes both the audience name and sync mode, for example, `Loyalty Users (Add)`. | ||||||||
5. Under **Select record to map and send**, select **Added or updated records**. The Added or updated records sync mode both adds new records and attempts to re-add any updated records to the custom audience. Adding updated records to your destination enables better match rates, as more user identifiers are added to the source model over time. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "...better match rates, as more user identifiers..."
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
|
||||||||
> warning "Added or updated records is the only supported additive sync mode" | ||||||||
> Selecting any other sync mode might lead to sync failures with the Facebook Custom Audiences (Actions) destination. | ||||||||
|
||||||||
<ol style="counter-reset: none;"> | ||||||||
<li value="6" markdown=1> | ||||||||
Set how often your model syncs by setting the [Sync schedule](/docs/connections/reverse-etl/#step-4-create-mappings). | ||||||||
</li> | ||||||||
<li value="7" markdown=1> | ||||||||
Select or create an audience in Facebook to sync your data with. Click the **Select or create audience in Facebook** button to save the audience ID to your mapping. | ||||||||
</li> | ||||||||
<li value="8" markdown=1> | ||||||||
Map your model columns to the appropriate Facebook Custom Audience parameters. For more context about data formatting, see the [Sync audience](#sync-audience) and [Data processing](#data-processing) documentation. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "...Sync audience..." ^ uppercase Audience for consistency
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
<ul> | ||||||||
<li> Map External ID to a unique user identifier from your system (like User ID, CRM ID, or anonymous ID.) Segment recommends using the External ID column as your primary key when setting up your Reverse ETL model so you can more easily remove users from your custom audience. External ID is the only field Segment requires you to map. </li> | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "...only field Segment requires you to map..." -> "...only field Facebook requires."
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
<li> Segment recommends mapping as many parameters as you have available in your source model so that you can increase your match rates. </li> | ||||||||
</ul> | ||||||||
</li> | ||||||||
<li value ="9" markdown=1> | ||||||||
Send a test record. If successful, you should see a 200 response in Segment and one added record to your custom audience. To verify that the record was successfully added to your custom audience, open Facebook Ads Manager and navigate to **Audiences > {Audience Name} > History**. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
</li> | ||||||||
<li value="10" markdown=1> | ||||||||
Click **Save Mapping** and enable the mapping. | ||||||||
</li> | ||||||||
</ol> | ||||||||
|
||||||||
### Remove users from a Custom Audience | ||||||||
|
||||||||
1. Navigate to **Connections > Sources** and select your Reverse ETL source. | ||||||||
2. On the Models page, select the model you'd like to use and click **Add Mapping**. | ||||||||
3. Select the Facebook Custom Audience (Actions) destination and the Sync Audience action, then click **Create Mapping**. | ||||||||
4. Enter a descriptive name for your mapping. Segment recommends a name that includes both the audience name and sync mode, for example, `Loyalty Users (Remove)`. | ||||||||
5. Under **Select record to map and send**, select **Deleted records**. The Deleted records sync mode removes any records from your custom audience that you deleted from your source model. | ||||||||
6. Set how often your model syncs by setting the [Sync schedule](/docs/connections/reverse-etl/#step-4-create-mappings). | ||||||||
7. Select or create an audience in Facebook to sync your data with. Click the **Select or create audience in Facebook** button to save the audience ID to your mapping. | ||||||||
8. Map your model columns to the appropriate Facebook Custom Audience parameters. For more context about data formatting, see the [Sync audience](#sync-audience) and [Data processing](#data-processing) documentation. Map your External ID to a unique user identifier from your system (like User ID, CRM ID, or anonymous ID.) Segment recommends using the External ID column as your primary key when setting up your Reverse ETL model so you can more easily remove users from your custom audience. External ID is the only field Segment requires you to map. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "For more context about data formatting, see the Sync audience and Data processing documentation. Map your External ID to a unique user identifier from your system (like User ID, CRM ID, or anonymous ID.) Segment recommends using the External ID column as your primary key when setting up your Reverse ETL model so you can more easily remove users from your custom audience. External ID is the only field Segment requires you to map." should be: "Only the External ID is required. When a record is deleted from your source model, only the model primary key is sent to the mapping; other columns from your source model are not sent. We highly recommend using the External ID as your primary key in your source model."
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
9. Send a test record. If successful, you should see a 200 response in Segment and one record removed from your custom audience. To verify that the record was successfully removed from your custom audience, open Facebook Ads Manager and navigate to **Audiences > {Audience Name} > History**. | ||||||||
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
10. Click **Save Mapping** and enable the mapping. | ||||||||
|
||||||||
{% include components/actions-fields.html %} | ||||||||
|
||||||||
## Data processing | ||||||||
|
||||||||
To improve match rates, Segment built in normalization and hashing for common fields to align with [Facebook’s recommended best practices](https://developers.facebook.com/docs/marketing-api/audiences/guides/custom-audiences/#hash){:target="_blank”}. | ||||||||
|
||||||||
### Normalization | ||||||||
Segment automatically strips whitespace and converts the following fields to lowercase: | ||||||||
* First name | ||||||||
* Last name | ||||||||
* First initial | ||||||||
* City | ||||||||
* State | ||||||||
* Country | ||||||||
|
||||||||
Segment normalizes the Phone field by removing any non-numeric symbols, whitespace, and leading zeroes. | ||||||||
|
||||||||
### Hashing | ||||||||
Facebook requires you to hash all PII before sending it to the Facebook Conversions API. | ||||||||
|
||||||||
Segment hashes the following fields by default: | ||||||||
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
forstisabella marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
* Phone | ||||||||
* First name | ||||||||
* Last name | ||||||||
* First initial | ||||||||
* City | ||||||||
* State | ||||||||
* Postal code | ||||||||
* Country | ||||||||
* Year of birth | ||||||||
* Month of birth | ||||||||
* Day of birth | ||||||||
* Gender | ||||||||
|
||||||||
|
||||||||
## FAQs and troubleshooting | ||||||||
|
||||||||
### Audience not creating and/or existing audience list not populating | ||||||||
If you’re unable to create a new audience or select existing audiences while creating a mapping, this might be due to an authentication error. Verify that you've authenticated with Facebook under Destination Settings and that the Facebook user that authenticated with Segment can access your Advertiser Account ID. | ||||||||
|
||||||||
### Audience size smaller than expected | ||||||||
Segment sends lists of users with the identifiers you’ve mapped from your source model. The matching logic itself occurs within Facebook. Facebook is more likely to be able to match a user profile if you track as many identifiers as possible, like email, mobile advertising identifiers (IDFA, Google advertising ID), and others. If Facebook is unable to identify users based on the data that you provide, then the match rate will be low. | ||||||||
|
||||||||
As an example, many B2B SaaS businesses have users that sign up for their products with a work email address, like [email protected]. However, most Facebook users sign up for Facebook with a personal email only, like [email protected]. If you only provide Facebook with the work email address and no other identifiers, then Facebook can’t match your user to the Jane Doe Facebook profile. This is the case for all identifiers: Facebook must have the identifier somewhere in a user’s profile or they can’t match on it. | ||||||||
|
||||||||
### Do you support value-based lookalikes? | ||||||||
While Facebook has a feature called value-based lookalikes, where you can send an additional field like LTV to optimize campaigns based on a customer’s value, there is currently no way to sync LTV data to a value-based lookalike using the Facebook Custom Audiences (Actions) destination. |
Uh oh!
There was an error while loading. Please reload this page.