metaAds.getLead retrieves one Lead Ads lead.
automations/meta-ads-get-lead.automation.ts
{ account } selects a static project account binding.
Returns attribution and captured field values for the lead.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieves one Lead Ads lead.
metaAds.getLead retrieves one Lead Ads lead.
import { automation, onDashboardRun } from "automate.ax"
import { metaAds } from "automate.ax/meta-ads"
export default automation("Get lead", () => {
onDashboardRun({ title: "Get lead" })
const result = metaAds.getLead({ leadId: "lead-id", pageId: "page-id" })
// Use result in the next advertising, reporting, or delivery operation.
})
{ account } selects a static project account binding.
Returns attribution and captured field values for the lead.