fb_get_campaign

Pack: facebook_ads · Endpoint: https://gateway.pipeworx.io/facebook_ads/mcp

Get detailed campaign info: name, budget, status, schedule, and targeting. Requires account_id and campaign_id.

Parameters

NameTypeRequiredDescription
campaign_idstringyesCampaign ID
fieldsstringnoComma-separated fields (default: “id,name,status,objective,daily_budget,lifetime_budget,start_time,stop_time,created_time,updated_time”)

Example call

Arguments

{
  "campaign_id": "120393847102340"
}

curl

curl -X POST https://gateway.pipeworx.io/facebook_ads/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fb_get_campaign","arguments":{"campaign_id":"120393847102340"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('fb_get_campaign', {
  "campaign_id": "120393847102340"
});

More examples

{
  "campaign_id": "120393847102340",
  "fields": "id,name,status,objective,daily_budget,lifetime_budget,start_time,stop_time,created_time,updated_time,adset_spec"
}

Response shape

FieldTypeDescription
idstringCampaign ID
namestringCampaign name
statusstringCampaign status
objectivestringCampaign objective
daily_budgetnumberDaily budget in cents
lifetime_budgetnumberLifetime budget in cents
start_timestringCampaign start time ISO 8601
stop_timestringCampaign stop time ISO 8601
created_timestringCampaign creation time ISO 8601
updated_timestringCampaign last update time ISO 8601
errorstringError code if connection failed
messagestringError message if connection failed
Full JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Campaign ID"
    },
    "name": {
      "type": "string",
      "description": "Campaign name"
    },
    "status": {
      "type": "string",
      "description": "Campaign status"
    },
    "objective": {
      "type": "string",
      "description": "Campaign objective"
    },
    "daily_budget": {
      "type": "number",
      "description": "Daily budget in cents"
    },
    "lifetime_budget": {
      "type": "number",
      "description": "Lifetime budget in cents"
    },
    "start_time": {
      "type": "string",
      "description": "Campaign start time ISO 8601"
    },
    "stop_time": {
      "type": "string",
      "description": "Campaign stop time ISO 8601"
    },
    "created_time": {
      "type": "string",
      "description": "Campaign creation time ISO 8601"
    },
    "updated_time": {
      "type": "string",
      "description": "Campaign last update time ISO 8601"
    },
    "error": {
      "type": "string",
      "description": "Error code if connection failed"
    },
    "message": {
      "type": "string",
      "description": "Error message if connection failed"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "facebook_ads": {
      "url": "https://gateway.pipeworx.io/facebook_ads/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026