Create a Reddit Ads campaign from an agent
Creating a Reddit Ads campaign takes two calls: ads.validateCampaignPlan, a dry run, then ads.createCampaignPlan, which leaves configured_status: PAUSED on the campaign, ad group, and ad. A signed-in workspace owner activates it in the web app; MCP refuses.
What PubNio supports in a Reddit plan
Beyond a name, an objective, and a budget, a Reddit plan needs:
creative.providerSettings.postId: the published post to promote; the ad create is refused without it.- A budget on the ad group, from the plan, the target, or the ad group; the ad group create is refused without it.
The plan's schedule goes to Reddit as start_time and end_time on the campaign and the ad group. Without startAt, start_time is the moment of the create, and end_time is sent only with endAt.
| Plan objective | Reddit receives |
|---|---|
| every objective | providerSettings.objective, else TRAFFIC |
Spend controls
ads.validateCampaignPlancompiles the plan and checks account readiness, capabilities, budget, currency, and the spend policy without calling the provider.- Activating a campaign takes
confirmation: "activate_spend"from a signed-in workspace owner in the web app; an API key or an MCP session gets 403human_actor_required.
1. Validate the plan (dry run)
POST /api/v1/ads/campaigns/validate?workspaceId=3d9a1f20-7c4b-4e8a-9f61-2b5c8d7e0a14
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "CLI launch post boost",
"objective": "traffic",
"budget": {
"amountMinor": 2500,
"currency": "USD",
"kind": "daily"
},
"schedule": {
"startAt": "2027-01-12T14:00:00Z",
"endAt": "2027-01-19T14:00:00Z",
"timezone": "America/New_York"
},
"targets": [
{
"accountId": "7f3c2a10-5b4e-4d6f-8a9b-0c1d2e3f4a5b",
"providerSettings": {
"objective": "TRAFFIC"
}
}
],
"adGroups": [
{
"name": "r/devops readers",
"targeting": {
"communities": [
"devops",
"sysadmin"
]
},
"providerSettings": {
"goalType": "DAILY_SPEND"
},
"ads": [
{
"name": "Deploy log thread",
"creative": {
"destinationUrl": "https://devops.example.com/cli-launch",
"providerSettings": {
"postId": "t3_1h8k2qz"
}
}
}
]
}
]
}
A ready account gets 200 with valid: true and no issues. Reddit's rules run only at create, so a valid plan can still be refused there.
2. Create it paused
Send the same plan with Idempotency-Key: plan-reddit-ads-1: PubNio answers 202 queued, and ads.getOperation reports when every level exists paused. The same key with the same plan returns the same planId; with another plan it gets 400 idempotency_conflict.
Limits
- Reddit's adapter has no local draft check, so Reddit's own rules run only at create and validation can pass a plan Reddit then refuses.
- The creative's
headline,body, andcallToActionare not sent to Reddit: the ad is the published post, and only itspostId, an optionaltype, and thedestinationUrl(asclick_url) leave the creative.

