Skip to main content

Overview

The Meta Ads server enables AI assistants to manage advertising campaigns across Facebook and Instagram through the Meta Marketing API. It provides comprehensive ad management capabilities including campaign creation, audience targeting, creative management, and performance analytics. Built by wipsoft.

How to Add Meta Ads

1

Add Server

Add the Meta Ads server to your Nexus environment through the server directory.
2

Authorize

Connect your Meta account using Facebook Login and approve the OAuth consent request to grant access to your ad accounts.
3

Test Connection

Try “Verify my Meta ad account setup” or “List my active campaigns” to verify the connection works.
Facebook Login for Business: Meta Ads uses Facebook OAuth for authentication. You’ll need a Meta Business account with access to an ad account.Experimental Status: This server is marked as EXPERIMENTAL and uses the Meta Marketing API v23.0.

What You Can Do

Campaign Management

Create, update, pause, resume, and delete ad campaigns with full budget and objective control

Analytics & Insights

Analyze performance metrics, compare campaigns, track attribution, and export reports

Audience Targeting

Build custom audiences, create lookalikes, estimate reach, and manage targeting

Creative Management

Create ad creatives, upload assets, preview ads, validate compliance, and A/B test

Available Tools (49)

Campaign Management (8)

Retrieve a paginated list of all campaigns for a Meta ad account. Filter by status (ACTIVE, PAUSED, DELETED, ARCHIVED) and view key campaign details including budget, objective, and timing.
Create a new Meta ad campaign with a specified objective, name, and budget. Supports daily or lifetime budgets, scheduling, special ad categories, and bid strategies. Campaigns are created in PAUSED status by default.
Update an existing campaign’s settings including name, status, budget, or schedule. Only provided fields are updated.
Retrieve full details for a specific campaign by ID including status, objective, budget, and timing.
Instantly pause a campaign to stop ad delivery and spending. Use for emergency stops, budget control, or temporary suspensions.
Reactivate a previously paused campaign to resume ad delivery and spending.
Permanently delete a campaign and all its associated ad sets and ads. This action cannot be undone.
Check if a campaign is ready for ad set creation. Returns a readiness report with issues, requirements, and recommendations. Use before creating ad sets to avoid common errors.

Ad Set Management (3)

List all ad sets for a given campaign or ad account. Filter by status and paginate results. Returns details including budget, targeting, and optimization settings.
Create a new ad set with advanced validation and helpful error messages. Specify campaign, name, budget, optimization goal, billing event, targeting, and promoted object. Returns the new ad set ID or detailed error guidance.
List all ad sets within a specific campaign with a summary of active/paused counts and total daily budget.

Ad Management (1)

List all ads for a given campaign, ad set, or ad account. Filter by status and paginate results. Returns ad details including creative, status, and timing.

Analytics & Insights (5)

Retrieve performance metrics for campaigns, ad sets, or individual ads. Supports customizable date ranges, metric selection, and data breakdowns by dimensions like age, gender, and placement.
Get performance insights specific to a campaign with campaign-specific defaults. Simplified version of get_insights.
Compare performance metrics across multiple campaigns, ad sets, or ads (2-10 items) to identify top performers and optimization opportunities.
Get attribution data for campaigns including conversion tracking and attribution windows.
Export ad insights data in CSV or JSON format for external analysis, reporting, and data warehousing.

Audience Management (7)

List all custom audiences in the ad account. Filter by type (custom, lookalike, saved).
Create a custom audience from customer data, website traffic, or app activity. Supports multiple subtypes including WEBSITE, APP, and OFFLINE_CONVERSION.
Create a lookalike audience based on an existing custom audience to reach new potential customers. Configure country and audience ratio (1%-20% of population).
Estimate the size of an audience based on targeting parameters including demographics, interests, behaviors, and custom audiences.
Update custom audience settings and configuration.
Get guidance on audience deletion process. Deleting an audience is permanent and cannot be undone.
Get guidance on retrieving audience demographic insights including age distribution, gender, location, and interest affinity.

Creative Management (16)

