campaign_and_resource_get
Get campaigns or related resources.
Unless you already fetched it this session, call get_business_context (passing ds_id and account_id) to fetch applicable guidelines — e.g. which campaigns to focus on, how to evaluate performance, reporting preferences — and reuse that result for the rest of the session.
resource_type options (options go in params; each params key names the types it applies to):
campaigns (default): list, or one campaign with campaign_id. Ad groups/ads are INSIDE campaigns — use campaign_id + campaign_detail_level, not a separate resource_type.
health_check: 30-day snapshot of one campaign. Custom dates/breakdowns: use data_query instead
forecast: the platform's own delivery estimate for defined targeting across bid/daily-budget levels (AW/FA, account currency). For FA budget planning, campaign_planner is usually the better starting point.
assets: platform creative library (use id as asset_id) plus saved uploads/AI images (saved[], use upload_ref). Lists without opening creative_picker
pages (FA Pages), posts (FA promotable posts)
keyword_ideas/keyword_volumes (AW/AC)
targeting_search: search targeting catalog
reach_estimate: audience size
audiences, recommendations, history
experiments: campaign experiments / A/B tests with status, type and date range (AW)
negative_keyword_lists: shared negative keyword lists with keywords and campaigns using them (AW)
conversion_types: conversion actions and any pixels (definitions, not per-campaign counts). data_query for metrics
approval_status: outcome of a change sent for approval
campaign_planner: optimistic/expected/pessimistic outcomes for a Facebook Ads budget, benchmarked on similar advertisers (FA only, EUR). Not the platform's own estimate - that is forecast.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ds_id": "<ds_id>",
"account_id": "<account_id>"
},
"name": "campaign_and_resource_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ds_id | Yes | Ad platform: AW (Google), FA (Meta), AC (Microsoft), TIK (TikTok), LIA (LinkedIn), CGPTA (ChatGPT), SCM (Snapchat) | |
| params | No | Resource-type-specific parameters Options for the chosen resource_type; each key names the resource types it applies to. | |
| max_rows | No | Max results (default 50; raise e.g. 200 for more) | |
| account_id | Yes | Ad account ID from accounts_discovery (e.g. '1234567890' or 'act_123456') | |
| resource_type | No | Resource to fetch (default: campaigns). See tool description for valid values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| notes | No | ||
| success | Yes | ||
| business_context | No |