HighLevel Facebook Ads API

Documentation for Ad-publishing API

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

Operations 28

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /ad-publishing/facebook/targeting/search Search Facebook targeting options · Search targeting options #
Ask an LLM
“How do I find Facebook locations and interests to target?”
“Can I search targeting options by interest or location name?”
Tell an agent
Search {type} targeting options for {query}.
Find Facebook {type} targeting options matching {query} under search type {searchType}.
POST /ad-publishing/facebook/campaigns/{campaignId}/publish Publish a Facebook campaign · Publish campaign #
Ask an LLM
“How do I push a Facebook campaign live?”
“Can I publish a campaign to a specific location?”
Tell an agent
Publish Facebook campaign {campaignId} to location {locationId}.
Push campaign {campaignId} live for location {locationId}.
GET /ad-publishing/facebook/pixels Get Facebook conversion pixels · Get conversion pixels #
Ask an LLM
“Which Facebook conversion pixels are set up for a location?”
“Can I see the pixel ID for a Facebook page?”
Tell an agent
Get Facebook conversion pixels for location {locationId}.
Show the {channel} conversion pixel on page {pageId} for location {locationId}.
PUT /ad-publishing/facebook/pixels Create or update a Facebook conversion pixel · Upsert conversion pixel #
Ask an LLM
“How do I create a new Facebook conversion pixel?”
“Can I change the event type of an existing pixel?”
Tell an agent
Create a {type} conversion pixel named {name} for location {locationId}.
Update existing pixel {conversionPixelId} to {type} for location {locationId}.
GET /ad-publishing/facebook/custom-audience List Facebook custom audiences · Get custom audiences #
Ask an LLM
“What custom audiences exist for a location?”
“Can I list only the custom audiences from a specific source?”
Tell an agent
List {type} custom audiences for location {locationId} on ad account {adAccountId}.
Show custom audiences of source {source} for location {locationId} on ad account {adAccountId}.
DELETE /ad-publishing/facebook/custom-audience/{audienceId} Delete a custom audience · Delete custom audience #
Ask an LLM
“How do I delete a custom audience?”
“Can I remove a custom audience by ID?”
Tell an agent destructive · confirm first
Delete custom audience {audienceId} at location {locationId}.
Remove the custom audience {audienceId} from location {locationId}.
PUT /ad-publishing/facebook/custom-audience/{audienceId} Rename or redescribe a custom audience · Update custom audience #
Ask an LLM
“How do I rename a custom audience?”
“Can I change the description of a custom audience?”
Tell an agent
Rename custom audience {audienceId} at location {locationId} to {name}.
Set the description of custom audience {audienceId} at location {locationId} to {description}.
GET /ad-publishing/facebook/custom-audience/{audienceId} Get a Facebook custom audience · Get custom audience by ID #
Ask an LLM
“How do I look up one custom audience by its ID?”
“What name and description does a specific custom audience have?”
Tell an agent
Get custom audience {audienceId} for location {locationId}.
Show the details of custom audience {audienceId} at location {locationId}.
PUT /ad-publishing/facebook/custom-audience/{audienceId}/member Add a contact to a custom audience · Add custom audience member #
Ask an LLM
“How do I add a customer to a custom audience?”
“Can I add a contact to an Instagram audience?”
Tell an agent
Add contact {contactId} to custom audience {audienceId} at location {locationId}.
Add {contactId} to custom audience {audienceId} on ad account {fbAdAccountId} at location {locationId}.
DELETE /ad-publishing/facebook/custom-audience/{audienceId}/member Remove a contact from a custom audience · Remove custom audience member #
Ask an LLM
“How do I take a customer out of a custom audience?”
“Can I remove a contact from an Instagram audience?”
Tell an agent destructive · confirm first
Remove contact {contactId} from custom audience {audienceId} at location {locationId}.
Take {contactId} out of custom audience {audienceId} on ad account {fbAdAccountId} at location {locationId}.
PUT /ad-publishing/facebook/custom-audience/{audienceId}/member/batch Add or remove many contacts from an audience · Batch update audience members #
Ask an LLM
“How do I add or remove a batch of contacts from a custom audience?”
“Can I sync a CSV list into a custom audience?”
Tell an agent
Apply batch operation {operationType} to custom audience {audienceId} at location {locationId}.
Sync smart lists {smartlistIds} into custom audience {audienceId} at location {locationId} with operation {operationType}.
GET /ad-publishing/facebook/campaign/{campaignId} Get a Facebook campaign with its ads · Get campaign with linked entities #
Ask an LLM
“How do I see the ads inside a Facebook campaign?”
“Can I fetch a campaign along with its linked ad sets and ads?”
Tell an agent
Get Facebook campaign {campaignId} for location {locationId}.
Show campaign {campaignId} with its ad sets and ads at location {locationId}.
GET /ad-publishing/facebook/entity Get Facebook campaigns, ad sets or ads · Get entities #
Ask an LLM
“How do I fetch a single Facebook ad or ad set?”
“Can I list all campaigns for a location?”
Tell an agent
Get {entityType} {type} for location {locationId}.
Fetch {entityType} {type} for campaign {campaignId} at location {locationId}.
PUT /ad-publishing/facebook/campaigns Create or update a Facebook campaign · Upsert campaign #
Ask an LLM
“How do I create a new Facebook campaign?”
“Can I change the objective of an existing campaign?”
Tell an agent
Create a Facebook campaign named {name} at location {locationId} with objective {objective}.
Update existing campaign {id} at location {locationId} to objective {objective}.
PUT /ad-publishing/facebook/adsets Create or update a Facebook ad set · Upsert adset #
Ask an LLM
“How do I create a new ad set?”
“Can I target a Facebook ad set at a specific location?”
Tell an agent
Create an ad set named {name} for campaign {campaignId} at location {locationId}.
Update ad set {id} under campaign {campaignId} at location {locationId}.
PUT /ad-publishing/facebook/ads-v2 Create or update a Facebook ad · Upsert ad #
Ask an LLM
“How do I create a Facebook ad through the ad publishing API?”
“Can I update an existing Facebook ad's headline and image?”
Tell an agent
Create Facebook ad {name} in location {locationId} on campaign {campaignId}, ad set {adsetId}.
Update existing Facebook ad {adId} with headline {headline} and image {imageUrl}.
POST /ad-publishing/facebook/campaigns/{campaignId}/pause Pause a Facebook campaign · Pause campaign #
Ask an LLM
“How do I pause a running Facebook campaign?”
“Can I stop a campaign without deleting it?”
Tell an agent
Pause Facebook campaign {campaignId} at location {locationId}.
Stop campaign {campaignId} at location {locationId} without deleting it.
POST /ad-publishing/facebook/campaigns/{campaignId}/resume Resume a paused Facebook campaign · Resume campaign #
Ask an LLM
“How do I restart a paused Facebook campaign?”
“Can I bring a paused campaign back online?”
Tell an agent
Resume Facebook campaign {campaignId} at location {locationId}.
Restart paused campaign {campaignId} at location {locationId}.
POST /ad-publishing/facebook/campaigns/{campaignId}/duplicate Duplicate a Facebook campaign · Duplicate campaign #
Ask an LLM
“How do I copy a Facebook campaign to start a new one?”
“Can I duplicate a campaign with its ads?”
Tell an agent
Duplicate Facebook campaign {campaignId} at location {locationId}.
Copy campaign {campaignId} into a new campaign at location {locationId}.
DELETE /ad-publishing/facebook/campaigns/{campaignId} Delete a Facebook campaign · Delete campaign #
Ask an LLM
“How do I delete a Facebook campaign?”
“Can I remove a campaign by ID?”
Tell an agent destructive · confirm first
Delete Facebook campaign {campaignId} at location {locationId}.
Remove campaign {campaignId} from location {locationId}.
POST /ad-publishing/facebook/adsets/{adsetId}/pause Pause a Facebook ad set · Pause ad set #
Ask an LLM
“How do I stop a Facebook ad set from running?”
“Can I pause an ad set instead of deleting it?”
Tell an agent
Pause Facebook ad set {adsetId}.
Pause ad set {adsetId} at location {locationId}.
POST /ad-publishing/facebook/adsets/{adsetId}/resume Resume a paused Facebook ad set · Resume ad set #
Ask an LLM
“How do I restart a paused Facebook ad set?”
“Can I bring a paused ad set back online?”
Tell an agent
Resume Facebook ad set {adsetId}.
Resume paused ad set {adsetId} at location {locationId}.
POST /ad-publishing/facebook/adsets/{adsetId}/duplicate Duplicate a Facebook ad set · Duplicate ad set #
Ask an LLM
“How do I copy an existing Facebook ad set?”
“Can I duplicate an ad set to test a variation?”
Tell an agent
Duplicate Facebook ad set {adsetId}.
Copy ad set {adsetId} into a new ad set.
DELETE /ad-publishing/facebook/adsets/{adsetId} Delete a Facebook ad set · Delete ad set #
Ask an LLM
“How do I permanently remove a Facebook ad set?”
“Can I delete an ad set by its ID?”
Tell an agent destructive · confirm first
Delete Facebook ad set {adsetId}.
Remove ad set {adsetId} at location {locationId}.
POST /ad-publishing/facebook/ads/{adId}/pause Pause a Facebook ad · Pause ad #
Ask an LLM
“How do I stop a single Facebook ad from running?”
“Can I pause one ad without touching its ad set?”
Tell an agent
Pause Facebook ad {adId}.
Pause ad {adId} at location {locationId}.
POST /ad-publishing/facebook/ads/{adId}/resume Resume a paused Facebook ad · Resume ad #
Ask an LLM
“How do I unpause a Facebook ad I paused?”
“Can I resume a paused ad for a specific location?”
Tell an agent
Resume paused Facebook ad {adId} for location {locationId}.
Unpause Facebook ad {adId} in location {locationId}.
POST /ad-publishing/facebook/ads/{adId}/duplicate Duplicate a Facebook ad · Duplicate ad #
Ask an LLM
“How do I make a copy of an existing Facebook ad?”
“Can I duplicate an ad so I can edit the headline without touching the original?”
Tell an agent
Duplicate Facebook ad {adId}.
Make a copy of the existing Facebook ad {adId} using API version {version}.
DELETE /ad-publishing/facebook/ads/{adId} Delete a Facebook ad · Delete ad #
Ask an LLM
“How do I permanently delete a Facebook ad?”
“Can I delete an ad by its ID for a location?”
Tell an agent destructive · confirm first
Delete Facebook ad {adId}.
Remove Facebook ad {adId} in location {locationId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/highlevel:highlevel-facebook-ads-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

highlevel-facebook-ads-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ad Manager Facebook Ads API
  description: Documentation for Ad-publishing API
  version: '1.0'
  contact: {}
servers:
- url: https://services.leadconnectorhq.com
tags:


# --- truncated at 32 KB (60 KB total) ---
# Full source: https://artifacts.apis.io/highlevel/openapi/highlevel-facebook-ads-api-openapi.yml