Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Request


Launching a “Replica”

Send a POST request to the endpoint /buyers/v2/surveys/{surveyId}/channels

{
   "survey_title": "example",
   "type": "REP"
}

Launching a “Specific Audience“

Send a POST request to this endpoint: /buyers/v2/surveys/{surveyId}/channels

{
   "survey_title":"example",
   "type":"SPA",
   "qualifications":[
      {
         "condition_codes":[
            "111",
            "112"
         ],
         "qualification_code":211
      }
   ],
   "quotas":[
      {
         "buyer_quota_id":"qb1",
         "required_count":40,
         "criteria":[
            {
               "qualification_code":211,
               "condition_codes":[
                  "111"
               ]
            }
         ]
      },
      {
         "buyer_quota_id":"qb2",
         "required_count":60,
         "criteria":[
            {
               "qualification_code":211,
               "condition_codes":[
                  "112"
               ]
            }
         ]
      }
   ]
}

Launching a “Targeted List”

Send a POST request to the endpoint /buyers/v2/surveys/{surveyId}/channels

{
   "survey_title":"example",
   "type":"TL",
   "psids":[
      "adb79238-3eee-9c21-f58c-d8c801483001",
      "adb79238-3eee-9c21-f58c-d8c801483002",
      "adb79238-3eee-9c21-f58c-d8c801483003"
   ]
}

Result


Status code 201 created

{ message: 'Traffic channel survey creation request accepted'// Message can be update as per requirement }

Error Handling

If the Parent survey is not live a Traffic Channel can’t be launched

{
    "ps_api_response_code": 9999,
    "ps_api_response_message": "Survey is not in live status"
}

  • No labels