Code Block |
---|
GET suppliers/v2/surveys/:survey_id |
https://api.spectrumsurveys.com/suppliers/v2/surveys/:survey_id
ORDER OF OPERATIONS
Please read the Respondent Order of Operations in order to understand the PureSpectrum targeting flow.
...
Code Block |
---|
"quotas":[ //example quota on single age range { "quota_id": "123", "criteria":[{ “qualification_code”: 212, "range_sets":[{"from":13,"to":18,“units”:“311”}] } ], "quantities":{ "currently_open":100, "remaining":100, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 }, //example quota with a single condition on Race { "quota_id": "123", "criteria":[{ “qualification_code”: 214, "condition_codes":["111"] } ], "quantities":{ "currently_open":100, "remaining":100, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 }, //example quota with OR condition on Race { "quota_id": "123", "criteria":[{ “qualification_code”: 214, "condition_codes":["111","112","114"] } ], "quantities":{ "currently_open":100, "remaining":100, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 }, //example quota with nested conditions for gender and age { "quota_id": "123", "criteria":[{ “qualification_code”: 211, "condition_codes":["111"] }, { “qualification_code”: 212, "range_sets":[{"from":13,"to":18,“units”:“111”“311”}] } ], "quantities":{ "currently_open":100, "remaining":100, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 }, //example quota showing temporary exclusion - currently_open=0, remaining=0, achieved=0 { "quota_id": "123", "criteria":[{ “qualification_code”: 211, "condition_codes":["111"] }, { “qualification_code”: 212, "range_sets":[{"from":13,"to":18,“units”:“111”“311”}] } ], "quantities":{ "currently_open":0, "remaining": 0, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 } ], "crtd_on":124411231313, "mod_on":11321334733 } //example locked quota { "quota_id": "123", "criteria":[{ “qualification_code”: 211, "condition_codes":["111"] }, { “qualification_code”: 212, "range_sets":[{"from":13,"to":18,“units”:“111”“311”}] } ], "quantities":{ "currently_open":0, "remaining": 100, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 } ], "crtd_on":124411231313, "mod_on":11321334733 } //unusual quotas //example quota with multiple age range { "quota_id": "123", "criteria":[{ “qualification_code”: 212, "range_sets":[{"from":13,"to":18,“units”:“111”“311”},{"from":45,"to":54,“units”:“111”“311”}] } ], "quantities":{ "currently_open":100, "remaining":100, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 } ] |
...
Code Block |
---|
"qualifications": [{ "qualification_code":1021, //looking for movie goers "range_sets":[{ "from":6,"to":99, //seen more than 6 movies in theaters, in the last 90 days "period":90 //always in days } ] //nested quotas example { "quota_id": "123", //looking for movie goers that have seen more than 6 movies in the last 90 days, and are 18-24 years old. "criteria":[{ "qualification_code":1021, //looking for movie goers "range_sets":[{ "from":6,"to":99, //seen more than 6 movies in theaters, in the last 90 days "period":90 //always in days }, { “qualification_code”: 212, "range_sets":[{"from":18,"to":24,“units”:“111”“311”}] } ], "quantities":{ "currently_open":100, "remaining":100, "achieved":0 }, "crtd_on":124411231313, "mod_on":11321334733 } |
...