Skip to main content

Meta Ads

The Meta Ads integration lets agents report on your Facebook and Instagram ad campaigns.

Connect​

Meta Ads uses a system user access token from Meta Business Suite.

  1. In Meta Business Suite, open Business settings → Users → System users.
  2. Create a system user (or pick an existing one) and assign it your ad account.
  3. Click Generate new token, choose your app and include the ads_read permission. Copy the token.
  4. In the VoisX console, open your project and go to Tools → Add tool → From template.
  5. Find Meta Ads and select it.
  6. Paste the token, select the actions you want to enable and click Install integration.

Actions​

ActionWhat it does
List CampaignsLists campaigns in an ad account
Get Campaign InsightsReturns metrics for a campaign, such as reach, impressions, clicks and spend
Get Ad Insights (Custom)Returns insights for the fields and breakdowns you choose

Put your ad account ID (it starts with act_) in the agent's prompt.

Troubleshooting​

(#200) Permissions error​

The system user is not assigned to that ad account, or the token does not include ads_read.

Error validating access token​

The token was revoked or has expired. Generate a new one and reinstall the integration.

Was this page helpful?
On this page
Try it in the consoleBuild an agent and test it in the Playground.Open console →