Retrieve campaign spend details
This endpoint calculates remaining campaign budget for specific campaigns based on their available balance and spending limits. It allows checking how much budget is left by different time periods (da
description: "This endpoint calculates remaining campaign budget for specific campaigns based on their available balance and spending limits. It allows checking how much budget is left by different time periods (daily, hourly, or total) to manage campaign spending and budget allocation."
Retrieve campaign spend details
This endpoint calculates remaining campaign budget for specific campaigns based on their available balance and spending limits. It allows checking how much budget is left by different time periods (daily, hourly, or total) to manage campaign spending and budget allocation.
For accessing the API a valid JWT must be passed in all queries in the 'Authorization' header. The following syntax must be used in the 'Authorization' header. (Bearer xxx.yyy.zzz)
Your campaign spending details.
There was a problem with input.
Login failed or token not valid.
Access denied due to insufficient permissions.
An unexpected error response.
POST /v2/spend/campaign HTTP/1.1
Host: billing.<env>.citrusad.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"campaignSpendRequest": [
{
"id": "text",
"spendType": "SPEND_TYPE_DAILY"
}
]
}{
"campaignSpends": [
{
"failure": {
"message": "text"
},
"id": "text",
"spendType": "SPEND_TYPE_DAILY",
"success": {
"amount": 1
}
}
]
}
