Meta Ads Action
The Meta Ads action block allows you to manage campaigns, ad sets, ads, creatives, custom audiences, fetch insights, and retrieve leads from your Meta Ads account.
Setup Prerequisites
Before using the block, you need to connect your Meta Ads account via Credentials. InditeAI requires a System User Access Token generated from your Meta Business Manager.
- Go to your Business Settings in Meta.
- Under Users, select System Users.
- Create a System User (if you don't have one) and assign it to your Ad Accounts with Admin permissions.
- Click Generate New Token and select the
ads_management,leads_retrieval, andbusiness_managementpermissions. - Copy the generated Access Token and paste it into the System User Access Token field in InditeAI along with your default Ad Account ID.
Supported Operations
The block supports multiple operations grouped by category:
Campaign Management
- Create Campaign: Create a new ad campaign (specify Name, Objective, Daily/Lifetime Budget, Status).
- Get Campaign: Retrieve details of a specific campaign by ID.
- Update Campaign: Modify an existing campaign (Name, Status, Budget).
- Delete Campaign: Delete a campaign.
- List Campaigns: Fetch a list of all campaigns in your ad account.
Ad Set Management
- Create Ad Set: Create an ad set under a campaign (specify Target Audience, Budget, Optimization Goal, Placements).
- Get/Update/Delete Ad Set: Manage existing ad sets.
- List Ad Sets: View all ad sets for an account or specific campaign.
Ad & Creative Management
- Create Ad Creative: Create the visual components of your ad (Image, Video, Carousel, Text).
- Create Ad: Combine an Ad Set and an Ad Creative to publish an Ad.
- Get/Update/Delete/List Ads: Manage individual ads.
Insights & Reporting
- Get Account Insights: Top-level metrics for the entire Ad Account (Spend, Impressions, Clicks, CPC).
- Get Campaign/Ad Set/Ad Insights: Granular performance metrics for specific entities.
- Supports filtering by Date Preset (e.g., last_30_days, today, yesterday) and Breakdowns (e.g., age, gender, device).
Custom Audiences
- Create Custom Audience: Create a new Custom Audience.
- Add Users to Audience: Upload a list of users (Email, Phone) to an existing custom audience for retargeting.
- List Custom Audiences: View available audiences.
Example Usage
Automated Reporting:
Use the Get Account Insights operation on a Schedule trigger to fetch yesterday's spend and conversions, then use the Slack block to post a daily summary to your marketing channel.
Audience Sync:
When a new user signs up in your database, trigger a workflow that uses the Add Users to Audience operation to hash their email and push it into a "High Intent Users" Meta custom audience.