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
| Name | Type | Required | Description |
|---|---|---|---|
campaign_id | string | yes | Campaign ID |
fields | string | no | Comma-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
| Field | Type | Description |
|---|---|---|
id | string | Campaign ID |
name | string | Campaign name |
status | string | Campaign status |
objective | string | Campaign objective |
daily_budget | number | Daily budget in cents |
lifetime_budget | number | Lifetime budget in cents |
start_time | string | Campaign start time ISO 8601 |
stop_time | string | Campaign stop time ISO 8601 |
created_time | string | Campaign creation time ISO 8601 |
updated_time | string | Campaign last update time ISO 8601 |
error | string | Error code if connection failed |
message | string | Error 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.