> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.polytomic.com/2024-02-08/guides/configuring-your-connections/connections/fbaudience/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.polytomic.com/_mcp/server.
# Facebook Ads
Supports:
* ✅ Model sync destination
* ✅ Bulk sync source
* ✅ Connection Proxy
## Connection
### Configuration
| Name | Type | Description | Required |
auth_method |
string |
Authentication method
Accepted values: `oauth`, `token` ↓ |
true |
auto_add_accounts |
boolean |
Automatically add new accounts |
false |
`auth_method`
When `auth_method` is `token`
| Name | Type | Description | Required |
byo_app_token |
string |
Token |
true |
graph_api_version |
string |
Graph API version (optional) |
true |
`byo_app_token`
When `byo_app_token` has a value AND `user_name` has a value
| Name | Type | Description | Required |
accounts |
array |
Accounts |
true |
#### Example
```json
{
"name": "Facebook Ads connection",
"type": "fbaudience",
"configuration": {
"auth_method": "token",
"auto_add_accounts": false,
"byo_app_token": "secret",
"graph_api_version": "v24.0"
}
}
```
### Read-only properties
| Name | Type | Description | Required |
user_name |
string |
Connected as |
false |
## Model Sync
### Target
Facebook Ads connections may be used as the destination in a model sync.
### Target creation
Facebook Ads connections may be used to create a new target for a model sync. The
following parameters are required to create a new target:
| NAME |
DESCRIPTION |
ENUM |
| account |
Ads account ID |
true |
| name |
Audience name |
false |
## Bulk Sync
### Source
#### Configuration
| Name | Type | Description | Required |
reporting_lookback |
integer |
Lookback period for reports |
false |
#### Example
```json
{
...
"source_configuration": {
"reporting_lookback": 0
}
}
```