Connect Facebook Marketing to your AI agents.

Connect Facebook Marketing data to AI agents with Combined. Explore ads insights, campaigns, ads, source setup, MCP access and read-only business queries.

Put Facebook Marketing records to work in the agent you already use. Combined syncs business data into a managed data layer and exposes scoped, read-only queries through MCP.

Start with 5 million MAR without a card; usage after the trial is $5 per million MAR, with no monthly minimum. Combined offers 1,125 connectors across catalog sources and connectors generated through desktop automation.

How to connect Facebook Marketing to Combined

  1. Add your source. Open Connected Apps in Combined and select Facebook Marketing. Use the account or workspace that contains the records you want to analyze.
  2. Authorize access. Complete the connection flow and choose the required permissions. The setup reference below shows the upstream source's configurable fields; the Combined flow may handle some of them for you.
  3. Select datasets and sync. Choose the relevant data, set any available history filters, and wait for the first successful sync.
  4. Grant your agent access. Use the Set up or Access workspace to connect your agent through MCP and scope it to the sources it needs.
  5. Ask a first question. Discover the synced schema, check freshness, and run a bounded read-only query. Then add another source for a cross-app analysis.

The onboarding guide covers the workspace flow. Prepare these Facebook Marketing settings before connecting:

Facebook Marketing source setup reference
SettingWhen neededInput
Access TokenOptionalCredential entered in the connection flow
Ad Account ID(s)Required by source schemaarray
Action Breakdowns Allow EmptyOptionalboolean
Ad StatusesOptionalarray
AdSet StatusesOptionalarray
Campaign StatusesOptionalarray
Client IdOptionalCredential entered in the connection flow
Client SecretOptionalCredential entered in the connection flow
AuthenticationRequired by source schemaAuthenticate via Facebook Marketing (Oauth) / Service Account Key Authentication
Access TokenDepends on selected setup optionCredential entered in the connection flow
Client IDDepends on selected setup optionCredential entered in the connection flow
Client SecretDepends on selected setup optionCredential entered in the connection flow
Access TokenDepends on selected setup optionCredential entered in the connection flow
Custom InsightsOptionalarray
Action BreakdownsDepends on selected setup optionarray
Action Report TimeDepends on selected setup optionstring
BreakdownsDepends on selected setup optionarray
End DateDepends on selected setup optionstring
FieldsDepends on selected setup optionarray
Include IncrementalityDepends on selected setup optionboolean
Custom Insights Job TimeoutDepends on selected setup optioninteger
Custom Insights Lookback WindowDepends on selected setup optioninteger
LevelDepends on selected setup optionstring
NameDepends on selected setup optionstring
Start DateDepends on selected setup optionstring
Time IncrementDepends on selected setup optioninteger
Time Increment PeriodDepends on selected setup optionobject
Action breakdowns for the Built-in Ads Insight streamOptionalarray
End DateOptionalstring
Fetch Thumbnail Images from Ad CreativeOptionalboolean
Include IncrementalityOptionalboolean
Insights Job TimeoutOptionalinteger
Insights Lookback WindowOptionalinteger
Page Size of RequestsOptionalinteger
Start DateOptionalstring

Authentication choices are alternatives. Supply the settings for your selected method; enter credentials in the connection flow, rather than in an agent prompt.

Facebook Marketing datasets you can evaluate

This reference comes from the upstream source catalog and connector definition, version 6.0.2. Your account permissions, selected streams and successful sync determine what your agent can query. Discover the actual table and field names in Combined before writing SQL.

