Facebook Lead Ads

Sample

The Facebook Lead Ads (facebook_leads) connector pulls Facebook Leads Ads data on a lead level. The supported fields can be found in the table below.

A sample query looks like this:

 

https://connectors.windsor.ai/facebook_leads?api_key=<APIKEY>&date_preset=last_28d&fields=account_name,account_id,campaign,ad_set_name,ad_name,email

And returns data in the following format:

{
"data": [
{
"account_name": "Pied Piper",
"account_id": "1234567898012345",
"campaign": "Facebook_Leads_Campaign",
"ad_set_name": "AdSet_1",
"ad_name": "LeadAd_Acquisition_35",
"email": "peter@piedpiper.com"
}
]
}


Fields

IDTypeNameDescription
account_idTEXTAccount IDThe Page ID of the Facebook Page
account_nameTEXTAccount NameThe Page Name of the Facebook Page
ad_nameTEXTAd NameAd name for the Lead Ad
adset_idTEXTAd Set IDAd Set ID for the Lead Ad
adset_nameTEXTAd Set NameAd Set name for the Lead Ad
campaignTEXTCampaign NameCampaign name for the Lead Ad
campaign_idTEXTCampaign IDCampaign ID for the Lead Ad
created_timeDATECreated TimeTime this object was created
dateDATEDateThe dimension that determines how date-based data in a chart
date_startDATEReporting StartsThe start date for your data. This is controlled by the date range you've selected for your reporting view.
date_stopDATEReporting EndsThe end date for your data. This is controlled by the date range you've selected for your reporting view.
emailTEXTEmail
form_idTEXTForm IDForm ID used for the Lead Ads
full_nameTEXTFull Name
idTEXTIDID of the LeadGenInfo object