v1
latestOpenAPI 3.0.12026-08-0671048.4 KBAnalytics
Get Ad Spend
Retrieve ad spend data grouped by various dimensions.
post/api/ad-spend
Request body
Example request
{
"startDate": "2026-01-01",
"endDate": "2026-03-01"
}Response
Ad spend data retrieved successfully
Example response
{
"success": true,
"data": [
{
"date": "2026-02-15",
"campaignId": "123456789",
"campaignName": "Spring Sale 2026",
"adGroupId": "987654321",
"adGroupName": "Brand Keywords",
"platform": "googleads",
"cost": 1500.5,
"clicks": 2500,
"impressions": 50000,
"conversions": 125
}
],
"meta": {
"pagination": {
"limit": 50,
"page": 1,
"totalPages": 5,
"total": 234,
"hasMore": true
},
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-03-10T12:00:00.000Z"
}
}