get_ad_leads
Retrieve lead form submissions for a Meta lead generation ad. Get form responses, timestamps, and related campaign info with pagination support.
Instructions
Get lead form submissions for a Lead Generation ad. Args: ad_id: The ID of the ad. fields: Fields to return. Available: id, created_time, field_data (the actual form responses), form_id, ad_id, ad_name, adset_id, adset_name, campaign_id, campaign_name. Defaults to [id, created_time, field_data, ad_name, campaign_name]. limit: Maximum number of leads to return. after: Cursor for forward pagination. before: Cursor for backward pagination. Returns: A dictionary containing the lead submissions and pagination info.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ad_id": "<ad_id>"
},
"name": "get_ad_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_id | Yes | ||
| after | No | ||
| limit | No | ||
| before | No | ||
| fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |