V4 Marketing API
HomeAPI Reference
Changelog
HomeAPI Reference
Changelog
V4 Marketing
  1. Facebook Ads
  • Guia Rápido
  • Facebook Ads
    • Overview
    • Accounts
      GET
    • Ads
      GET
    • Ad Sets
      GET
    • Campaigns
      GET
    • Actions
      GET
    • Ad Creatives
      GET
    • Demographics
      GET
    • Platforms
      GET
    • Regions
      GET
    • Ad Config
      GET
    • Ad Set Config
      GET
    • Campaigns Config
      GET
  • Google Ads
    • Overview
    • Accounts
    • Ad Group Ads
    • Ad Groups
    • Campaigns
    • Keywords
    • Age Range
    • Gender
    • Geographic
    • Conversions
    • Conversion Segmented Ad Group Ads
    • Conversion Segmented Ad Groups
    • Conversion Segmented Campaigns
    • Campaigns Criterion
    • Ad Group Criterion
  • Tray
    • Overview
    • Customers
    • Orders
    • Products
  • Shopify
    • Overview
    • Customers
    • Orders
    • Order Items
    • Products
HomeAPI Reference
Changelog
HomeAPI Reference
Changelog
V4 Marketing
  1. Facebook Ads

Platforms

GET
https://api.data.v4.marketing/v1/facebook/ads/platform
Retrieve Facebook Ads platforms data with performance metrics segmented by publisher platform and ad position.
This endpoint provides platform-level insights including Facebook, Instagram, Messenger, and Audience Network performance.
Dimensions Available:
Adset ID, ad ID, publisher platform, platform position, objective
Metrics: impressions, reach, clicks, spend, full_view_reach
Date range (date_start, date_stop)
Limitations:
Maximum 5000 records per page
Supports date filtering via dateStart and dateEnd (ISO 8601 format)
Supports sorting via orderBy and orderDirection (ASC/DESC)
Filters:
workspaceId (required)
organizationId (optional)
userId (optional)
integrationName (optional)
dateStart (optional)
dateEnd (optional)

Requisição

Authorization
API Key
Adicionar parâmetro em header
x-client-id
Exemplo:
x-client-id: ********************
API Key
Adicionar parâmetro em header
x-client-secret
Exemplo:
x-client-secret: ********************
or
Parâmetros de Consulta

Respostas

🟢200Sucesso
application/json
Successful response
Body

🟠400400
🔴500500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.data.v4.marketing/v1/facebook/ads/platform?workspaceId=workspace_123&organizationId&userId&integrationName&dateStart=2024-01-01&dateEnd=2024-12-31&page&limit&orderBy&orderDirection' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>'
Response Response Example
200 - Exemplo 1
{
    "data": [
        {
            "adset_id": "string",
            "ad_id": "string",
            "clicks": 0,
            "reach": 0,
            "impressions": 0,
            "objective": "string",
            "spend": 0,
            "full_view_reach": 0,
            "date_start": "2019-08-24",
            "date_stop": "2019-08-24",
            "publisher_platform": "string",
            "platform_position": "string",
            "workspace_id": "string",
            "organization_id": "string",
            "user_id": "string",
            "document_id": "string",
            "integration_name": "string",
            "inserted_at": "2019-08-24T14:15:22.123Z"
        }
    ],
    "meta": {
        "page": 0,
        "limit": 0,
        "hasNextPage": true,
        "hasPreviousPage": true
    }
}
Modificado em 2025-12-02 02:02:03
Página anterior
Demographics
Próxima página
Regions
Built with