![](/provider-icons/meta-ads.svg)

# Automate Meta Ads with TypeScript

Growth plan or higher

Manage campaign delivery, creative, audiences, leads, conversions, and insights. Trigger automations from ad-account changes and new Lead Ads submissions.

inspect-meta-campaigns.automation.tsCopy

```
import { automation } from "automate.ax"
import { metaAds } from "automate.ax/meta-ads"

export default automation("Inspect Meta delivery", () => {
  const change = metaAds.onCampaignEffectiveStatusChanged({
    adAccountId: "123456789",
  })

  metaAds.getCampaign({ id: change.value.objectId })
})
```

## What you can do

### Actions

* Manage campaigns, ad sets, ads, and creative
* Build custom audiences and send conversions
* Read insights, accounts, pixels, forms, and leads
* Manage filtered ad-account event subscriptions

### Triggers

* Campaign, ad-set, and ad status changes
* Object, insights, recommendation, and issue events
* Creative fatigue and processing completion
* New Lead Ads submissions

[Read the Meta Ads reference](/docs/reference/integrations/meta-ads/index)

## Works with

[![](/provider-icons/airtable.svg)AirtableUse Airtable records as live inputs.](/integrations/airtable)[![](/provider-icons/hubspot.svg)HubSpotTurn CRM changes into immediate follow-up.](/integrations/hubspot)[![](/provider-icons/slack.svg)SlackTurn workspace activity into work.](/integrations/slack)

## Start automating with Meta Ads today

[Start building](/app)
