Skip to content

Commit

Permalink
Add documentation for facebookads user management
Browse files Browse the repository at this point in the history
  • Loading branch information
aashikam committed Dec 19, 2024
1 parent 9595a01 commit 867d6e2
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -908,15 +908,40 @@ To use the Facebook Ads connector, first create the connection with your configu
```json
{
"audience_id": "456456456",
"properties": {
"payload": {
"schema": "EMAIL_SHA256",
"data": [
"b36a83701f1c3191e19722d6f90274bc1b5501fe69ebf33313e440fe4b0fe210",
"2b3b2b9ce842ab8b6a6c614cb1f9604bb8a0d502d1af49c526b72b10894e95b5"
]
"properties": [
{
"email": "[email protected]",
"phone": "1-(650)-561-5622",
"madid": "aece52e7-03ee-455a-b3c4-e57283966239",
"fn": "Elizabeth",
"ln": "Olsen",
"zip": "94046",
"ct": "Menlo Park",
"st": "CA",
"country": "US",
"dob": "10\/21\/68",
"doby": 1968,
"gen": "F",
"age": 48,
"uid": 1234567890
},
{
"email": "[email protected]",
"phone": "1-(212) 736-3100",
"madid": "BEBE52E7-03EE-455A-B3C4-E57283966239",
"fn": "Andrew",
"ln": "Jamison",
"zip": "10118",
"ct": "New York",
"st": "NY",
"country": "US",
"dob": "10\/17\/78",
"doby": 1978,
"gen": "M",
"age": 38,
"uid": 1443637309
}
}
]
}
```

Expand Down Expand Up @@ -954,15 +979,88 @@ To use the Facebook Ads connector, first create the connection with your configu
```json
{
"audience_id": "456456456",
"properties": {
"payload": {
"schema": "EMAIL_SHA256",
"data": [
"b36a83701f1c3191e19722d6f90274bc1b5501fe69ebf33313e440fe4b0fe210",
"2b3b2b9ce842ab8b6a6c614cb1f9604bb8a0d502d1af49c526b72b10894e95b5"
]
"properties": [
{
"email": "[email protected]",
"phone": "1-(650)-561-5622",
"madid": "aece52e7-03ee-455a-b3c4-e57283966239",
"fn": "Elizabeth",
"ln": "Olsen",
"zip": "94046",
"ct": "Menlo Park",
"st": "CA",
"country": "US",
"dob": "10\/21\/68",
"doby": 1968,
"gen": "F",
"age": 48,
"uid": 1234567890
},
{
"email": "[email protected]",
"phone": "1-(212) 736-3100",
"madid": "BEBE52E7-03EE-455A-B3C4-E57283966239",
"fn": "Andrew",
"ln": "Jamison",
"zip": "10118",
"ct": "New York",
"st": "NY",
"country": "US",
"dob": "10\/17\/78",
"doby": 1978,
"gen": "M",
"age": 38,
"uid": 1443637309
}
}
]
}
```

??? note "getCustomAudiences"
The `getCustomAudiences` operation retrieves all custom audiences. Provide a value for the `filterByName` parameter to retrieve specific audiences by name.
<table>
<tr>
<th>Parameter Name</th>
<th>Description</th>
<th>Required</th>
</tr>
<tr>
<td><code>adAccountId</code></td>
<td>ID of the ad account.</td>
<td>Yes</td>
</tr>
<tr>
<td><code>filterByName</code></td>
<td>Provide a name to filter and retrieve specific audiences.</td>
<td>No</td>
</tr>
</table>

**Sample configuration**

```xml
<facebookAds.getCustomAudiences configKey="FB_CONN_1">
<adAccountId>{json-eval($.ad_account_id)}</adAccountId>
<filterByName>{json-eval($.filter_name)}</filterByName>
</facebookAds.getCustomAudiences>
```

**Sample request**

Retrieve all the custom audiences.

```json
{
"ad_account_id": "123123123"
}
```

Retrieve specific audiences by name.

```json
{
"ad_account_id": "123123123",
"filter_name": "Custom Audience With Users"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To see the Facebook Ads Connector, navigate to the [connector store](https://sto

| Connector Version | Supported product versions |
| ------------- |-------------|
| 1.0.2 | MI 4.3.0 |
| 1.0.4 | MI 4.3.0 |

## Facebook Ads Connector documentation

Expand Down

0 comments on commit 867d6e2

Please sign in to comment.