Call it
curl https://api.peume.com/v1/call/bing-ads-audience-size-estimate-for-campaign-targeting \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"location_coordinate": "29.6821525,-82.4098881,100",
"age": [
"twenty_five_to_thirty_four",
"eighteen_to_twenty_four",
"unknown"
],
"bid": 1,
"daily_budget": 24,
"gender": [
"male"
],
"industry": [
"806303407",
"806301758"
]
}
}'const res = await fetch("https://api.peume.com/v1/call/bing-ads-audience-size-estimate-for-campaign-targeting", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"location_coordinate": "29.6821525,-82.4098881,100",
"age": [
"twenty_five_to_thirty_four",
"eighteen_to_twenty_four",
"unknown"
],
"bid": 1,
"daily_budget": 24,
"gender": [
"male"
],
"industry": [
"806303407",
"806301758"
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/bing-ads-audience-size-estimate-for-campaign-targeting",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"location_coordinate": "29.6821525,-82.4098881,100",
"age": [
"twenty_five_to_thirty_four",
"eighteen_to_twenty_four",
"unknown"
],
"bid": 1,
"daily_budget": 24,
"gender": [
"male"
],
"industry": [
"806303407",
"806301758"
]
}
},
)
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: bing-ads-audience-size-estimate-for-campaign-targeting.
Parameters
location_namestringfull name of search engine location required field if you don’t specify location_code or location_coordinate if you use this field, you don’t need to specify location_code or location_coordinate you can receive the list of available locations of the search engine with their location_name by making a
location_codeintegersearch engine location code required field if you don’t specify location_name or location_coordinate if you use this field, you don’t need to specify location_name or location_coordinate you can receive the list of available locations of the search engines with their location_code by making a separa
location_coordinatestringGPS coordinates of a location required field if you don’t specify location_name or location_code if you use this field, you don’t need to specify location_name or location_code location_coordinate parameter should be specified in the “latitude,longitude,radius (in km)” format the data will be provid
Example: 29.6821525,-82.4098881,100
agearrayselection of age ranges for targeting possible values: eighteen_to_twenty_four, fifty_to_sixty_four, sixty_five_and_above, thirteen_to_seventeen, thirty_five_to_forty_nine, twenty_five_to_thirty_four, unknown, zero_to_twelve
Example: ["twenty_five_to_thirty_four","eighteen_to_twenty_four","unknown"]
bidnumberdesired bid setting value in USD maximum value: 1000
Example: 1
daily_budgetnumberdaily campaign budget value in USD maximum value: 10000
Example: 24
genderarraygender to target possible values: male, female, unknown
Example: ["male"]
industryarrayindustry of LinkedIn profile targeting if you use this field, you can receive the list of available industry names with industry_id by making a separate request to the example: 806301758
Example: ["806303407","806301758"]
job_functionarrayjob function of LinkedIn profile targeting if you use this field, you can receive the list of available job function names with job_function_id by making a separate request to the example: 806300451
Example: ["806298607"]
