Call it
curl https://api.peume.com/v1/call/per-creative-performance-inside-tiktok-smart-ads \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"startDate": "your startDate",
"endDate": "your endDate",
"level": "ad",
"page": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/per-creative-performance-inside-tiktok-smart-ads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"startDate": "your startDate",
"endDate": "your endDate",
"level": "ad",
"page": 1
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/per-creative-performance-inside-tiktok-smart-ads",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"adAccountId": "your adAccountId",
"startDate": "your startDate",
"endDate": "your endDate",
"level": "ad",
"page": 1
}
},
)
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: per-creative-performance-inside-tiktok-smart-ads.
Parameters
accountIdRequiredstringA tiktok or tiktokads account ID
adAccountIdRequiredstringTikTok advertiser ID
startDateRequiredstringYYYY-MM-DD, in the advertiser's time zone
endDateRequiredstringYYYY-MM-DD, on or after startDate
levelstringKey each row by Smart+ ad or by ad group
ad · adGroup
Example: ad
smartPlusAdIdsstringComma-separated Smart+ ad ids to filter by (up to 100)
adGroupIdsstringComma-separated ad group ids to filter by (up to 100)
pageintegerExample: 1
pageSizeintegerExample: 100
