Preview Frame Analysis
Candidate counts for the New/test block at a few benchmark floors, so the create form can show “N creatives at this benchmark” before the run is committed.
POST
/api/v1/frame-analyses/previewAuthorization
AuthorizationBearer token · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredRequest body
requiredapplication/jsonweek_startstring<date>requiredweek_endstring<date>requiredmedia_sourcestring | anyShow propertiesHide properties
Any of:
string
stringany
anyproductsstring[]requiredmin items 1
floorsinteger[] | anyShow propertiesHide properties
Any of:
integer[]
Array of
integerintegerany
anyResponses
200Successful Response
successbooleandefault: true
dataFrameAnalysisPreviewResult | anyShow propertiesHide properties
Any of:
FrameAnalysisPreviewResult
countsBenchmarkCount[]requiredShow propertiesHide properties
Array of
BenchmarkCountfloorintegerrequiredcountintegerrequiredunmapped_productsstring[]any
anymessagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyerrorsstring[] | anyShow propertiesHide properties
Any of:
string[]
Array of
stringstringany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobjectRequest
curl -X POST "/api/v1/frame-analyses/preview" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"week_start": "2019-08-24",
"week_end": "2019-08-24",
"media_source": "string",
"products": [
"string"
],
"floors": [
0
]
}'const response = await fetch("/api/v1/frame-analyses/preview", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"week_start": "2019-08-24",
"week_end": "2019-08-24",
"media_source": "string",
"products": [
"string"
],
"floors": [
0
]
})
});import requests
response = requests.post(
"/api/v1/frame-analyses/preview",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"week_start": "2019-08-24",
"week_end": "2019-08-24",
"media_source": "string",
"products": [
"string"
],
"floors": [
0
]
},
)Response
{
"success": true,
"data": {
"counts": [
{
"floor": 0,
"count": 0
}
],
"unmapped_products": [
"string"
]
},
"message": "string",
"errors": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}