Facebook Ads

Overview

Overview of V4MOS.AI Facebook Ads API

The V4MOS.AI Facebook Ads API allows you to access and manage campaign data, ad sets, and individual ads.

Available Endpoints

Hierarchical Structure

Facebook Ads follows a hierarchical structure:

Campaign
├── Ad Set
│   ├── Ad
│   ├── Ad
│   └── Ad
└── Ad Set
    ├── Ad
    └── Ad

Authentication

All endpoints require the x-client-id and x-client-secret headers, plus the organizationId query parameter. See Authentication.

Common Parameters

  • organizationId - Organization ID (required)
  • userId - User ID
  • page - Page number (default: 1)
  • limit - Limit per page (default: 500, max: 5000)
  • orderBy - Field for ordering
  • orderDirection - Order direction (ASC/DESC)
  • createdStart - Start date for filtering
  • createdEnd - End date for filtering

Facebook-Specific Fields

Campaigns

  • campaign_name - Campaign name
  • objective - Campaign objective (e.g., CONVERSIONS, REACH, etc.)
  • status - Campaign status
  • date_start - Start date
  • date_stop - End date

Ad Sets

  • adset_name - Ad set name
  • campaign_id - Parent campaign ID
  • status - Ad set status

Ads

  • ad_name - Ad name
  • adset_id - Parent ad set ID
  • campaign_id - Parent campaign ID

Available Metrics

  • clicks - Number of clicks
  • reach - Reach
  • impressions - Number of impressions
  • spend - Amount spent

Responses

All responses follow the standard format:

{
  "data": [...],
  "meta": {
    "page": 1,
    "limit": 500,
    "hasNextPage": true,
    "hasPreviousPage": false
  }
}

On this page