Get Entity Summary
GET/api/clicktracking/ad-reporting/summary
Get the totals, derived rates and goal-aware result count for a date range.
Rates are recomputed from the summed totals rather than averaged across days, so
a quiet day cannot weigh as much as a busy one. results counts what the
entity's own objective is buying (leads, purchases, link clicks, ...) and is null
when the entity has no objective we can classify.
Args: entity_type: One of account|campaign|adset|ad entity_id: The entity's row id from_date: Optional range start (defaults to 30 days ago) to_date: Optional range end (defaults to today) ad_reporting_service: Injected ad reporting service
Returns: Summed metrics, derived rates and the result count for the range
Raises: HTTPException: 400 on invalid entity_type/date, 404 if the entity is gone
Request
Responses
- 200
- 422
Successful Response
Validation Error