Campaigns setup
campaigns_setupReads the Meta account settings a new launch or a read-only launch check needs: the selected Meta accounts with internal accountId, currency, snapshot freshness and available Page IDs, the account's datasets (pixels) as the editor lists them, the datasets its ad sets optimize for (adSetDatasetIds), and image hashes. Edits to what already runs (budget, bid, status, placements, audience, dates, copy) take their ids from campaigns_structure. Candidates listed here are not confirmed selections, permission or event checks, or a passed preflight. Without an explicitly scoped account it returns the accounts to pick from. An empty asset list means media has to be uploaded, or an identity connected, in Adrails Campaigns. Read only.
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": {
"input": "<input>"
},
"name": "campaigns_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| accountIds | No | Optional account selection; can only narrow this workspace's access. | |
| userStatement | No | Required for launch_brief: the user's request or answer for this launch, in their own words. Otherwise optional: the user's request for this call, treated as an unverified user statement, never permission or verified platform evidence. | |
| idempotencyKey | No | Required for mutations. Reuse the same key only when retrying the exact same call; a completed outcome is applied once. |