Bid Metrics via API

Context:

Buyer API can use this API endpoints for bid metrics to understand the number of

  • overquotas,

  • dropoffs,

  • quality terminates,

  • standard terminates

for a given bid.

These would allow to understand our bid health in a more complete way via the API.

API CALL

GET <SERVER_BASE_URL>/buyers/v2/surveys/<SURVEY_ID>/performance

 

CASE 1 - When incorrect survey ID (non-existent) is passed

Response 404 Not Found

Response:

{ "ps_api_response_code": 1006, "ps_api_response_message": "Survey not found" }

 

CASE 2 - When buyer is not the owner of the survey

Response:

CASE 3 - When buyer passes a correct survey ID

Response:

 

Note - This was complete re-write of the API, so need to check all the cases. And also need to check in case of QBP, TC, Clone or whatever kind of surveys we can think of.