Automate Meta Ads with TypeScript

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

inspect-meta-campaigns.automation.ts
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

Start automating with Meta Ads today

Start building