List all ad creatives in an ad account to see existing creatives, their formats, and content.
Create a new ad creative with images, videos, text, and call-to-action buttons. Supports both image and video creatives with Meta API v23.0 compliance.
Validate ad creative parameters before creation to catch errors early. Checks required fields and URL validity.
Enhanced creative validation with comprehensive checks including page permissions, image accessibility, and Meta API compliance.
Generate HTML preview of how an ad creative will appear in different placements (desktop feed, mobile feed, Instagram, Stories).
Upload an image from a URL to Meta and get the image_hash for v23.0 API compliance.
Get guidance on uploading creative assets (images/videos) to Meta with step-by-step instructions and technical requirements.
Get comprehensive guidance on setting up A/B tests for ad creatives including best practices and metrics to track.
Get guidance on analyzing creative performance metrics and optimization strategies.
Get information about creative update limitations - creatives cannot be modified after creation, provides alternative approaches.
Get guidance on creative deletion process and impact, with safety checks to avoid disrupting active campaigns.
Get comprehensive best practices for creating high-performing ad creatives with platform-specific guidelines.
Diagnose and fix common creative creation and performance issues with specific solutions and recommendations.
Analyze all creatives in an account to identify patterns, performance insights, and optimization opportunities.
Check if creative parameters are compliant with Meta Marketing API v23.0 requirements and get recommendations.
Get detailed reference for Meta Marketing API error codes, subcodes, and specific solutions for troubleshooting.

Helper & Reference (3)

Get a reference guide for valid Meta Marketing API parameters including allowed optimization goals, billing events, and their valid combinations.
Get targeted troubleshooting tips for common Meta Ads API errors with likely causes and next steps.
Verify that a Meta ad account is ready for ad creation. Checks account access, payment method, Facebook pages, and active campaigns.

OAuth & Authentication (6)

Generate OAuth authorization URL for Meta to redirect users for authentication.
Exchange OAuth authorization code for an access token.
Exchange a short-lived token for a long-lived token (~60 days).
Generate a system user token for server-to-server automation.
Get information about the current access token including expiration time, scopes, and associated user.
Validate the current access token and check API connectivity.

Use Cases

Campaign Launch

“Create a new traffic campaign called ‘Spring Sale 2025’ with a $50 daily budget” - Set up a new advertising campaign with objective and budget.

Performance Review

“Show me the performance of my active campaigns for the last 30 days” - Analyze campaign metrics with custom date ranges.

A/B Testing

“Compare performance between campaigns 123 and 456 on click-through rate and cost per click” - Compare metrics across campaigns to find top performers.

Audience Building

“Create a lookalike audience based on my top customers targeting the US at 1%” - Build lookalike audiences to reach new potential customers.

Creative Setup

“Create an ad creative with my product image, ‘Shop Now’ CTA, and link to my store” - Build ad creatives with images, text, and call-to-action buttons.

Budget Control

“Pause all my active campaigns immediately” - Emergency stop ad delivery across campaigns.

Reporting

“Export last month’s campaign insights as CSV” - Export performance data for external analysis.

Account Health

“Verify my ad account is set up correctly for creating ads” - Check account readiness including payment methods and page access.
Budget Format: All budget values are specified in account currency cents (e.g., $50.00 = 5000).Campaign Objectives: Uses Meta’s Outcome-Driven Ad Experience (ODAE) format: OUTCOME_APP_PROMOTION, OUTCOME_AWARENESS, OUTCOME_ENGAGEMENT, OUTCOME_LEADS, OUTCOME_SALES, OUTCOME_TRAFFIC.Creative Limitations: Ad creatives cannot be modified after creation. To make changes, create a new creative and update the ad to use it.API Version: This server uses Meta Marketing API v23.0. Use check_api_v23_compliance to verify your parameters are compliant.

Troubleshooting

Permission Issues After Connecting

Meta’s OAuth flow sometimes does not prompt for ads permissions during authorization. If you’ve connected successfully but still receive permission errors, you’ll need to grant ad account access manually.
This is a known issue with Meta’s OAuth — the ad account must explicitly grant your user account the proper permissions, which can’t always be done through the OAuth flow alone.
  1. Go to Meta Ads Manager
  2. In the account selector, find your ad account
  3. Click the account settings
  4. Go to Ad Account Roles
  5. Make sure your account has Admin or Advertiser role
After making these changes in Business Manager, the permissions should propagate and you can reconnect the server.