Configuration

To set up the Facebook Ads source, provide the following configuration parameters:

KeyDescriptionSample ValueRequired
account_idThe Facebook Ad account ID used when extracting data."abc123..." (double quotes required)
access_tokenOAuth token to access API endpoints.abc123...
start_dateFetch 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

  1. Create a Facebook App.
  2. Get the access token:
    1. Go to: https://developers.facebook.com/apps/[app_id]/marketing-api/tools
      • Replace [app_id] with the ID of the app you created.
    2. Under Select Token Permissions, check the following:
      • ads_management
      • ads_read
      • read_insights
    3. Click Get Token.
  3. Copy the generated access_token.

Errors

API Rate Limit

If you encounter API rate limits, refer to this Facebook Community Thread for more information.