Body
-
combinations
object The combination of orientations and ad types to get ads for.
Additional properties are allowed.
-
extra_parameters
object Additional properties are allowed.
POST
/api/v1/content/
curl \
--request POST 'https://www.appylar.com/api/v1/content/' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"combinations":{"portrait":["banner"],"landscape":["banner"]},"extra_parameters":{"banner_height":["50"],"age_restriction":["12"]}}'
Request examples
{
"combinations": {
"portrait": [
"banner"
],
"landscape": [
"banner"
]
},
"extra_parameters": {
"banner_height": [
"50"
],
"age_restriction": [
"12"
]
}
}
Response examples (429)
{
"error": "err_rate_limited",
"wait": 60
}
Response examples (403)
{
"error": "err_forbidden"
}
Response examples (401)
{
"error": "err_unauthorized"
}
Response examples (400)
{
"error": "string",
"errors": {
"additionalProperty1": [
"string"
],
"additionalProperty2": [
"string"
]
}
}
Response examples (200)
{
"ads": [
{
"ad": {
"type": "string",
"width": 320,
"height": 50,
"scale": 2
},
"html": "string",
"url": "string",
"expires_at": "string"
}
]
}