Call it
curl https://api.peume.com/v1/call/read-a-campaign-s-ad-schedule-dayparting \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"windowDays": 30,
"campaignId": "your campaignId"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-a-campaign-s-ad-schedule-dayparting", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"windowDays": 30,
"campaignId": "your campaignId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-a-campaign-s-ad-schedule-dayparting",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"windowDays": 30,
"campaignId": "your campaignId"
}
},
)
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: read-a-campaign-s-ad-schedule-dayparting.
Parameters
platformstringDisambiguates the campaign id when the connection spans platforms.
includePerformancebooleanAlso return delivery by day of week and by hour. Costs one extra Google call.
windowDaysintegerTrailing window for the performance split. Ignored when fromDate and toDate are both given.
Example: 30
fromDatestringStart of an explicit performance range (YYYY-MM-DD). Use together with toDate.
toDatestringEnd of an explicit performance range (YYYY-MM-DD). Must be on or after fromDate.
campaignIdRequiredstringNumeric Google platform campaign id.