Facebook Marketing dataset and schema reference
DatasetRecord keyUpdate fieldExample fields
ads_insightsInspect schemaInspect sync configurationDiscover in your workspace
campaignsInspect schemaInspect sync configurationDiscover in your workspace
adsInspect schemaInspect sync configurationDiscover in your workspace
ad_setsInspect schemaInspect sync configurationDiscover in your workspace
ad_creativesInspect schemaInspect sync configurationDiscover in your workspace
ads_insights_age_and_genderInspect schemaInspect sync configurationDiscover in your workspace
ads_insights_action_typeInspect schemaInspect sync configurationDiscover in your workspace
custom_conversionsInspect schemaInspect sync configurationDiscover in your workspace
imagesInspect schemaInspect sync configurationDiscover in your workspace
ads_insights_countryInspect schemaInspect sync configurationDiscover in your workspace
ads_insights_platform_and_deviceInspect schemaInspect sync configurationDiscover in your workspace
ads_insights_regionInspect schemaInspect sync configurationDiscover in your workspace
ads_insights_comscore_marketInspect schemaInspect sync configurationDiscover in your workspace
activitiesInspect schemaInspect sync configurationDiscover in your workspace

A cursor tracks changes for a source stream. It is not automatically the right date for a business metric: invoice date, close date and record-update date can answer different questions.

Useful Facebook Marketing questions for your AI agent

Start with the datasets you have granted. These prompts turn the referenced schema into checks and summaries; the agent should verify each field against your synced data.

  • Describe the ads insights fields, then count the available records and identify a useful grouping field.
  • Describe the campaigns fields, then count the available records and identify a useful grouping field.
  • Describe the ads fields, then count the available records and identify a useful grouping field.
  • Describe the ad sets fields, then count the available records and identify a useful grouping field.

Combine Facebook Marketing with another business app

Connect the second source, identify a maintained customer, account or project mapping, and aggregate each dataset before joining. Keep unmatched records visible and define the reporting window. The CRM-and-billing worked example includes runnable SQL demonstrating how a many-to-many join can double the result.

Use Facebook Marketing data in Claude Code, Cursor or another MCP client

Once the source is synced, the agent connects to Combined's MCP interface. Use the generated account-specific configuration from your workspace, keep credentials local, and grant only the sources needed for the task. Follow the Claude Code walkthrough or the MCP setup reference.

Use Combined to analyze my Facebook Marketing data.
List my granted sources, discover the datasets and describe their fields.
Look for datasets corresponding to ads_insights, campaigns, ads, ad_sets, ad_creatives, ads_insights_age_and_gender.
Check the last successful sync and report the available date coverage.
Propose three useful questions based on the fields actually available.
For the question I choose, run read-only SQL over the complete matching dataset.
Use a bounded result; include source names, time window and query receipt.
Ask for a missing join key or metric definition instead of inventing one.

Download this Facebook Marketing guide as Markdown to use alongside your agent instructions.

Which Facebook Marketing connection fits the task?

Managed data for complete questions across apps

Choose Combined when you want to analyze synced records, calculate totals, or join Facebook Marketing with other business data without operating a separate ingestion and query stack. The agent works with your source grants and read-only SQL access.

Application tools for live operations

For a task that must change Facebook Marketing immediately, evaluate its available API, native agent tools or desktop workflow. Keep application-action permissions separate from read-only analytics access. A live lookup and an aggregate over synced history solve different jobs.

Desktop-generated connectors for workflows beyond the catalog

Combined's 1,125-connector coverage includes connections generated through computer use. Choose this route when the workflow depends on an application's desktop or browser interface, and establish the fields, access and refresh behavior for that connection.

Read the direct MCP versus managed data comparison and compare business-data MCP options.

Troubleshoot your Facebook Marketing connection

  • Authorization fails: check the selected authentication method, credential validity, source permissions and target account.
  • History is missing: check the source's start-date or history filter and allow the initial sync to finish before comparing totals.
  • The wrong records appear: verify the workspace, account, project or domain selected in the source settings.
  • A dataset is absent: check whether it is enabled and permitted for your account, then inspect discovery and sync status.
  • The agent cannot query it: confirm the source is included in the agent's grant and that its sync succeeded.
  • A total looks wrong: inspect record keys, duplicate rows, time zones, currencies and join fanout before changing the prompt.

Source details reviewed September 10, 2026. Facebook Marketing upstream connector documentation. See also Combined Sources and data freshness for AI agents.