General
Our “Reporting” endpoints allow for bulk operations. Specifically, through the two following endpoints:POST |
|
POST |
|
CampaignIds or LineItemIds, with a maximum of 50 IDs per call.
To do so, please use the following attributes and terminology in one or the other endpoint (example below for the POST /report/campaigns endpoint, the same applies to the line-item endpoint):
When requesting a single ID then use:
"id": "CampaignId1"ORWhen requesting several IDs then use "ids": ["CampaignId1", "CampaignId2", ..., "CampaignIdn"]Error Codes
When sending more than 50 IDs, you will get the following400 Bad request HTTP Response:
-
Error code:
exceeded-ids-cap -
Error title:
Requests are capped for 50 unique ids, {count of ids requested} were provided -
Error Type:
validation -
A traceId:
aa47dd83-8ca9-4a79-a179-ad5be6932ff1 -
Instance: the report requested (here
/api/v1/reports/line-item) - Detail: Title with a list of requested IDs
- Source: The parameter that caused the error (IDs in this case)