Sources
Facebook Ads
Configuration
To set up the Facebook Ads source, provide the following configuration parameters:
Key | Description | Sample Value | Required |
---|---|---|---|
account_id | The Facebook Ad account ID used when extracting data. | "abc123..." (double quotes required) | ✅ |
access_token | OAuth token to access API endpoints. | abc123... | ✅ |
start_date | Fetch data newer than the specified start_date . Format: ISO8601. | 2022-01-01T00:00:00Z | ✅ |
account_id
Visit Facebook Ads Manager Accounts to find your account ID.
It should look like: 13261011608127020
.
Note
Your account ID is not the same as your App ID.
access_token
- Create a Facebook App.
- Get the access token:
- Go to:
https://developers.facebook.com/apps/[app_id]/marketing-api/tools
- Replace
[app_id]
with the ID of the app you created.
- Replace
- Under Select Token Permissions, check the following:
ads_management
ads_read
read_insights
- Click Get Token.
- Go to:
- Copy the generated
access_token
.
Errors
API Rate Limit
If you encounter API rate limits, refer to this Facebook Community Thread for more information.