Call it
curl https://api.peume.com/v1/call/suggested-bid-and-budget-bounds \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"spec": "your spec"
}
}'const res = await fetch("https://api.peume.com/v1/call/suggested-bid-and-budget-bounds", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"spec": "your spec"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/suggested-bid-and-budget-bounds",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"spec": "your spec"
}
},
)
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: suggested-bid-and-budget-bounds.
Parameters
accountIdRequiredstringaccount ID (LinkedIn).
adAccountIdRequiredstringLinkedIn ad account ID (numeric).
specRequiredstringSame targeting spec used by POST /v1/ads/create.
campaignTypestringDefaults to SPONSORED_UPDATES.
TEXT_AD · SPONSORED_UPDATES · SPONSORED_INMAILS
bidTypestringDefaults to CPM.
CPM · CPC · CPV
matchTypestringDefaults to EXACT.
EXACT · AUDIENCE_EXPANDED
currencystringISO 4217, defaults to USD.
objectiveTypestringLinkedIn objectiveType, e.g. WEBSITE_VISIT, LEAD_GENERATION, VIDEO_VIEW.
optimizationTargetTypestringLinkedIn optimizationTargetType, e.g. MAX_CLICK, MAX_IMPRESSION.
dailyBudgetnumberOptional daily budget in whole account-currency units. LinkedIn refines the suggested bid to this budget.
