You may obtain estimated feasibility on a target demographic without first creating a survey.
...
Code Block |
---|
{ "buyer_quota_id": "abc1", "required_count": 50, "criteria": [ { "qualification_code": 211, "condition_codes": [ "111" ] }, { "qualification_code": 212, "range_sets": [ { "from": 45, "to": 49, "units": 312311 } ] } ] } |
Query String Parameters:
Response Parameter | Type | Description | Example | ||||
---|---|---|---|---|---|---|---|
summary | integer - enum: 1: return feasibility without supplier information (default) 2: return feasibility by supplier for the targets | You may select the output type by switching between 1 (summary) or 2 (count by supplier) | 1:
2:
|
Request Body Parameters:
Request Parameter | Type | Required | Description |
---|---|---|---|
survey_localization | string | Yes | e.g. en_US , specifies the locale for which feasibility will be fetched. |
completes_required | number | Yes | Specifies the number of completed interviews you need to this for survey. |
expected_ir | number | Yes | Specifies the expected incidence of the target |
expected_loi | number | Yes | Specifies the expected length of interview for the target |
field_time | number | Yes | number of days in field |
quotas | array of objects | Yes | Specifies the specific target quota for which we are returning feasibility. |
quotas
Array Body Parameters:
Request Parameter | Type | Required | Description |
---|---|---|---|
required_count | integer | Yes | Specifies the number of completed interviews you need to this target. The |
buyer_quota_id | string | Yes | This is a buyer defined identifier that will be used in the api response. Can be non-unique as it is a temporary id. |
criteria | array of objects | Yes | specifies the list of targeting criteria to be factored into the feasibility calculation |
criteria
Array Body Parameters:
Behaves the same way as the quota creation call. You may reuse the model you use. Please be sure to include all qualification condition code options that you wish to be considered as part of this calculation.
Request Parameter | Type | Required | Description |
---|---|---|---|
qualification_code | integer | Yes | |
condition_codes | array of strings | either condition_code or range_sets is required | |
range_sets | array of objects | either condition_code or range_sets is required | |
range_sets.from | integer | required if range_sets is used | |
range_sets.to | integer | required if range_sets is used | |
range_sets.units | integer | required if range_sets is used | According to /wiki/spaces/PD/pages/34698868 |
Response Parameters:
Response Parameter | Type | Description | Example |
---|---|---|---|
quotas | array |
| See Below |
recommended_cpi | decimal |
| 1.32 |
feasibility_cpi | decimal |
| |
max_feasibility |
|
Quotas Response Parameters:
Response Parameter | Type | Description | Example |
---|---|---|---|
count | integer | Number of estimated completes given targeting criteria, incidence rate, and device targeting for a survey. The | 400 |
unused_qualifications | array of integers | Defines the qualification codes that were not factored into the calculation of | [1031, 1032] |
buyer_quota_id | unique string | identifying underlying quota - this is unique within a survey, NOT across surveys. | abc123 |
suppliers | array | Only present if |
Suppliers
Response Parameters:
Response Parameter | Type | Description | Example |
---|---|---|---|
count | integer | Number of estimated completes given targeting criteria, incidence rate, and device targeting for a survey. The | 400 |
supplier_id | integer | Supplier ID of the Supplier | 1 |
Sample Request:
Sample Request
Code Block | ||
---|---|---|
| ||
POST api.spectrumsurveys.com/buyers/v2/feasibility { "survey_localization": "en_US", "completes_required": 100, "expected_ir": 50, "expected_loi": 5, "field_time": 7, "quotas": [ { "buyer_quota_id": "abc1", "required_count": 50, "criteria": [ { "qualification_code": 211, "condition_codes": [ "111" ] } ] }, { "buyer_quota_id": "abc2", "required_count": 50, "criteria": [ { "qualification_code": 212, "range_sets": [ { "from": 13, "to": 99, "units": 312311 } ] } ] } ] } |
Response
...
Response Code
...