Call it
curl https://api.peume.com/v1/call/google-ads-list-google-company-ads \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"end_date": "your end date",
"cursor": "your cursor"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-ads-list-google-company-ads", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"end_date": "your end date",
"cursor": "your cursor"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-ads-list-google-company-ads",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"end_date": "your end date",
"cursor": "your cursor"
}
},
)
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: google-ads-list-google-company-ads.
Parameters
end_datestringEnd date to search for. Format: YYYY-MM-DD
cursorstringLeave empty for the first request. For the next page, use the cursor from your previous response and keep the same filters.
domainstringThe domain of the company
formatstringAd format to search for.
text · image · video
topicstringThe topic to search for. If you search for 'political', you will also need to pass a 'region', like 'US' or 'AU'
all · political
regionstringThe region to search for. Defaults to anywhere
get_ad_detailsstringSet to true to get the ad details.
platformstringPlatform to search for.
google_maps · google_play · google_search · google_shopping · youtube
advertiser_idstringThe advertiser id of the company
start_datestringStart date to search for. Format: YYYY-MM-DD
