Get entities
Retrieve campaigns, ad sets, or ads for a location. entityType selects which, and each returns a { data } envelope whose item shape differs — the id key is campaignId, adSetId, or adId respectively, and the status fields differ too: campaigns carry both status and effectiveStatus, ad sets only effectiveStatus, and ads only status. next is returned only when the branch pages through Meta, so treat its absence as the end of the results rather than assuming a cursor. For CAMPAIGN, type=INTEGRATION queries Meta while type=AD_MANAGER reads campaigns this service published, filtered to PAUSED and PUBLISHED. ADSET requires campaignId; AD accepts adSetId for a single ad set or campaignId to page across the campaign.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your access token.
adPublishing. readonlyOAuthPrivate IntegrationSub-Account TokenRequest
Headers
API Version
v3v3Query Parameters
Location identifier
loc_abc123Integration source type
AD_MANAGERINTEGRATIONAD_MANAGERPagination cursor
cursor_abcFetch all entities
trueCampaign identifier
camp_123Ad set identifier
adset_123Entity type to fetch
CAMPAIGNADSETADCAMPAIGNSearch identifier
search_123Selected ad account ID
act_123456Response
Campaigns, ad sets, or ads, matching the requested entityType
- FacebookEntityCampaignsResponseDTO
- FacebookEntityAdsetsResponseDTO
- FacebookEntityAdsResponseDTO
Campaigns, shaped by the requested type
Cursor for the next page, to be passed back as next. Present only on the INTEGRATION branch, and absent once the last page is reached.
QVFIVFdHQTJVV1Vod3hVZAlRDLUpSM19HVjVScGNDMXozTU5RVkk1NWt6MnNISmZAtMVpMcVU5dVYwRU00R0xfVTh5c3AZD