Call it
curl https://api.peume.com/v1/call/create-a-standalone-campaign \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"name": "your name",
"goal": "engagement",
"status": "PAUSED",
"countries": [
"US",
"CA"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/create-a-standalone-campaign", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"name": "your name",
"goal": "engagement",
"status": "PAUSED",
"countries": [
"US",
"CA"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/create-a-standalone-campaign",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"name": "your name",
"goal": "engagement",
"status": "PAUSED",
"countries": [
"US",
"CA"
]
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: create-a-standalone-campaign.
Parameters
stagebooleanSend true to stage this create instead of sending it. Nothing is created on the ad network; the response is `202` with the staged change. Create it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; cannot be combined with `validateOnly`.
accountIdRequiredstringSocialAccount id (posting or ads variant); its platform decides where the campaign is created.
adAccountIdRequiredstringPlatform ad account id (Meta act_<n>, Google customer id, LinkedIn account id,...).
nameRequiredstringgoalRequiredstringMapped to the ODAX objective (same mapping as POST /v1/ads/create).
engagement · traffic · awareness · video_views · lead_generation · lead_conversion · job_applicants · conversions · app_promotion · catalog_sales · page_likes · page_visits
isSkadnetworkAttributionbooleanMeta app promotion only. Immutable campaign flag. Set true for iOS 14+ SKAdNetwork campaigns and supply promotedObject.applicationId plus promotedObject.objectStoreUrl. The campaign receives promotedObject only when this flag is true. Cannot be changed on an existing campaign.
promotedObjectobjectpromotedObject
buyingTypestringEvery platform buys at auction by default, so this only needs sending on Meta, and only to choose RESERVED. `AUCTION` is accepted on every platform and changes nothing. `RESERVED` (Reach & Frequency) is Meta-only and is rejected with a 400 elsewhere. SKAdNetwork app promotion requires AUCTION.
AUCTION · RESERVED
validateOnlybooleanMeta and ChatGPT (OpenAI). Runs campaign validation without creating or persisting a campaign; Idempotency-Key storage is bypassed. Returns HTTP 200 with validateOnly true and status VALIDATED. OpenAI has no dry-run, so checks the budget, goal and conversion event itself. `true` on any other platform returns 501 `feature_not_available` (same as POST /v1/ads/create); `false` is ignored.
specialAdCategoriesarraybudgetAmountnumberCampaign-level (CBO) budget in WHOLE currency units (USD: 50 = $50.00), NOT cents. Meta's own Marketing API takes this same number in minor units, so it is an easy and expensive mix-up. Requires budgetType.
budgetTypestringdaily · lifetime
statusstringACTIVE · PAUSED
Example: PAUSED
startDatestringReddit, Amazon and AppLovin only (400 elsewhere). Campaign start (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (`budgetAmount` + `budgetType`, 400 otherwise). AppLovin reads it in UTC and refuses a start before today. Defaults to now.
endDatestringReddit, Amazon and AppLovin only (400 elsewhere). Campaign end (ISO 8601); a value without an offset is read in the ad account time zone. Requires a campaign budget (400 otherwise), and is required for `budgetType: lifetime`. On AppLovin no endDate means continuous delivery.
countriesarrayAppLovin only (400 elsewhere), where the campaign carries the targeting: the countries it serves, at least one.
Example: ["US","CA"]
regionsarrayAppLovin only (400 elsewhere). US state codes (`CA` or `US-CA`), with `US` in countries. Never together with metros.
metrosarrayAppLovin only (400 elsewhere). AppLovin metro names, with `US` in countries. Never together with regions.
platformSpecificDatastringAmazon Ads (required there: the ad product and its campaign settings) and AppLovin (the campaign type, app or website, goal, bidding and tracking; its creative set fields do not apply here) only, 400 elsewhere.
locationTargetingTypestringGoogle only (400 elsewhere). Written on the new campaign.
bidStrategystringCampaign bid strategy. **Meta** stores `bid_strategy` alongside the budget, so this REQUIRES `budgetAmount` + `budgetType` on the same request (400 without a campaign budget). A campaign carrying a strategy without its `bid_amount` makes every ad set under it fail (code 100, subcode 1815857), so that state is rejected up front. To bid at ad-set level, set the strategy there instead. **Google:** - LOWEST_COST_WITHOUT_CAP = Maximize Conversions - COST_CAP + bidAmount = Target CPA - LOWEST_COST_WITH_MIN_ROAS + roasAverageFloor = Target ROAS - LOWEST_COST_WITH_BID_CAP + bidAmount = Maximize Cl
LOWEST_COST_WITHOUT_CAP · LOWEST_COST_WITH_BID_CAP · COST_CAP · LOWEST_COST_WITH_MIN_ROAS
bidAmountnumberWhole currency units (USD: 5 = $5.00). Required for LOWEST_COST_WITH_BID_CAP and COST_CAP (on Google, optional for LOWEST_COST_WITH_BID_CAP); ignored otherwise. - Meta: validated here but NOT stored, since the campaign object only has bid_strategy. The amount takes effect once an ad set joins this campaign (existingCampaignId on POST /v1/ads/create) and supplies its own bidAmount there. - Google: stored directly on the campaign's bidding strategy.
roasAverageFloornumberDecimal ROAS multiplier (2.0 = 2.0x). Required for LOWEST_COST_WITH_MIN_ROAS.
portfolioBidStrategyIdstringGoogle only. Attach an existing portfolio bid strategy (numeric id from GET /v1/ads/bid-strategies) to the new campaign instead of a standard one. Exclusive with bidStrategy.
targetImpressionSharestringGoogle Search only. Target impression share bidding. Exclusive with bidStrategy, portfolioBidStrategyId and manualCpc; bidAmount is refused alongside it (the ceiling is maxCpc).
manualCpcobjectmanualCpc
networkSettingsobjectnetworkSettings
