metaAds.getSubscription retrieves one custom event subscription by ID.
automations/meta-ads-get-subscription.automation.ts
{ account } selects a static project account binding.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieves one custom event subscription from an ad account.
metaAds.getSubscription retrieves one custom event subscription by ID.
import { automation, onDashboardRun } from "automate.ax"
import { metaAds } from "automate.ax/meta-ads"
export default automation("Get subscription", () => {
onDashboardRun({ title: "Get subscription" })
const subscription = metaAds.getSubscription({
adAccountId: "123456789",
subscriptionId: "subscription-id",
})
// Use subscription in the next advertising or reporting operation.
})
{ account } selects a static project account binding.