1. Authorization

1.1. Login

This `POST` request will return result login and token

1.1.1. Request Body

Path Type Description Required

email

string

User email

+

password

string

User password

+

1.1.2. HTTP Request

URL

POST api/users/login HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
DATA
{
    "email": "test@example.org",
    "password": "password"
}

1.1.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/users/login' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
    -d '{
    "email": "test@example.org",
    "password": "password"
}'

1.1.4. Response Body

Path Type Description

access_token

string

This token is used in queries. HEADER: "Authorization: Bearer <this token>"

token_type

string

Token type

expires_in

int

Time token live in seconds

1.1.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    X-ratelimit-limit: 10
    X-ratelimit-remaining: 9
    Access-control-allow-origin: *
{
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMvYXBpL3VzZXJzL2xvZ2luIiwiaWF0IjoxNzQ3MTM4NzM2LCJleHAiOjE3NDcxNDIzMzYsIm5iZiI6MTc0NzEzODczNiwianRpIjoiTjdIVU5EVlU4YzI1UmFuayIsInN1YiI6IjciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.un9h3QCMmfNIThTmofwbkbnedI85d9Nkv8KHw6PVH8o",
    "token_type": "bearer",
    "expires_in": "60"
}

1.2. Log out

A `POST` request will return result logout

1.2.1. HTTP Request

URL

POST api/logout HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJkaVZLQVhlNVBuUVdOcmZPIiwic3ViIjoiOCIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.55vbNRMpx9JKV3QHEsW8yaXma1I4BJ_LTevIePW8r9o
DATA
{}

1.2.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/logout' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJkaVZLQVhlNVBuUVdOcmZPIiwic3ViIjoiOCIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.55vbNRMpx9JKV3QHEsW8yaXma1I4BJ_LTevIePW8r9o' \
    -d '{}'

1.2.3. Response Body

Path Type Description

message

string

Result message

1.2.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
{
    "message": "Successfully logged out"
}

2. Statistic

2.1. Statistic

A `POST` request will return statistic.

2.1.1. Request Body

Path Type Description Required

timezone

integer

Timezone
"Etc/GMT+12"…​"Etc/GMT+1", "Etc/GMT", "Etc/GMT-1"…​"Etc/GMT-12" \n"America/Anchorage"…​"Europe/Istanbul", "Asia/Tokyo"

from

date

Start date (yyyy-mm-dd)

+

to

date

End date (yyyy-mm-dd)

+

groupBy

array

Grouping fields:
YMD - Date
YMDH - Date time. Period: 2 days max
campaignId - Campaign
creativeId - Creative
country - Country
connectionType - Connection Type
carrier - Carrier
sspId - Ssp
region - Region
city - City
browser - Browser
os - Device OS
appName - App Name
siteName - Domain Name
source - Source
originalPubId - Publisher Id
sitePage - Site Page
trafficType - Media Type
requestType - Traffic Type
deviceType - Mobile Type
language - Language
size - Width x Height
isPmpReq - Pmp

+

agregatedFields

array

Agregated fields:
bids - Bids
wins - Wins
impressions - Impressions
clicks - Clicks
conversions - Conversions
reach - Reach
dspSpend - Spend
ecpm - eCPM
ecpc - eCPC
ctr - CTR
winrate - Win Rate

+

orderField

string

Sorting field

orderDir

string

Sort order: "asc" or "desc"

page

integer

Pagination: page number

rowsOnPage

integer

Pagination: rows on page (min:10, max:50000)

2.1.2. HTTP Request

URL

POST api/statistic HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJqckJES3Z2bEFYU2pJVTdzIiwic3ViIjoiNDkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.HxAcqfpE2cToipfOqytAU8FQvnbgshyW2ANl15eN6z4
DATA
{
    "timezone": "Etc\/GMT+10",
    "from": "2025-05-11",
    "to": "2025-05-13",
    "groupBy": [
        "YMD",
        "campaignId",
        "creativeId"
    ],
    "agregatedFields": [
        "bids",
        "wins",
        "impressions",
        "clicks",
        "dspSpend",
        "winrate",
        "ctr"
    ],
    "orderField": "YMD",
    "orderDir": "desc",
    "page": 1,
    "rowsOnPage": 25
}

2.1.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/statistic' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJqckJES3Z2bEFYU2pJVTdzIiwic3ViIjoiNDkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.HxAcqfpE2cToipfOqytAU8FQvnbgshyW2ANl15eN6z4' \
    -d '{
    "timezone": "Etc\/GMT+10",
    "from": "2025-05-11",
    "to": "2025-05-13",
    "groupBy": [
        "YMD",
        "campaignId",
        "creativeId"
    ],
    "agregatedFields": [
        "bids",
        "wins",
        "impressions",
        "clicks",
        "dspSpend",
        "winrate",
        "ctr"
    ],
    "orderField": "YMD",
    "orderDir": "desc",
    "page": 1,
    "rowsOnPage": 25
}'

2.1.4. Response Body

Path Type Description

status

string

Report status

data.*.YMD

date

Date

data.*.campaignId

integer

Campaign id

data.*.campaignId_dict

string

Campaign name

data.*.creativeId

integer

Creative id

data.*.creativeId_dict

string

Creative name

data.*.bids

integer

Bids

data.*.wins

integer

Wins

data.*.impressions

integer

Impressions

data.*.dspSpend

float

Spend, $

data.*.winrate

float

Win Rate, %

data.*.ecpm

integer

eCPM, $

data.*.clicks

integer

Clicks

data.*.conversions

integer

Conversions

data.*.ctr

float

CTR, %

totals.YMD

date

Date

totals.campaignId

integer

Campaign id

totals.campaignId_dict

string

Campaign name

totals.creativeId

integer

Creative id

totals.creativeId_dict

string

Creative name

totals.bids

integer

Bids

totals.wins

integer

Wins

totals.impressions

integer

Impressions

totals.dspSpend

float

Spend, $

totals.winrate

float

Win Rate, %

totals.ecpm

integer

eCPM, $

totals.clicks

integer

Clicks

totals.conversions

integer

Conversions

totals.ctr

float

CTR, %

pagination.page

integer

Pagination: current page number

pagination.per_page

integer

Pagination: items per page

pagination.total

integer

Pagination: total items count

2.1.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "status": "success",
    "data": [
        {
            "YMD": "2025-05-13",
            "campaignId": 1,
            "campaignId_dict": "Quidem sunt| id# 1",
            "creativeId": 12,
            "creativeId_dict": "Voluptatem facere| id# 12",
            "bids": 165,
            "wins": 79,
            "impressions": 65,
            "dspSpend": 0.41485,
            "winrate": 47.878787878787875,
            "ecpm": 6.382307692307693,
            "clicks": 5,
            "conversions": 42,
            "ctr": 7.6923076923076925
        },
        {
            "YMD": "2025-05-13",
            "campaignId": 2,
            "campaignId_dict": "Id dolor| id# 2",
            "creativeId": 11,
            "creativeId_dict": "Maxime eveniet| id# 11",
            "bids": 163,
            "wins": 84,
            "impressions": 65,
            "dspSpend": 0.49476,
            "winrate": 51.533742331288344,
            "ecpm": 7.611692307692308,
            "clicks": 13,
            "conversions": 2,
            "ctr": 20
        },
        {
            "YMD": "2025-05-13",
            "campaignId": 2,
            "campaignId_dict": "Dolores sunt| id# 2",
            "creativeId": 12,
            "creativeId_dict": "Porro laudantium| id# 12",
            "bids": 559,
            "wins": 185,
            "impressions": 142,
            "dspSpend": 0.43668,
            "winrate": 33.09481216457961,
            "ecpm": 3.075211267605634,
            "clicks": 26,
            "conversions": 6,
            "ctr": 18.309859154929576
        },
        {
            "YMD": "2025-05-12",
            "campaignId": 1,
            "campaignId_dict": "Amet dolorem| id# 1",
            "creativeId": 11,
            "creativeId_dict": "Autem animi| id# 11",
            "bids": 691,
            "wins": 241,
            "impressions": 200,
            "dspSpend": 0.13258,
            "winrate": 34.87698986975398,
            "ecpm": 0.6629,
            "clicks": 9,
            "conversions": 13,
            "ctr": 4.5
        },
        {
            "YMD": "2025-05-13",
            "campaignId": 1,
            "campaignId_dict": "Et nostrum| id# 1",
            "creativeId": 11,
            "creativeId_dict": "Cupiditate qui| id# 11",
            "bids": 858,
            "wins": 544,
            "impressions": 459,
            "dspSpend": 0.29515,
            "winrate": 63.4032634032634,
            "ecpm": 0.6430283224400872,
            "clicks": 2,
            "conversions": 8,
            "ctr": 0.4357298474945534
        },
        {
            "YMD": "2025-05-12",
            "campaignId": 1,
            "campaignId_dict": "Quam repellendus| id# 1",
            "creativeId": 12,
            "creativeId_dict": "Voluptatem vitae| id# 12",
            "bids": 799,
            "wins": 437,
            "impressions": 310,
            "dspSpend": 0.20224,
            "winrate": 54.69336670838548,
            "ecpm": 0.6523870967741936,
            "clicks": 20,
            "conversions": 39,
            "ctr": 6.451612903225806
        },
        {
            "YMD": "2025-05-12",
            "campaignId": 2,
            "campaignId_dict": "Qui doloremque| id# 2",
            "creativeId": 11,
            "creativeId_dict": "Quisquam dolorem| id# 11",
            "bids": 324,
            "wins": 155,
            "impressions": 131,
            "dspSpend": 0.34904,
            "winrate": 47.839506172839506,
            "ecpm": 2.664427480916031,
            "clicks": 31,
            "conversions": 49,
            "ctr": 23.66412213740458
        },
        {
            "YMD": "2025-05-12",
            "campaignId": 2,
            "campaignId_dict": "Odio omnis| id# 2",
            "creativeId": 12,
            "creativeId_dict": "Dignissimos delectus| id# 12",
            "bids": 651,
            "wins": 422,
            "impressions": 332,
            "dspSpend": 0.37641,
            "winrate": 64.82334869431644,
            "ecpm": 1.133765060240964,
            "clicks": 12,
            "conversions": 37,
            "ctr": 3.6144578313253013
        },
        {
            "YMD": "2025-05-11",
            "campaignId": 1,
            "campaignId_dict": "Dolorum at| id# 1",
            "creativeId": 11,
            "creativeId_dict": "Quas qui| id# 11",
            "bids": 496,
            "wins": 178,
            "impressions": 134,
            "dspSpend": 0.41947,
            "winrate": 35.88709677419355,
            "ecpm": 3.1303731343283583,
            "clicks": 43,
            "conversions": 20,
            "ctr": 32.08955223880597
        },
        {
            "YMD": "2025-05-11",
            "campaignId": 1,
            "campaignId_dict": "Omnis libero| id# 1",
            "creativeId": 12,
            "creativeId_dict": "Eum animi| id# 12",
            "bids": 178,
            "wins": 121,
            "impressions": 99,
            "dspSpend": 0.24466,
            "winrate": 67.97752808988764,
            "ecpm": 2.4713131313131314,
            "clicks": 12,
            "conversions": 2,
            "ctr": 12.121212121212121
        },
        {
            "YMD": "2025-05-11",
            "campaignId": 2,
            "campaignId_dict": "Perferendis nesciunt| id# 2",
            "creativeId": 11,
            "creativeId_dict": "Non magni| id# 11",
            "bids": 968,
            "wins": 373,
            "impressions": 296,
            "dspSpend": 0.43351,
            "winrate": 38.53305785123967,
            "ecpm": 1.4645608108108108,
            "clicks": 27,
            "conversions": 23,
            "ctr": 9.121621621621621
        },
        {
            "YMD": "2025-05-11",
            "campaignId": 2,
            "campaignId_dict": "Id enim| id# 2",
            "creativeId": 12,
            "creativeId_dict": "Temporibus aut| id# 12",
            "bids": 613,
            "wins": 356,
            "impressions": 309,
            "dspSpend": 0.36888,
            "winrate": 58.07504078303426,
            "ecpm": 1.1937864077669902,
            "clicks": 47,
            "conversions": 18,
            "ctr": 15.210355987055015
        }
    ],
    "totals": {
        "YMD": "",
        "campaignId": 0,
        "campaignId_dict": "",
        "creativeId": 0,
        "creativeId_dict": "",
        "bids": 6465,
        "wins": 3175,
        "impressions": 2542,
        "dspSpend": 4.16823,
        "winrate": 49.884711726797484,
        "ecpm": 2.590479392683017,
        "clicks": 247,
        "conversions": 259,
        "ctr": 12.767569294615186
    },
    "pagination": {
        "page": 1,
        "per_page": 25,
        "total": 12
    }
}

2.2. Filtering statistic

A `POST` request will return statistic.

2.2.1. Request Body

Path Type Description Required

timezone

integer

Timezone
"Etc/GMT+12"…​"Etc/GMT+1", "Etc/GMT", "Etc/GMT-1"…​"Etc/GMT-12" \n"America/Anchorage"…​"Europe/Istanbul", "Asia/Tokyo"

from

date

Start date (yyyy-mm-dd)

+

to

date

End date (yyyy-mm-dd)

+

groupBy

array

Grouping fields:
YMD - Date
YMDH - Date time. Period: 2 days max
campaignId - Campaign
creativeId - Creative
country - Country
connectionType - Connection Type
carrier - Carrier
sspId - Ssp
region - Region
city - City
browser - Browser
os - Device OS
appName - App Name
siteName - Domain Name
source - Source
originalPubId - Publisher Id
sitePage - Site Page
trafficType - Media Type
requestType - Traffic Type
deviceType - Mobile Type
language - Language
size - Width x Height
isPmpReq - Pmp

+

agregatedFields

array

Agregated fields:
bids - Bids
wins - Wins
impressions - Impressions
clicks - Clicks
conversions - Conversions
reach - Reach
dspSpend - Spend
ecpm - eCPM
ecpc - eCPC
ctr - CTR
winrate - Win Rate

+

filter.campaignId

integer

Filtering by Campaign Id(cid)

filter.creativeId

integer

Filtering by Creative Id(bid)

orderField

string

Sorting field

orderDir

string

Sort order: "asc" or "desc"

page

integer

Pagination: page number

rowsOnPage

integer

Pagination: rows on page (min:10, max:50000)

2.2.2. HTTP Request

URL

POST api/statistic HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJudkFYZGg1TDI4ZDhMNXlVIiwic3ViIjoiNTAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.4wDxkLAVOD50GVQiMp620MmOLh8YOseVTa6XEzNB-fM
DATA
{
    "timezone": "UTC",
    "from": "2025-05-11",
    "to": "2025-05-13",
    "groupBy": [
        "YMD",
        "campaignId",
        "creativeId"
    ],
    "agregatedFields": [
        "bids",
        "wins",
        "impressions",
        "clicks",
        "dspSpend",
        "winrate",
        "ctr"
    ],
    "filter": {
        "campaignId": 1,
        "creativeId": 10
    },
    "orderField": "YMD",
    "orderDir": "desc",
    "page": 1,
    "rowsOnPage": 25
}

2.2.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/statistic' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJudkFYZGg1TDI4ZDhMNXlVIiwic3ViIjoiNTAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.4wDxkLAVOD50GVQiMp620MmOLh8YOseVTa6XEzNB-fM' \
    -d '{
    "timezone": "UTC",
    "from": "2025-05-11",
    "to": "2025-05-13",
    "groupBy": [
        "YMD",
        "campaignId",
        "creativeId"
    ],
    "agregatedFields": [
        "bids",
        "wins",
        "impressions",
        "clicks",
        "dspSpend",
        "winrate",
        "ctr"
    ],
    "filter": {
        "campaignId": 1,
        "creativeId": 10
    },
    "orderField": "YMD",
    "orderDir": "desc",
    "page": 1,
    "rowsOnPage": 25
}'

2.2.4. Response Body

Path Type Description

status

string

Report status

data.*.YMD

date

Date

data.*.campaignId

integer

Campaign id

data.*.campaignId_dict

string

Campaign name

data.*.creativeId

integer

Creative id

data.*.creativeId_dict

string

Creative name

data.*.bids

integer

Bids

data.*.wins

integer

Wins

data.*.impressions

integer

Impressions

data.*.dspSpend

float

Spend, $

data.*.winrate

float

Win Rate, %

data.*.ecpm

integer

eCPM, $

data.*.clicks

integer

Clicks

data.*.conversions

integer

Conversions

data.*.ctr

float

CTR, %

totals.YMD

date

Date

totals.campaignId

integer

Campaign id

totals.campaignId_dict

string

Campaign name

totals.creativeId

integer

Creative id

totals.creativeId_dict

string

Creative name

totals.bids

integer

Bids

totals.wins

integer

Wins

totals.impressions

integer

Impressions

totals.dspSpend

float

Spend, $

totals.winrate

float

Win Rate, %

totals.ecpm

integer

eCPM, $

totals.clicks

integer

Clicks

totals.conversions

integer

Conversions

totals.ctr

float

CTR, %

pagination.page

integer

Pagination: current page number

pagination.per_page

integer

Pagination: items per page

pagination.total

integer

Pagination: total items count

2.2.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "status": "success",
    "data": [
        {
            "YMD": "2025-05-12",
            "campaignId": 1,
            "campaignId_dict": "Sapiente et| id# 1",
            "creativeId": 10,
            "creativeId_dict": "Soluta sit| id# 10",
            "bids": 503,
            "wins": 290,
            "impressions": 229,
            "dspSpend": 0.38987,
            "winrate": 57.65407554671968,
            "ecpm": 1.7024890829694324,
            "clicks": 35,
            "conversions": 19,
            "ctr": 15.283842794759826
        },
        {
            "YMD": "2025-05-13",
            "campaignId": 1,
            "campaignId_dict": "Qui voluptas| id# 1",
            "creativeId": 10,
            "creativeId_dict": "Facere odio| id# 10",
            "bids": 657,
            "wins": 369,
            "impressions": 315,
            "dspSpend": 0.15432,
            "winrate": 56.16438356164384,
            "ecpm": 0.48990476190476195,
            "clicks": 24,
            "conversions": 26,
            "ctr": 7.619047619047619
        },
        {
            "YMD": "2025-05-11",
            "campaignId": 1,
            "campaignId_dict": "Ut quibusdam| id# 1",
            "creativeId": 10,
            "creativeId_dict": "Sint repellendus| id# 10",
            "bids": 142,
            "wins": 80,
            "impressions": 70,
            "dspSpend": 0.2244,
            "winrate": 56.33802816901409,
            "ecpm": 3.2057142857142855,
            "clicks": 16,
            "conversions": 5,
            "ctr": 22.857142857142858
        }
    ],
    "totals": {
        "YMD": "",
        "campaignId": 0,
        "campaignId_dict": "",
        "creativeId": 0,
        "creativeId_dict": "",
        "bids": 1302,
        "wins": 739,
        "impressions": 614,
        "dspSpend": 0.7685899999999999,
        "winrate": 56.7188290924592,
        "ecpm": 1.7993693768628265,
        "clicks": 75,
        "conversions": 50,
        "ctr": 15.2533444236501
    },
    "pagination": {
        "page": 1,
        "per_page": 25,
        "total": 3
    }
}

3. Agency

3.1. Deposit to advert

A `POST` request

3.1.1. Request Body

Path Type Description Required

userId

integer

user id

+

transactionAmount

integer

transaction amount

+

3.1.2. HTTP Request

URL

POST api/deposit-agency-user HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJIOG1QeW1ZVVF4clFmelQ0Iiwic3ViIjoiMSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.Vk7Mandt4D_-rg8QqiyZqG8eJP_B-z31DsyySYJzvuc
DATA
{
    "userId": 2,
    "transactionAmount": 10
}

3.1.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/deposit-agency-user' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJIOG1QeW1ZVVF4clFmelQ0Iiwic3ViIjoiMSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.Vk7Mandt4D_-rg8QqiyZqG8eJP_B-z31DsyySYJzvuc' \
    -d '{
    "userId": 2,
    "transactionAmount": 10
}'

3.1.4. Response Body

Path Type Description

status

string

Result status

balance

float

balance

3.1.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
{
    "status": "success",
    "balance": "45233.00000"
}

3.2. Withdraw to advert

A `POST` request

3.2.1. Request Body

Path Type Description Required

userId

integer

user id

+

transactionAmount

integer

transaction amount

+

3.2.2. HTTP Request

URL

POST api/withdraw-agency-user HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJOR1pLa1N6Yjg0ckdVRUltIiwic3ViIjoiMyIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.UUF4aMNUareVETbAaC_eVwJVy1h56Zab0yBb5fymhaU
DATA
{
    "userId": 4,
    "transactionAmount": 10
}

3.2.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/withdraw-agency-user' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJOR1pLa1N6Yjg0ckdVRUltIiwic3ViIjoiMyIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.UUF4aMNUareVETbAaC_eVwJVy1h56Zab0yBb5fymhaU' \
    -d '{
    "userId": 4,
    "transactionAmount": 10
}'

3.2.4. Response Body

Path Type Description

status

string

Result status

balance

float

balance

3.2.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
{
    "status": "success",
    "balance": "20729.00000"
}

3.3. User list with campaigns

A `GET` request

3.3.1. HTTP Request

URL

GET api/get-agency-users-with-campaigns HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJJeVdTNVYzY1dwZmRuVzIxIiwic3ViIjoiNSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.ecBu6AK3ioDyPnbR7wPLuxY4M5mbG7hjGoEsOp17KGk
DATA
{
    "where": "userId;5"
}

3.3.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/get-agency-users-with-campaigns' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzYsImV4cCI6MTc0NzE0MjMzNiwibmJmIjoxNzQ3MTM4NzM2LCJqdGkiOiJJeVdTNVYzY1dwZmRuVzIxIiwic3ViIjoiNSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.ecBu6AK3ioDyPnbR7wPLuxY4M5mbG7hjGoEsOp17KGk' \
    -d '{
    "where": "userId;5"
}'

3.3.3. Response Body

Path Type Description

data.*.id

integer

user id

data.*.firstName

string

First name

data.*.lastName

string

Last name

data.*.balance

float

balance

data.*.bidResTotalCounter

integer

Bid total counter

data.*.bidResDailyCounter

integer

Bid daily counter

data.*.winsTotalCounter

integer

Wins total counter

data.*.winsDailyCounter

integer

Wins daily counter

data.*.impressionsTotalCounter

integer

Impressions total counter

data.*.impressionsDailyCounter

integer

Impressions daily counter

data.*.clicksTotalCounter

integer

Click total counter

data.*.clicksDailyCounter

integer

Click daily counter

data.*.spentDailyLimit

integer

Spent daily limit

data.*.spentDailyCounter

integer

Spent daily counter

data.*.spentTotalLimit

integer

Spent total limit

data.*.spentTotalCounter

integer

Spent total counter

data.*.impressionsDailyLimit

integer

impressions daily limit

data.*.impressionsTotalLimit

integer

impressions total limit

data..campaigns..id

integer

campaign id

data..campaigns..userId

integer

user id

data..campaigns..isActive

boolean

isActive

data..campaigns..isRunning

boolean

Campaign running status

data..campaigns..type

string

Campaign type: banner, native, video, audio

data..campaigns..name

string

Campaign name

data..campaigns..isRewarded

integer

Rewarded video (for video creatives)

data..campaigns..isDesktopWeb

boolean

Traffic Type: Desktop Websites

data..campaigns..isMobileApp

boolean

Traffic Type: Mobile Applications

data..campaigns..isMobileWeb

boolean

Traffic Type: Mobile Websites

data..campaigns..isSmartphone

boolean

Traffic Type: Smartphones

data..campaigns..isTablet

boolean

Traffic Type: Tablets

data..campaigns..isCTV

boolean

Traffic Type: CTV

data..campaigns..isDOOH

boolean

Traffic Type: DOOH

data..campaigns..aDomain

integer

Top level domain

data..campaigns..dateStart

date

Date start

data..campaigns..dateEnd

date

Date end

data..campaigns..geoCountries

array

GEO Targeting: countries list

data..campaigns..geoCountriesIsInclude

boolean

GEO Targeting: countries list type (true: whitelist, false: blacklist)

data..campaigns..geoRegions

array

GEO Targeting: regions list

data..campaigns..geoRegionsIsInclude

boolean

GEO Targeting: regions list type (true: whitelist, false: blacklist)

data..campaigns..geoCities

array

GEO Targeting: cities list

data..campaigns..geoCitiesIsInclude

boolean

GEO Targeting: cities list type (true: whitelist, false: blacklist)

data..campaigns..contentCategories

array

Targeting: IAB Categories list

data..campaigns..contentCategoriesIsInclude

boolean

Targeting: IAB Categories list type (true: whitelist, false: blacklist)

data..campaigns..userAgeMin

integer

Targeting: Age range from

data..campaigns..userAgeMax

integer

Targeting: Age range to

data..campaigns..connectionTypes

array

Targeting: Connection types list

data..campaigns..clickedInventoryCategories

array

Сlicked Inventory Categories

data..campaigns..deviceCarrier

array

Targeting: List of network operators.

data..campaigns..deviceCarrierIsInclude

boolean

Targeting: List of network operators type (true: whitelist, false: blacklist)

data..campaigns..OS

array

Targeting: The operating system of user's device

data..campaigns..OSIsInclude

boolean

Targeting: The operating system of user's device list type (true: whitelist, false: blacklist)

data..campaigns..browser

array

Targeting: The user's browsers list

data..campaigns..browserIsInclude

boolean

Targeting: The user's browsers list type (true: whitelist, false: blacklist)

data..campaigns..deviceLanguage

array

Targeting: The languages of user's browser

data..campaigns..deviceLanguageIsInclude

boolean

Targeting: The languages of user's browser list type (true: whitelist, false: blacklist)

data..campaigns..spentDailyLimit

integer

Daily spent limit

data..campaigns..spentTotalLimit

integer

Total spent limit

data..campaigns..impressionsDailyLimit

integer

Daily impressions limit

data..campaigns..impressionsTotalLimit

integer

Total impressions limit

data..campaigns..clicksDailyLimit

integer

Daily clicks limit

data..campaigns..clicksTotalLimit

integer

Total clicks limit

data..campaigns..budgetUse

integer

Distribution: pacer, fast pacer - Evenly distribution fast - ASAP distribution

data..campaigns..allSources

boolean

Inventory: Use all SSP endpoints

data..campaigns..cpm

float

cpm

data..campaigns..adaptiveCpm

boolean

adaptiveCpm

data..campaigns..useCpm

boolean

use cpm

data..campaigns..googleAnalyticsTrackingCode

string

Google Analytics tracking code - PUSH Campaigns

data..campaigns..dynamicTargeting

array

SmartCPC: Dynamic targeting - only for CPC Pricing model

data..campaigns..subscriptionAge

array

Subscription Age - only for CPC Pricing model

data..campaigns..frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data..campaigns..frequency

boolean

Frequency on/off.

data..campaigns..frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data..campaigns..frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data..campaigns..extendedStatus

string

Campaign extended status

data..campaigns..createdAt

datetime

Date of creation

data..campaigns..updatedAt

datetime

Date of last modification

data..campaigns..deletedAt

datetime

Date of deletion

data..campaigns..counters.spentDailyCounter

integer

Spent daily counter

data..campaigns..counters.spentTotalCounter

integer

Spent total counter

data..campaigns..counters.conversionTotalCounter

integer

Conversion total counter

data..campaigns..counters.conversionDailyCounter

integer

Conversion daily counter

data..campaigns..counters.winsTotalCounter

integer

Wins total counter

data..campaigns..counters.winsDailyCounter

integer

Wins daily counter

data..campaigns..counters.clicksTotalCounter

integer

Click total counter

data..campaigns..counters.clicksDailyCounter

integer

Click daily counter

data..campaigns..counters.impressionsTotalCounter

integer

Impressions total counter

data..campaigns..counters.impressionsDailyCounter

integer

Impressions daily counter

data..campaigns..pretarget

int

pretarget

data..campaigns..pretargets

array

pretargets

data..campaigns..audiences

array

audiences

meta.pagination.total

integer

Pagination: total items count

meta.pagination.count

integer

Pagination: page items count

meta.pagination.per_page

integer

Pagination: items per page

meta.pagination.current_page

integer

Pagination: current page number

meta.pagination.total_pages

integer

Pagination: total pages count

meta.pagination.links

string

Pagination: url links

3.3.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
{
    "data": [
        {
            "id": 5,
            "firstName": "Arthur",
            "lastName": "Lemke",
            "balance": null,
            "bidResTotalCounter": null,
            "bidResDailyCounter": null,
            "winsTotalCounter": null,
            "winsDailyCounter": null,
            "impressionsTotalCounter": null,
            "impressionsDailyCounter": null,
            "clicksTotalCounter": null,
            "clicksDailyCounter": null,
            "spentDailyLimit": "421",
            "spentDailyCounter": null,
            "spentTotalLimit": "15717",
            "spentTotalCounter": null,
            "impressionsDailyLimit": "489685",
            "impressionsTotalLimit": "1237375",
            "campaigns": [
                {
                    "id": 1,
                    "userId": 5,
                    "isActive": false,
                    "isRunning": false,
                    "type": "video",
                    "name": "numquam",
                    "isRewarded": false,
                    "isDesktopWeb": true,
                    "isMobileApp": false,
                    "isMobileWeb": true,
                    "isSmartphone": false,
                    "isTablet": false,
                    "isCTV": true,
                    "isDOOH": false,
                    "aDomain": "larson.biz",
                    "dateStart": "2024-03-26",
                    "dateEnd": "2026-01-05",
                    "geoCountries": [],
                    "geoCountriesIsInclude": true,
                    "geoRegions": [],
                    "geoRegionsIsInclude": true,
                    "geoCities": [],
                    "geoCitiesIsInclude": true,
                    "contentCategories": [],
                    "contentCategoriesIsInclude": true,
                    "userAgeMin": 0,
                    "userAgeMax": 0,
                    "connectionTypes": [
                        "wifi"
                    ],
                    "clickedInventoryCategories": [],
                    "deviceCarrier": [],
                    "deviceCarrierIsInclude": true,
                    "OS": [],
                    "OSIsInclude": true,
                    "browser": [],
                    "browserIsInclude": true,
                    "deviceLanguage": [],
                    "deviceLanguageIsInclude": true,
                    "spentDailyLimit": 274,
                    "spentTotalLimit": 7501,
                    "impressionsDailyLimit": 263395,
                    "impressionsTotalLimit": 548797,
                    "clicksDailyLimit": 0,
                    "clicksTotalLimit": 0,
                    "budgetUse": "fast",
                    "allSources": true,
                    "cpm": 0,
                    "adaptiveCpm": false,
                    "useCpm": false,
                    "googleAnalyticsTrackingCode": null,
                    "dynamicTargeting": [],
                    "subscriptionAge": [],
                    "frequencyType": "user",
                    "frequency": 0,
                    "frequencyCap": 1,
                    "frequencyPeriod": 1,
                    "extendedStatus": "Campaign is not active",
                    "createdAt": "2025-05-13",
                    "updatedAt": "2025-05-13",
                    "deletedAt": null,
                    "counters": {
                        "spentDailyCounter": 0,
                        "spentTotalCounter": 0,
                        "conversionTotalCounter": 0,
                        "conversionDailyCounter": 0,
                        "winsTotalCounter": 0,
                        "winsDailyCounter": 0,
                        "clicksTotalCounter": null,
                        "clicksDailyCounter": null,
                        "impressionsTotalCounter": 0,
                        "impressionsDailyCounter": 0
                    },
                    "pretarget": null,
                    "pretargets": [],
                    "audiences": []
                },
                {
                    "id": 2,
                    "userId": 5,
                    "isActive": false,
                    "isRunning": false,
                    "type": "native",
                    "name": "minus",
                    "isRewarded": false,
                    "isDesktopWeb": false,
                    "isMobileApp": false,
                    "isMobileWeb": true,
                    "isSmartphone": true,
                    "isTablet": false,
                    "isCTV": true,
                    "isDOOH": true,
                    "aDomain": "nitzsche.info",
                    "dateStart": "2023-05-31",
                    "dateEnd": "2026-02-06",
                    "geoCountries": [],
                    "geoCountriesIsInclude": true,
                    "geoRegions": [],
                    "geoRegionsIsInclude": true,
                    "geoCities": [],
                    "geoCitiesIsInclude": true,
                    "contentCategories": [],
                    "contentCategoriesIsInclude": true,
                    "userAgeMin": 0,
                    "userAgeMax": 0,
                    "connectionTypes": [
                        "wifi"
                    ],
                    "clickedInventoryCategories": [],
                    "deviceCarrier": [],
                    "deviceCarrierIsInclude": true,
                    "OS": [],
                    "OSIsInclude": true,
                    "browser": [],
                    "browserIsInclude": true,
                    "deviceLanguage": [],
                    "deviceLanguageIsInclude": true,
                    "spentDailyLimit": 147,
                    "spentTotalLimit": 8216,
                    "impressionsDailyLimit": 226290,
                    "impressionsTotalLimit": 688578,
                    "clicksDailyLimit": 0,
                    "clicksTotalLimit": 0,
                    "budgetUse": "fast",
                    "allSources": true,
                    "cpm": 0,
                    "adaptiveCpm": false,
                    "useCpm": false,
                    "googleAnalyticsTrackingCode": null,
                    "dynamicTargeting": [],
                    "subscriptionAge": [],
                    "frequencyType": "user",
                    "frequency": 0,
                    "frequencyCap": 1,
                    "frequencyPeriod": 1,
                    "extendedStatus": "Campaign is not active",
                    "createdAt": "2025-05-13",
                    "updatedAt": "2025-05-13",
                    "deletedAt": null,
                    "counters": {
                        "spentDailyCounter": 0,
                        "spentTotalCounter": 0,
                        "conversionTotalCounter": 0,
                        "conversionDailyCounter": 0,
                        "winsTotalCounter": 0,
                        "winsDailyCounter": 0,
                        "clicksTotalCounter": null,
                        "clicksDailyCounter": null,
                        "impressionsTotalCounter": 0,
                        "impressionsDailyCounter": 0
                    },
                    "pretarget": null,
                    "pretargets": [],
                    "audiences": []
                }
            ]
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

4. Campaigns

4.1. Campaigns list

A `GET` request will return a list of an campaigns.

4.1.1. HTTP Request

URL

GET api/campaigns HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJZT3VWY3cwT1ZCTHRJSjF1Iiwic3ViIjoiOSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.qtpbf0fFaVfBz9y_ZpOzu0KBLjmcFO3kxky8z3SG9Gw
DATA
{}

4.1.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJZT3VWY3cwT1ZCTHRJSjF1Iiwic3ViIjoiOSIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.qtpbf0fFaVfBz9y_ZpOzu0KBLjmcFO3kxky8z3SG9Gw' \
    -d '{}'

4.1.3. Response Body

Path Type Description

data.*.id

integer

Campaign Id(test)

data.*.userId

integer

User Id

data.*.isActive

boolean

Campaign On/Off

data.*.isRunning

boolean

Campaign running status

data.*.type

string

Campaign type: banner, native, video, audio

data.*.name

string

Campaign name

data.*.isRewarded

integer

Rewarded video (for video creatives)

data.*.isDesktopWeb

boolean

Traffic Type: Desktop Websites

data.*.isMobileApp

boolean

Traffic Type: Mobile Applications

data.*.isMobileWeb

boolean

Traffic Type: Mobile Websites

data.*.isSmartphone

boolean

Traffic Type: Smartphones

data.*.isTablet

boolean

Traffic Type: Tablets

data.*.isCTV

boolean

Traffic Type: CTVs

data.*.isDOOH

boolean

Traffic Type: DOOH

data.*.aDomain

integer

Top level domain

data.*.dateStart

date

Date start

data.*.dateEnd

date

Date end

data.*.geoCountries

array

GEO Targeting: countries list

data.*.geoCountriesIsInclude

boolean

GEO Targeting: countries list type (true: whitelist, false: blacklist)

data.*.geoRegions

array

GEO Targeting: regions list

data.*.geoRegionsIsInclude

boolean

GEO Targeting: regions list type (true: whitelist, false: blacklist)

data.*.geoCities

array

GEO Targeting: cities list

data.*.geoCitiesIsInclude

boolean

GEO Targeting: cities list type (true: whitelist, false: blacklist)

data.*.contentCategories

array

Targeting: IAB Categories list

data.*.contentCategoriesIsInclude

boolean

Targeting: IAB Categories list type (true: whitelist, false: blacklist)

data.*.userAgeMin

integer

Targeting: Age range from

data.*.userAgeMax

integer

Targeting: Age range to

data.*.connectionTypes

array

Targeting: Connection types list

data.*.clickedInventoryCategories

array

Сlicked Inventory Categories

data.*.deviceCarrier

array

Targeting: List of network operators.

data.*.deviceCarrierIsInclude

boolean

Targeting: List of network operators type (true: whitelist, false: blacklist)

data.*.OS

array

Targeting: The operating system of user's device

data.*.OSIsInclude

boolean

Targeting: The operating system of user's device list type (true: whitelist, false: blacklist)

data.*.browser

array

Targeting: The user's browsers list

data.*.browserIsInclude

boolean

Targeting: The user's browsers list type (true: whitelist, false: blacklist)

data.*.deviceLanguage

array

Targeting: The languages of user's browser

data.*.deviceLanguageIsInclude

boolean

Targeting: The languages of user's browser list type (true: whitelist, false: blacklist)

data.*.spentDailyLimit

integer

Daily spent limit

data.*.spentTotalLimit

integer

Total spent limit

data.*.impressionsDailyLimit

integer

Daily impressions limit

data.*.impressionsTotalLimit

integer

Total impressions limit

data.*.clicksDailyLimit

integer

Daily clicks limit

data.*.clicksTotalLimit

integer

Total clicks limit

data.*.budgetUse

integer

Distribution: pacer, fast pacer - Evenly distribution fast - ASAP distribution

data.*.allSources

boolean

Inventory: Use all SSP endpoints

data.*.cpm

float

cpm

data.*.adaptiveCpm

boolean

adaptiveCpm

data.*.useCpm

boolean

use cpm

data.*.extendedStatus

string

Campaign extended status

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

data.*.deletedAt

datetime

Date of deletion

data.*.counters.bidResTotalCounter

integer

Bid total counter

data.*.counters.bidResDailyCounter

integer

Bid daily counter

data.*.counters.winRate

integer

Winrate counter

meta.pagination.total

integer

Pagination: total items count

meta.pagination.count

integer

Pagination: page items count

meta.pagination.per_page

integer

Pagination: items per page

meta.pagination.current_page

integer

Pagination: current page number

meta.pagination.total_pages

integer

Pagination: total pages count

meta.pagination.links

array

Pagination: urls to next,prev page

4.1.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": [
        {
            "id": 3,
            "userId": 9,
            "isActive": false,
            "isRunning": false,
            "type": "native",
            "name": "et",
            "isRewarded": false,
            "isDesktopWeb": true,
            "isMobileApp": true,
            "isMobileWeb": true,
            "isSmartphone": false,
            "isTablet": false,
            "isCTV": true,
            "isDOOH": true,
            "aDomain": "ward.com",
            "dateStart": "2024-03-08",
            "dateEnd": "2025-12-09",
            "geoCountries": [],
            "geoCountriesIsInclude": true,
            "geoRegions": [],
            "geoRegionsIsInclude": true,
            "geoCities": [],
            "geoCitiesIsInclude": true,
            "contentCategories": [],
            "contentCategoriesIsInclude": true,
            "userAgeMin": 0,
            "userAgeMax": 0,
            "connectionTypes": [
                "wifi"
            ],
            "clickedInventoryCategories": [],
            "deviceCarrier": [],
            "deviceCarrierIsInclude": true,
            "OS": [],
            "OSIsInclude": true,
            "browser": [],
            "browserIsInclude": true,
            "deviceLanguage": [],
            "deviceLanguageIsInclude": true,
            "spentDailyLimit": 422,
            "spentTotalLimit": 4542,
            "impressionsDailyLimit": 280946,
            "impressionsTotalLimit": 533166,
            "clicksDailyLimit": 0,
            "clicksTotalLimit": 0,
            "budgetUse": "fast",
            "allSources": true,
            "cpm": 0,
            "adaptiveCpm": false,
            "useCpm": false,
            "extendedStatus": "Campaign is not active",
            "createdAt": "2025-05-13",
            "updatedAt": "2025-05-13",
            "deletedAt": null,
            "counters": {
                "bidResTotalCounter": 0,
                "bidResDailyCounter": 0,
                "winRate": 0
            }
        },
        {
            "id": 4,
            "userId": 9,
            "isActive": false,
            "isRunning": false,
            "type": "native",
            "name": "doloribus",
            "isRewarded": false,
            "isDesktopWeb": false,
            "isMobileApp": true,
            "isMobileWeb": false,
            "isSmartphone": true,
            "isTablet": false,
            "isCTV": false,
            "isDOOH": true,
            "aDomain": "hahn.com",
            "dateStart": "2024-09-14",
            "dateEnd": "2025-09-12",
            "geoCountries": [],
            "geoCountriesIsInclude": true,
            "geoRegions": [],
            "geoRegionsIsInclude": true,
            "geoCities": [],
            "geoCitiesIsInclude": true,
            "contentCategories": [],
            "contentCategoriesIsInclude": true,
            "userAgeMin": 0,
            "userAgeMax": 0,
            "connectionTypes": [
                "wifi"
            ],
            "clickedInventoryCategories": [],
            "deviceCarrier": [],
            "deviceCarrierIsInclude": true,
            "OS": [],
            "OSIsInclude": true,
            "browser": [],
            "browserIsInclude": true,
            "deviceLanguage": [],
            "deviceLanguageIsInclude": true,
            "spentDailyLimit": 324,
            "spentTotalLimit": 8907,
            "impressionsDailyLimit": 230546,
            "impressionsTotalLimit": 533381,
            "clicksDailyLimit": 0,
            "clicksTotalLimit": 0,
            "budgetUse": "fast",
            "allSources": true,
            "cpm": 0,
            "adaptiveCpm": false,
            "useCpm": false,
            "extendedStatus": "Campaign is not active",
            "createdAt": "2025-05-13",
            "updatedAt": "2025-05-13",
            "deletedAt": null,
            "counters": {
                "bidResTotalCounter": 0,
                "bidResDailyCounter": 0,
                "winRate": 0
            }
        }
    ],
    "meta": {
        "pagination": {
            "total": 2,
            "count": 2,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

4.2. Get by ID

A `GET` request with a path parameter of the id will return the campaign with that id.

4.2.1. HTTP Request

URL

GET api/campaigns/5 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJEcTRCNklWZmZGQWE3Yzk5Iiwic3ViIjoiMTAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.OvAcjN8FToj74omZ9KDSHkvVYFZyOiEZm6nUeWahZRk
DATA
{}

4.2.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/5' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJEcTRCNklWZmZGQWE3Yzk5Iiwic3ViIjoiMTAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.OvAcjN8FToj74omZ9KDSHkvVYFZyOiEZm6nUeWahZRk' \
    -d '{}'

4.2.3. Response Body

Path Type Description

data.id

integer

Campaign Id

data.userId

integer

User Id

data.isActive

boolean

Campaign On/Off

data.isRunning

boolean

Campaign running status

data.type

string

Campaign type: banner, native, video, audio

data.name

string

Campaign name

data.isRewarded

integer

Rewarded video (for video creatives)

data.isDesktopWeb

boolean

Traffic Type: Desktop Websites

data.isMobileApp

boolean

Traffic Type: Mobile Applications

data.isMobileWeb

boolean

Traffic Type: Mobile Websites

data.isSmartphone

boolean

Traffic Type: Smartphones

data.isTablet

boolean

Traffic Type: Tablets

data.isCTV

boolean

Traffic Type: CTV

data.isDOOH

boolean

Traffic Type: DOOH

data.aDomain

integer

Top level domain

data.dateStart

date

Date start

data.dateEnd

date

Date end

data.geoCountries

array

GEO Targeting: countries list

data.geoCountriesIsInclude

boolean

GEO Targeting: countries list type (true: whitelist, false: blacklist)

data.geoRegions

array

GEO Targeting: regions list

data.geoRegionsIsInclude

boolean

GEO Targeting: regions list type (true: whitelist, false: blacklist)

data.geoCities

array

GEO Targeting: cities list

data.geoCitiesIsInclude

boolean

GEO Targeting: cities list type (true: whitelist, false: blacklist)

data.contentCategories

array

Targeting: IAB Categories list

data.contentCategoriesIsInclude

boolean

Targeting: IAB Categories list type (true: whitelist, false: blacklist)

data.userAgeMin

integer

Targeting: Age range from

data.userAgeMax

integer

Targeting: Age range to

data.connectionTypes

array

Targeting: Connection types list

data.clickedInventoryCategories

array

Сlicked Inventory Categories

data.deviceCarrier

array

Targeting: List of network operators.

data.deviceCarrierIsInclude

boolean

Targeting: List of network operators type (true: whitelist, false: blacklist)

data.OS

array

Targeting: The operating system of user's device

data.OSIsInclude

boolean

Targeting: The operating system of user's device list type (true: whitelist, false: blacklist)

data.browser

array

Targeting: The user's browsers list

data.browserIsInclude

boolean

Targeting: The user's browsers list type (true: whitelist, false: blacklist)

data.deviceLanguage

array

Targeting: The languages of user's browser

data.deviceLanguageIsInclude

boolean

Targeting: The languages of user's browser list type (true: whitelist, false: blacklist)

data.spentDailyLimit

integer

Daily spent limit

data.spentTotalLimit

integer

Total spent limit

data.impressionsDailyLimit

integer

Daily impressions limit

data.impressionsTotalLimit

integer

Total impressions limit

data.clicksDailyLimit

integer

Daily clicks limit

data.clicksTotalLimit

integer

Total clicks limit

data.budgetUse

integer

Distribution: pacer, fast pacer - Evenly distribution fast - ASAP distribution

data.allSources

boolean

Inventory: Use all SSP endpoints

data.cpm

float

cpm

data.adaptiveCpm

boolean

adaptiveCpm

data.useCpm

boolean

use cpm

data.googleAnalyticsTrackingCode

string

Google Analytics tracking code - PUSH Campaigns

data.dynamicTargeting

array

SmartCPC: Dynamic targeting - only for CPC Pricing model

data.subscriptionAge

array

Subscription Age - only for CPC Pricing model

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.extendedStatus

string

Campaign extended status

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.deletedAt

datetime

Date of deletion

data.pretarget

int

pretarget

data.pretargets

array

pretargets

data.audiences

array

audiences

4.2.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 5,
        "userId": 10,
        "isActive": false,
        "isRunning": false,
        "type": "native",
        "name": "Test Campaign #1",
        "isRewarded": false,
        "isDesktopWeb": false,
        "isMobileApp": false,
        "isMobileWeb": true,
        "isSmartphone": true,
        "isTablet": true,
        "isCTV": true,
        "isDOOH": false,
        "aDomain": "feil.com",
        "dateStart": "2024-12-13",
        "dateEnd": "2025-08-15",
        "geoCountries": [],
        "geoCountriesIsInclude": true,
        "geoRegions": [],
        "geoRegionsIsInclude": true,
        "geoCities": [],
        "geoCitiesIsInclude": true,
        "contentCategories": [],
        "contentCategoriesIsInclude": true,
        "userAgeMin": 0,
        "userAgeMax": 0,
        "connectionTypes": [
            "wifi"
        ],
        "clickedInventoryCategories": [],
        "deviceCarrier": [],
        "deviceCarrierIsInclude": true,
        "OS": [],
        "OSIsInclude": true,
        "browser": [],
        "browserIsInclude": true,
        "deviceLanguage": [],
        "deviceLanguageIsInclude": true,
        "spentDailyLimit": 265,
        "spentTotalLimit": 1978,
        "impressionsDailyLimit": 296226,
        "impressionsTotalLimit": 430211,
        "clicksDailyLimit": 0,
        "clicksTotalLimit": 0,
        "budgetUse": "fast",
        "allSources": true,
        "cpm": 0,
        "adaptiveCpm": false,
        "useCpm": false,
        "googleAnalyticsTrackingCode": null,
        "dynamicTargeting": [],
        "subscriptionAge": [],
        "frequencyType": "user",
        "frequency": 0,
        "frequencyCap": 1,
        "frequencyPeriod": 1,
        "extendedStatus": "Campaign is not active",
        "createdAt": "2025-05-13",
        "updatedAt": "2025-05-13",
        "deletedAt": null,
        "pretarget": null,
        "pretargets": [],
        "audiences": []
    }
}

4.3. Create a Custom Banner/Native/Video/Audio Campaigns

A `POST` request will create new campaign.

4.3.1. Request Body

Path Type Description Required

type

string

Campaign type: banner, native, video, audio

+

name

string

Campaign name

+

aDomain

integer

Top level domain

+

isRewarded

integer

Rewarded video (for video creatives)

isDesktopWeb

boolean

Traffic Type: Desktop Websites

isMobileApp

boolean

Traffic Type: Mobile Applications

isMobileWeb

boolean

Traffic Type: Mobile Websites

isSmartphone

boolean

Traffic Type: Smartphones

isTablet

boolean

Traffic Type: Tablets

contentCategories

array

Targeting: IAB Categories list

contentCategoriesIsInclude

boolean

Targeting: IAB Categories list type (true: whitelist, false: blacklist)

userAgeMin

integer

Targeting: Age range from

userAgeMax

integer

Targeting: Age range to

connectionTypes

array

Targeting: Connection types list

deviceCarrier

array

Targeting: List of network operators.

deviceCarrierIsInclude

boolean

Targeting: List of network operators type (true: whitelist, false: blacklist)

OS

array

Targeting: The operating system of user's device

OSIsInclude

boolean

Targeting: The operating system of user's device list type (true: whitelist, false: blacklist)

browser

array

Targeting: The user's browsers list

browserIsInclude

boolean

Targeting: The user's browsers list type (true: whitelist, false: blacklist)

deviceLanguage

array

Targeting: The languages of user's browser

deviceLanguageIsInclude

boolean

Targeting: The languages of user's browser list type (true: whitelist, false: blacklist)

spentDailyLimit

integer

Daily spent limit

spentTotalLimit

integer

Total spent limit

impressionsDailyLimit

integer

Daily impressions limit

impressionsTotalLimit

integer

Total impressions limit

clicksDailyLimit

integer

Daily clicks limit

clicksTotalLimit

integer

Total clicks limit

budgetUse

integer

Distribution: pacer, fast pacer - Evenly distribution fast - ASAP distribution

dateStart

date

Date start

dateEnd

date

Date end

4.3.2. HTTP Request

URL

POST api/campaigns HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJrR0JYY3pjaTdnNFlVdXZYIiwic3ViIjoiMTEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.CWPs3TzBPy-DlLeBOszb-8-q8pGcWWO5YUdQzxUIUvE
DATA
{
    "type": "banner",
    "name": "New Campaign #2",
    "aDomain": "corkery.net",
    "isRewarded": true,
    "isDesktopWeb": true,
    "isMobileApp": true,
    "isMobileWeb": true,
    "isSmartphone": true,
    "isTablet": true,
    "contentCategories": [
        "IAB1",
        "IAB3"
    ],
    "contentCategoriesIsInclude": false,
    "userAgeMin": 18,
    "userAgeMax": 50,
    "connectionTypes": [
        "ethernet",
        "cellular_all",
        "cellular_3g",
        "cellular_4g",
        "wifi"
    ],
    "deviceCarrier": [
        "ISP Green-Stiedemann",
        "ISP Simonis Inc"
    ],
    "deviceCarrierIsInclude": false,
    "OS": [
        "Android 8.0",
        "Android 8.1",
        "Android 9.0",
        "Android 10.0",
        "Android 11.0",
        "Android 12.0",
        "Android 13.0",
        "iOS"
    ],
    "OSIsInclude": true,
    "browser": [
        "Chrome",
        "IE",
        "Edge"
    ],
    "browserIsInclude": true,
    "deviceLanguage": [
        "ab",
        "aa"
    ],
    "deviceLanguageIsInclude": true,
    "spentDailyLimit": 200,
    "spentTotalLimit": 1000,
    "impressionsDailyLimit": 100000,
    "impressionsTotalLimit": 1000000,
    "clicksDailyLimit": 500,
    "clicksTotalLimit": 1000,
    "budgetUse": "fast",
    "dateStart": "2024-12-14",
    "dateEnd": "2025-12-28"
}

4.3.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJrR0JYY3pjaTdnNFlVdXZYIiwic3ViIjoiMTEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.CWPs3TzBPy-DlLeBOszb-8-q8pGcWWO5YUdQzxUIUvE' \
    -d '{
    "type": "banner",
    "name": "New Campaign #2",
    "aDomain": "corkery.net",
    "isRewarded": true,
    "isDesktopWeb": true,
    "isMobileApp": true,
    "isMobileWeb": true,
    "isSmartphone": true,
    "isTablet": true,
    "contentCategories": [
        "IAB1",
        "IAB3"
    ],
    "contentCategoriesIsInclude": false,
    "userAgeMin": 18,
    "userAgeMax": 50,
    "connectionTypes": [
        "ethernet",
        "cellular_all",
        "cellular_3g",
        "cellular_4g",
        "wifi"
    ],
    "deviceCarrier": [
        "ISP Green-Stiedemann",
        "ISP Simonis Inc"
    ],
    "deviceCarrierIsInclude": false,
    "OS": [
        "Android 8.0",
        "Android 8.1",
        "Android 9.0",
        "Android 10.0",
        "Android 11.0",
        "Android 12.0",
        "Android 13.0",
        "iOS"
    ],
    "OSIsInclude": true,
    "browser": [
        "Chrome",
        "IE",
        "Edge"
    ],
    "browserIsInclude": true,
    "deviceLanguage": [
        "ab",
        "aa"
    ],
    "deviceLanguageIsInclude": true,
    "spentDailyLimit": 200,
    "spentTotalLimit": 1000,
    "impressionsDailyLimit": 100000,
    "impressionsTotalLimit": 1000000,
    "clicksDailyLimit": 500,
    "clicksTotalLimit": 1000,
    "budgetUse": "fast",
    "dateStart": "2024-12-14",
    "dateEnd": "2025-12-28"
}'

4.3.4. Response Body

Path Type Description

data.id

integer

Campaign Id

data.userId

integer

User Id

data.isActive

boolean

Campaign On/Off

data.isRunning

boolean

Campaign running status

data.type

string

Campaign type: banner, native, video, audio

data.name

string

Campaign name

data.isRewarded

integer

Rewarded video (for video creatives)

data.isDesktopWeb

boolean

Traffic Type: Desktop Websites

data.isMobileApp

boolean

Traffic Type: Mobile Applications

data.isMobileWeb

boolean

Traffic Type: Mobile Websites

data.isSmartphone

boolean

Traffic Type: Smartphones

data.isTablet

boolean

Traffic Type: Tablets

data.isCTV

boolean

Traffic Type: CTV

data.isDOOH

boolean

Traffic Type: DOOH

data.aDomain

integer

Top level domain

data.dateStart

date

Date start

data.dateEnd

date

Date end

data.geoCountries

array

GEO Targeting: countries list

data.geoCountriesIsInclude

boolean

GEO Targeting: countries list type (true: whitelist, false: blacklist)

data.geoRegions

array

GEO Targeting: regions list

data.geoRegionsIsInclude

boolean

GEO Targeting: regions list type (true: whitelist, false: blacklist)

data.geoCities

array

GEO Targeting: cities list

data.geoCitiesIsInclude

boolean

GEO Targeting: cities list type (true: whitelist, false: blacklist)

data.contentCategories

array

Targeting: IAB Categories list

data.contentCategoriesIsInclude

boolean

Targeting: IAB Categories list type (true: whitelist, false: blacklist)

data.userAgeMin

integer

Targeting: Age range from

data.userAgeMax

integer

Targeting: Age range to

data.connectionTypes

array

Targeting: Connection types list

data.clickedInventoryCategories

array

Сlicked Inventory Categories

data.deviceCarrier

array

Targeting: List of network operators.

data.deviceCarrierIsInclude

boolean

Targeting: List of network operators type (true: whitelist, false: blacklist)

data.OS

array

Targeting: The operating system of user's device

data.OSIsInclude

boolean

Targeting: The operating system of user's device list type (true: whitelist, false: blacklist)

data.browser

array

Targeting: The user's browsers list

data.browserIsInclude

boolean

Targeting: The user's browsers list type (true: whitelist, false: blacklist)

data.deviceLanguage

array

Targeting: The languages of user's browser

data.deviceLanguageIsInclude

boolean

Targeting: The languages of user's browser list type (true: whitelist, false: blacklist)

data.spentDailyLimit

integer

Daily spent limit

data.spentTotalLimit

integer

Total spent limit

data.impressionsDailyLimit

integer

Daily impressions limit

data.impressionsTotalLimit

integer

Total impressions limit

data.clicksDailyLimit

integer

Daily clicks limit

data.clicksTotalLimit

integer

Total clicks limit

data.budgetUse

integer

Distribution: pacer, fast pacer - Evenly distribution fast - ASAP distribution

data.allSources

boolean

Inventory: Use all SSP endpoints

data.cpm

float

cpm

data.adaptiveCpm

boolean

adaptiveCpm

data.useCpm

boolean

use cpm

data.googleAnalyticsTrackingCode

string

Google Analytics tracking code - PUSH Campaigns

data.dynamicTargeting

array

SmartCPC: Dynamic targeting - only for CPC Pricing model

data.subscriptionAge

array

Subscription Age - only for CPC Pricing model

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.extendedStatus

string

Campaign extended status

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.deletedAt

datetime

Date of deletion

data.pretarget

int

pretarget

data.pretargets

array

pretargets

data.audiences

array

audiences

4.3.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 6,
        "userId": 11,
        "isActive": null,
        "isRunning": false,
        "type": "banner",
        "name": "New Campaign #2",
        "isRewarded": true,
        "isDesktopWeb": true,
        "isMobileApp": true,
        "isMobileWeb": true,
        "isSmartphone": true,
        "isTablet": true,
        "isCTV": true,
        "isDOOH": true,
        "aDomain": "corkery.net",
        "dateStart": "2024-12-14",
        "dateEnd": "2025-12-28",
        "geoCountries": [],
        "geoCountriesIsInclude": false,
        "geoRegions": [],
        "geoRegionsIsInclude": null,
        "geoCities": [],
        "geoCitiesIsInclude": false,
        "contentCategories": [
            "IAB1",
            "IAB3"
        ],
        "contentCategoriesIsInclude": false,
        "userAgeMin": 18,
        "userAgeMax": 50,
        "connectionTypes": [
            "ethernet",
            "cellular_all",
            "cellular_3g",
            "cellular_4g",
            "wifi"
        ],
        "clickedInventoryCategories": [],
        "deviceCarrier": [
            "ISP Green-Stiedemann",
            "ISP Simonis Inc"
        ],
        "deviceCarrierIsInclude": false,
        "OS": [
            "Android 8.0",
            "Android 8.1",
            "Android 9.0",
            "Android 10.0",
            "Android 11.0",
            "Android 12.0",
            "Android 13.0",
            "iOS"
        ],
        "OSIsInclude": true,
        "browser": [
            "Chrome",
            "IE",
            "Edge"
        ],
        "browserIsInclude": true,
        "deviceLanguage": [
            "ab",
            "aa"
        ],
        "deviceLanguageIsInclude": true,
        "spentDailyLimit": 200,
        "spentTotalLimit": 1000,
        "impressionsDailyLimit": 100000,
        "impressionsTotalLimit": 1000000,
        "clicksDailyLimit": 500,
        "clicksTotalLimit": 1000,
        "budgetUse": "fast",
        "allSources": false,
        "cpm": null,
        "adaptiveCpm": null,
        "useCpm": null,
        "googleAnalyticsTrackingCode": null,
        "dynamicTargeting": [],
        "subscriptionAge": [],
        "frequencyType": null,
        "frequency": null,
        "frequencyCap": 0,
        "frequencyPeriod": 0,
        "extendedStatus": "Campaign is not active",
        "createdAt": "2025-05-13",
        "updatedAt": "2025-05-13",
        "deletedAt": null,
        "pretarget": null,
        "pretargets": [],
        "audiences": []
    }
}

4.4. Update a Custom Campaign

A `PATCH` request will update campaign.

4.4.1. Request Body

Path Type Description Required

name

string

Campaign name

4.4.2. HTTP Request

URL

PATCH api/campaigns/7 HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJwTjZuZmpBNTNOaEc4cWRMIiwic3ViIjoiMTIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.zYGroGYHBNGcFi-MVC6Xrpigl1e4GdCGCoB7TvC-7R8
DATA
{
    "name": "Updated Campaign #3"
}

4.4.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/7' -i -X PATCH \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJwTjZuZmpBNTNOaEc4cWRMIiwic3ViIjoiMTIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.zYGroGYHBNGcFi-MVC6Xrpigl1e4GdCGCoB7TvC-7R8' \
    -d '{
    "name": "Updated Campaign #3"
}'

4.4.4. Response Body

Path Type Description

data.id

integer

Campaign Id

data.userId

integer

User Id

data.isActive

boolean

Campaign On/Off

data.isRunning

boolean

Campaign running status

data.type

string

Campaign type: banner, native, video, audio

data.name

string

Campaign name

data.isRewarded

integer

Rewarded video (for video creatives)

data.isDesktopWeb

boolean

Traffic Type: Desktop Websites

data.isMobileApp

boolean

Traffic Type: Mobile Applications

data.isMobileWeb

boolean

Traffic Type: Mobile Websites

data.isSmartphone

boolean

Traffic Type: Smartphones

data.isTablet

boolean

Traffic Type: Tablets

data.isCTV

boolean

Traffic Type: CTV

data.isDOOH

boolean

Traffic Type: DOOH

data.aDomain

integer

Top level domain

data.dateStart

date

Date start

data.dateEnd

date

Date end

data.geoCountries

array

GEO Targeting: countries list

data.geoCountriesIsInclude

boolean

GEO Targeting: countries list type (true: whitelist, false: blacklist)

data.geoRegions

array

GEO Targeting: regions list

data.geoRegionsIsInclude

boolean

GEO Targeting: regions list type (true: whitelist, false: blacklist)

data.geoCities

array

GEO Targeting: cities list

data.geoCitiesIsInclude

boolean

GEO Targeting: cities list type (true: whitelist, false: blacklist)

data.contentCategories

array

Targeting: IAB Categories list

data.contentCategoriesIsInclude

boolean

Targeting: IAB Categories list type (true: whitelist, false: blacklist)

data.userAgeMin

integer

Targeting: Age range from

data.userAgeMax

integer

Targeting: Age range to

data.connectionTypes

array

Targeting: Connection types list

data.clickedInventoryCategories

array

Сlicked Inventory Categories

data.deviceCarrier

array

Targeting: List of network operators.

data.deviceCarrierIsInclude

boolean

Targeting: List of network operators type (true: whitelist, false: blacklist)

data.OS

array

Targeting: The operating system of user's device

data.OSIsInclude

boolean

Targeting: The operating system of user's device list type (true: whitelist, false: blacklist)

data.browser

array

Targeting: The user's browsers list

data.browserIsInclude

boolean

Targeting: The user's browsers list type (true: whitelist, false: blacklist)

data.deviceLanguage

array

Targeting: The languages of user's browser

data.deviceLanguageIsInclude

boolean

Targeting: The languages of user's browser list type (true: whitelist, false: blacklist)

data.spentDailyLimit

integer

Daily spent limit

data.spentTotalLimit

integer

Total spent limit

data.impressionsDailyLimit

integer

Daily impressions limit

data.impressionsTotalLimit

integer

Total impressions limit

data.clicksDailyLimit

integer

Daily clicks limit

data.clicksTotalLimit

integer

Total clicks limit

data.budgetUse

integer

Distribution: pacer, fast pacer - Evenly distribution fast - ASAP distribution

data.allSources

boolean

Inventory: Use all SSP endpoints

data.cpm

float

cpm

data.adaptiveCpm

boolean

adaptiveCpm

data.useCpm

boolean

use cpm

data.googleAnalyticsTrackingCode

string

Google Analytics tracking code - PUSH Campaigns

data.dynamicTargeting

array

SmartCPC: Dynamic targeting - only for CPC Pricing model

data.subscriptionAge

array

Subscription Age - only for CPC Pricing model

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.extendedStatus

string

Campaign extended status

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.deletedAt

datetime

Date of deletion

data.pretarget

int

pretarget

data.pretargets

array

pretargets

data.audiences

array

audiences

4.4.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 7,
        "userId": 12,
        "isActive": false,
        "isRunning": false,
        "type": "audio",
        "name": "Updated Campaign #3",
        "isRewarded": false,
        "isDesktopWeb": true,
        "isMobileApp": true,
        "isMobileWeb": true,
        "isSmartphone": true,
        "isTablet": false,
        "isCTV": true,
        "isDOOH": true,
        "aDomain": "hintz.com",
        "dateStart": "2023-05-18",
        "dateEnd": "2025-11-17",
        "geoCountries": [],
        "geoCountriesIsInclude": true,
        "geoRegions": [],
        "geoRegionsIsInclude": true,
        "geoCities": [],
        "geoCitiesIsInclude": true,
        "contentCategories": [],
        "contentCategoriesIsInclude": true,
        "userAgeMin": 0,
        "userAgeMax": 0,
        "connectionTypes": [
            "wifi"
        ],
        "clickedInventoryCategories": [],
        "deviceCarrier": [],
        "deviceCarrierIsInclude": true,
        "OS": [],
        "OSIsInclude": true,
        "browser": [],
        "browserIsInclude": true,
        "deviceLanguage": [],
        "deviceLanguageIsInclude": true,
        "spentDailyLimit": 140,
        "spentTotalLimit": 8788,
        "impressionsDailyLimit": 286637,
        "impressionsTotalLimit": 421239,
        "clicksDailyLimit": 0,
        "clicksTotalLimit": 0,
        "budgetUse": "fast",
        "allSources": true,
        "cpm": 0,
        "adaptiveCpm": false,
        "useCpm": false,
        "googleAnalyticsTrackingCode": null,
        "dynamicTargeting": [],
        "subscriptionAge": [],
        "frequencyType": "user",
        "frequency": 0,
        "frequencyCap": 1,
        "frequencyPeriod": 1,
        "extendedStatus": "Campaign is not active",
        "createdAt": "2025-05-13",
        "updatedAt": "2025-05-13",
        "deletedAt": null,
        "pretarget": null,
        "pretargets": [],
        "audiences": []
    }
}

4.5. Delete a Custom Campaign

A `DELETE` request will delete campaign.

4.5.1. HTTP Request

URL

DELETE api/campaigns/8 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJTTmNzS2VmWHZranY4SHBEIiwic3ViIjoiMTMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.SJDWoasQfjaVaPnE8OTQHphS9yh6oqi8FgWqkbVlz-8
Content-type: application/x-www-form-urlencoded
DATA
{}

4.5.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/8' -i -X DELETE \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJTTmNzS2VmWHZranY4SHBEIiwic3ViIjoiMTMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.SJDWoasQfjaVaPnE8OTQHphS9yh6oqi8FgWqkbVlz-8' \
                -H 'Content-type: application/x-www-form-urlencoded' \
    -d '{}'

4.5.3. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{}

5. Upload media

5.1. Store Image

A `POST` request will upload image

5.1.1. Request Body

Path Type Description Required

media_assets

file

Array of files to upload

+

5.1.2. HTTP Request

URL

POST api/media-asset/upload/image HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJKdzlyMzFZN3g4MG1DaVdRIiwic3ViIjoiNDAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.JXPbgPCQ8ax92wJ1CMXDGLVtjhoD2Syg4ClQuEVSiNU
DATA
{
    "media_assets": [
        <Binary file>
    ]
}

5.1.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/media-asset/upload/image' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJKdzlyMzFZN3g4MG1DaVdRIiwic3ViIjoiNDAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.JXPbgPCQ8ax92wJ1CMXDGLVtjhoD2Syg4ClQuEVSiNU' \
    -d '{
    "media_assets": [
        <Binary file>
    ]
}'

5.1.4. Response Body

Path Type Description

message

string

Result message

data.*.id

integer

Media id

data.*.userId

integer

User Id

data.*.mediaType

string

Media type (html, image, video)

data.*.originName

string

Original file name

data.*.name

string

Uploaded file name

data.*.extension

string

Uploaded file extension

data.*.url

string

Uploaded file url

data.*.width

integer

Uploaded file image width

data.*.height

integer

Uploaded file image height

data.*.weight

integer

Uploaded file size kB

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

5.1.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "MediaAsset created.",
    "data": [
        {
            "id": 20,
            "userId": 40,
            "mediaType": "image",
            "originName": "test-image.png",
            "name": "test-image.png",
            "extension": "png",
            "url": "\/storage\/test-image.png",
            "width": 10,
            "height": 10,
            "weight": 91,
            "createdAt": "2025-05-13 12:19:00",
            "updatedAt": "2025-05-13 12:19:00"
        }
    ]
}

5.2. Store video

A `POST` request will upload video

5.2.1. Request Body

Path Type Description Required

media_assets

file

Array of files to upload

+

5.2.2. HTTP Request

URL

POST api/media-asset/upload/video HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiI3MUFFMlRJenI4UXpBQlhrIiwic3ViIjoiNDEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.5bl45zFctBFuV8MW4pnQyllQou-MFsVxkkivdUZW99E
DATA
{
    "media_assets": [
        <Binary file>
    ]
}

5.2.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/media-asset/upload/video' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiI3MUFFMlRJenI4UXpBQlhrIiwic3ViIjoiNDEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.5bl45zFctBFuV8MW4pnQyllQou-MFsVxkkivdUZW99E' \
    -d '{
    "media_assets": [
        <Binary file>
    ]
}'

5.2.4. Response Body

Path Type Description

message

string

Result message

data.*.id

integer

Media id

data.*.userId

integer

User Id

data.*.mediaType

string

Media type (html, image, video)

data.*.originName

string

Original file name

data.*.name

string

Uploaded file name

data.*.extension

string

Uploaded file extension

data.*.url

string

Uploaded file url

data.*.width

integer

Uploaded file image width

data.*.height

integer

Uploaded file image height

data.*.weight

integer

Uploaded file size kB

data.*.mimeType

string

Video mime type

data.*.bitrate

integer

Video bitrate

data.*.duration

integer

Video duration (in seconds)

data.*.durationTime

string

Video duration (in text format)

data.*.playtime

integer

Video playtime

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

5.2.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "MediaAsset created.",
    "data": [
        {
            "id": 21,
            "userId": 41,
            "mediaType": "video",
            "originName": "test-video.mp4",
            "name": "test-video.mp4",
            "extension": "mp4",
            "url": "\/storage\/test-video.mp4",
            "width": 320,
            "height": 240,
            "weight": 5312,
            "mimeType": "video\/quicktime",
            "bitrate": 201493,
            "duration": 0,
            "durationTime": "00:00:00",
            "playtime": "00:00:00",
            "createdAt": "2025-05-13 12:19:00",
            "updatedAt": "2025-05-13 12:19:00"
        }
    ]
}

5.3. Store HTML

A `POST` request will upload HTML

5.3.1. Request Body

Path Type Description Required

media_assets

file

Array of files to upload

+

5.3.2. HTTP Request

URL

POST api/media-asset/upload/html HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJ0cDE3VmU5U2x0T2pQbEd2Iiwic3ViIjoiNDIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.3qlOEpdzb_IW-ai2qGFHJ-jDQBfX4lQItI3U9-MmfHE
DATA
{
    "media_assets": [
        <Binary file>
    ]
}

5.3.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/media-asset/upload/html' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJ0cDE3VmU5U2x0T2pQbEd2Iiwic3ViIjoiNDIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.3qlOEpdzb_IW-ai2qGFHJ-jDQBfX4lQItI3U9-MmfHE' \
    -d '{
    "media_assets": [
        <Binary file>
    ]
}'

5.3.4. Response Body

Path Type Description

message

string

Result message

data.*.id

integer

Media id

data.*.userId

integer

User Id

data.*.mediaType

string

Media type (html, image, video)

data.*.originName

string

Original file name

data.*.name

string

Uploaded file name

data.*.extension

string

Uploaded file extension

data.*.url

string

Uploaded file url

data.*.width

integer

Uploaded file image width

data.*.height

integer

Uploaded file image height

data.*.weight

integer

Uploaded file size kB

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

5.3.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "MediaAsset created.",
    "data": [
        {
            "id": 22,
            "userId": 42,
            "mediaType": "html",
            "originName": "test-html.zip",
            "name": "TEST\/index.html",
            "extension": "zip",
            "url": "\/storage\/TEST\/index.html",
            "width": 0,
            "height": 0,
            "weight": 0,
            "createdAt": "2025-05-13 12:19:00",
            "updatedAt": "2025-05-13 12:19:00"
        }
    ]
}

5.4. Store filter list

A `POST` request will upload video

5.4.1. HTTP Request

URL

POST api/parsefile HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJtbzNnRnBERzY4U1ZFcFNKIiwic3ViIjoiNDMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.dAGR_78qcQ1-RxBwTZNybVvHCME3n8OpcztOd_nX65M
DATA
{
    "file": <Binary file>
}

5.4.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/parsefile' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJtbzNnRnBERzY4U1ZFcFNKIiwic3ViIjoiNDMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.dAGR_78qcQ1-RxBwTZNybVvHCME3n8OpcztOd_nX65M' \
    -d '{
    "file": <Binary file>
}'

5.4.3. Response Body

Path Type Description

message

string

Result message

items

array

List array items

fileName

string

File name

countItems

integer

Count items

5.4.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "success",
    "items": [
        "test.com"
    ],
    "fileName": "1747138740_test-filter.csv",
    "countItems": 0
}

6. Creatives

6.1. Creatives list

A `GET` request will return a list of an creatives.

6.1.1. HTTP Request

URL

GET api/creatives HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJ2STY2eDNLd2ZLV21QNDB5Iiwic3ViIjoiMjMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.uRcpW1y_dXSQ8kN-egoViDxiJs8nVvMlx099gJqXoa4
DATA
{}

6.1.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJ2STY2eDNLd2ZLV21QNDB5Iiwic3ViIjoiMjMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.uRcpW1y_dXSQ8kN-egoViDxiJs8nVvMlx099gJqXoa4' \
    -d '{}'

6.1.3. Response Body

Path Type Description

data.*.id

integer

Creative Id

data.*.userId

integer

User Id

data.*.isActive

boolean

Creative status

data.*.approved

string

Creative approval status (approved, pending, disapproved)

data.*.creativeType

string

Creative type: banner, native, video, audio

data.*.name

string

Creative name

data.*.frequencyType

string

Identify the user to limit the number of the ad shows for the specific user (user, ip). Required if frequency is on.

data.*.frequency

string

Frequency on/off

data.*.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period". Required if frequency is on.

data.*.frequencyPeriod

integer

Frequency period in days (min-1,max-3). Required if frequency is on.

data.*.bidPrice

float

CPM

data.*.autoresize

boolean

autoresize

data.*.adaptiveCpm

bool

adaptiveCpm

data.*.size

string

Image width and height

data.*.weight

string

File size

data.*.folderId

string

Folder Id

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

data.*.pendingAt

datetime

Date of pending start

data.*.deletedAt

datetime

Date of deletion

data.*.media.id

integer

Media Id

data.*.media.userId

string

User Id

data.*.media.mediaType

string

Media type (html, image, video)

data.*.media.originName

string

Uploaded file original name

data.*.media.name

string

Uploaded file name

data.*.media.extension

string

Uploaded file extention

data.*.media.url

string

Uploaded file URL

data.*.media.width

integer

Uploaded file image width

data.*.media.height

integer

Uploaded file image height

data.*.media.weight

integer

Uploaded file size

data.*.relation.banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

data.*.relation.banner.admBody

string

Third-party tag

data.*.relation.banner.bannerType

String

Banner type (banner,inBannerVideo)

data.*.relation.banner.clickUrl

string

Click URL

data.*.relation.banner.width

integer

Banner width

data.*.relation.banner.height

integer

Banner height

data.*.relation.banner.childrenCreative

string

childrenCreative

data.*.relation.banner.statusChildrenCreative

string

statusChildrenCreative

data.*.relation.banner.main

boolean

Main creative

data.*.status

string

Status

data.*.relation.native.smallImageId

integer

Logo media id

data.*.relation.native.largeImageId

integer

Image media id

data.*.relation.native.smallImage.id

integer

Logo media id

data.*.relation.native.smallImage.folderId

string

Folder id

data.*.relation.native.smallImage.userId

integer

User id

data.*.relation.native.smallImage.width

string

width

data.*.relation.native.smallImage.height

string

height

data.*.relation.native.smallImage.name

string

name

data.*.relation.native.smallImage.url

string

url

data.*.relation.native.smallImage.href

string

href

data.*.relation.native.smallImage.originName

string

originName

data.*.relation.native.smallImage.path

string

path

data.*.relation.native.smallImage.extension

string

extension

data.*.relation.native.smallImage.mediaType

string

mediaType

data.*.relation.native.smallImage.createdAt

string

createdAt

data.*.relation.native.smallImage.updatedAt

string

updatedAt

data.*.relation.native.smallImage.deletedAt

string

updatedAt

data.*.relation.native.smallImage.weight

string

weight

data.*.relation.native.largeImage.id

integer

Image media id

data.*.relation.native.largeImage.folderId

string

Folder id

data.*.relation.native.largeImage.userId

integer

User id

data.*.relation.native.largeImage.width

string

width

data.*.relation.native.largeImage.height

string

height

data.*.relation.native.largeImage.name

string

name

data.*.relation.native.largeImage.url

string

url

data.*.relation.native.largeImage.href

string

href

data.*.relation.native.largeImage.originName

string

originName

data.*.relation.native.largeImage.path

string

path

data.*.relation.native.largeImage.extension

string

extension

data.*.relation.native.largeImage.mediaType

string

mediaType

data.*.relation.native.largeImage.createdAt

string

createdAt

data.*.relation.native.largeImage.updatedAt

string

updatedAt

data.*.relation.native.largeImage.deletedAt

string

updatedAt

data.*.relation.native.largeImage.weight

string

weight

data.*.relation.native.assetDataDesc

string

Ad text

data.*.relation.native.assetTitle

string

Ad title

data.*.relation.native.assetDataSponsored

string

Brand name

data.*.relation.native.assetCtaText

string

CTA button text

data.*.relation.native.clickUrl

string

Click URL

data.*.relation.native.displayUrl

string

Display URL

data.*.relation.native.impTracker

string

Impression Tracker

data.*.relation.video.sizes

string

Player size

data.*.relation.video.admBody

string

Third-party tag

data.*.relation.video.mimeType

array

MIME types ("[video/mpeg, video/mp4, video/quicktime, video/x-flv, application/x-shockwave-flash, application/javascript, video/x-ms-wmv, video/webm]")

data.*.relation.video.width

integer

Video width

data.*.relation.video.height

integer

Video height

data.*.relation.video.duration

integer

Video duration

data.*.relation.video.clickUrl

string

Click URL

data.*.relation.video.partyTagFormat

integer

3 party tag format (0-NO VPAID, 1-VPAID 1, 2-VPAID 2, 3-ALL VPAID)

data.*.relation.video.autoStoreEndCard

boolean

autoStoreEndCard

data.*.relation.video.autoStoreEndCardOption

string

autoStoreEndCardOption

meta.pagination.total

integer

Pagination: total items count

meta.pagination.count

integer

Pagination: page items count

meta.pagination.per_page

integer

Pagination: items per page

meta.pagination.current_page

integer

Pagination: current page number

meta.pagination.total_pages

integer

Pagination: total pages count

meta.pagination.links

object

Pagination links

6.1.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": [
        {
            "id": 8,
            "userId": 23,
            "isActive": 1,
            "approved": "pending",
            "creativeType": "banner",
            "name": "Banner creative #1",
            "frequencyType": "ip",
            "frequency": 0,
            "frequencyCap": 8,
            "frequencyPeriod": 1,
            "bidPrice": "1.44",
            "autoresize": 0,
            "adaptiveCpm": false,
            "size": "390 x 351",
            "weight": "0.17 MB",
            "folderId": null,
            "createdAt": "2025-05-13 00:00:00",
            "updatedAt": "2025-05-13 12:18:58",
            "pendingAt": null,
            "deletedAt": null,
            "media": {
                "id": 8,
                "userId": 23,
                "mediaType": "image",
                "originName": "image.jpg",
                "name": "23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                "extension": "jpg",
                "url": "http:\/\/fisher.com\/aut-eos-accusamus-fugit-est-voluptatem-laborum-quisquam\/23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                "width": 391,
                "height": 228,
                "weight": 177107
            },
            "relation": {
                "banner": {
                    "apiFramework": 0,
                    "admBody": "<a target=\"_blank\" href=\"https:\/\/ebert.com\/voluptatum-aperiam-pariatur-harum-cum-voluptatem-nam.html\" ><img src=\"http:\/\/www.okeefe.com\/illum-aliquid-reiciendis-ut-ratione-eveniet.html\/10.jpg\"\/><\/a>",
                    "bannerType": "banner",
                    "clickUrl": "http:\/\/johns.com\/debitis-omnis-tenetur-sed-qui",
                    "width": 390,
                    "height": 351,
                    "childrenCreative": null,
                    "statusChildrenCreative": [],
                    "main": 1
                }
            },
            "status": "pending"
        },
        {
            "id": 9,
            "userId": 23,
            "isActive": 1,
            "approved": "pending",
            "creativeType": "native",
            "name": "Native creative #1",
            "frequencyType": "user",
            "frequency": 0,
            "frequencyCap": 2,
            "frequencyPeriod": 1,
            "bidPrice": "13.05",
            "autoresize": 0,
            "adaptiveCpm": false,
            "size": "339 x 433",
            "weight": "0.00 MB",
            "folderId": null,
            "createdAt": "2025-05-13 00:00:00",
            "updatedAt": "2025-05-13 12:18:58",
            "pendingAt": null,
            "deletedAt": null,
            "media": {
                "id": 9,
                "userId": 23,
                "mediaType": "image",
                "originName": "image.jpg",
                "name": "23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                "extension": "jpg",
                "url": "http:\/\/www.mayert.info\/magni-sunt-voluptatem-reiciendis-qui-sed-unde-necessitatibus.html\/23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                "width": 151,
                "height": 330,
                "weight": 101622
            },
            "relation": {
                "native": {
                    "smallImageId": 9,
                    "largeImageId": 10,
                    "smallImage": {
                        "id": 9,
                        "folderId": null,
                        "userId": 23,
                        "width": 151,
                        "height": 330,
                        "name": "23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                        "url": "http:\/\/www.mayert.info\/magni-sunt-voluptatem-reiciendis-qui-sed-unde-necessitatibus.html\/23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                        "href": null,
                        "originName": "image.jpg",
                        "path": null,
                        "extension": "jpg",
                        "mediaType": "image",
                        "createdAt": "2025-05-13T12:18:58.000000Z",
                        "updatedAt": "2025-05-13T12:18:58.000000Z",
                        "deletedAt": null,
                        "weight": 101622
                    },
                    "largeImage": {
                        "id": 10,
                        "folderId": null,
                        "userId": 23,
                        "width": 339,
                        "height": 433,
                        "name": "23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                        "url": "http:\/\/www.lind.com\/aperiam-fugiat-eos-sed-aut-voluptas\/23_fa8a68201cf3cdad412f55815b2cd8a4.jpg",
                        "href": null,
                        "originName": "image.jpg",
                        "path": null,
                        "extension": "jpg",
                        "mediaType": "image",
                        "createdAt": "2025-05-13T12:18:58.000000Z",
                        "updatedAt": "2025-05-13T12:18:58.000000Z",
                        "deletedAt": null,
                        "weight": 151134
                    },
                    "assetDataDesc": "Optio quae ipsam veniam.",
                    "assetTitle": "Voluptas ad aut qui aut.",
                    "assetDataSponsored": "Aspernatur qui sunt maiores corporis quisquam.",
                    "assetCtaText": "Quia quae eum maxime et.",
                    "clickUrl": "http:\/\/nolan.org\/",
                    "displayUrl": "https:\/\/sawayn.net\/doloremque-ut-suscipit-quae-molestias.html",
                    "impTracker": null
                }
            },
            "status": "pending"
        },
        {
            "id": 10,
            "userId": 23,
            "isActive": 0,
            "approved": "pending",
            "creativeType": "video",
            "name": "Video creative #1",
            "frequencyType": "user",
            "frequency": 0,
            "frequencyCap": 1,
            "frequencyPeriod": 1,
            "bidPrice": "12.58",
            "autoresize": 0,
            "adaptiveCpm": false,
            "size": "466 x 234",
            "weight": "0.45 MB",
            "folderId": null,
            "createdAt": "2025-05-13 00:00:00",
            "updatedAt": "2025-05-13 12:18:58",
            "pendingAt": null,
            "deletedAt": null,
            "media": {
                "id": 11,
                "userId": 23,
                "mediaType": "video",
                "originName": "video.mp4",
                "name": "23_fa8a68201cf3cdad412f55815b2cd8a4.mp4",
                "extension": "mp4",
                "url": "https:\/\/barton.biz\/provident-iure-est-enim-aspernatur-amet.html\/23_fa8a68201cf3cdad412f55815b2cd8a4.mp4",
                "width": 164,
                "height": 172,
                "weight": 469079
            },
            "relation": {
                "video": {
                    "sizes": "x-large",
                    "admBody": "    <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<VAST version=\"2.0\">\n<Ad id=\"[HASH]\">\n    <InLine>\n        <AdSystem>DSP<\/AdSystem>\n        <AdTitle>Smartyads<\/AdTitle>\n        <Description>RTB<\/Description>\n        <Creatives>\n            <Creative AdID=\"572\">\n                <Linear>\n                    <Duration>00:00:09<\/Duration>\n                    <VideoClicks>\n                        <ClickThrough><![CDATA[https:\/\/picsum.photos\/]]><\/ClickThrough>\n                    <\/VideoClicks>\n                    <MediaFiles>\n                        <MediaFile delivery=\"streaming\" type=\"video\/quicktime\" width=\"640\" height=\"360\"><![CDATA[http:\/\/72.mp4]]><\/MediaFile>\n                    <\/MediaFiles>\n                <\/Linear>\n            <\/Creative>\n        <\/Creatives>\n    <\/InLine>\n<\/Ad>\n<\/VAST>",
                    "mimeType": [
                        "video\/mp4"
                    ],
                    "width": 466,
                    "height": 234,
                    "duration": 8,
                    "clickUrl": "http:\/\/www.leannon.net\/vel-quas-nihil-ut-illum-deleniti-ducimus-aut.html",
                    "partyTagFormat": 0,
                    "autoStoreEndCard": 0,
                    "autoStoreEndCardOption": "appStore"
                }
            },
            "status": "pending"
        }
    ],
    "meta": {
        "pagination": {
            "total": 3,
            "count": 3,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

6.2. Get by ID (Banner creative)

A `GET` request with a path parameter of the id will return the creative with that id.

6.2.1. HTTP Request

URL

GET api/creatives/11 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJHT2c5bXY1aEFBQ0ZkazJKIiwic3ViIjoiMjQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.w2Dhn8Ftc6AsmFrEHoUE6PnKI1BhBes2O8vTFt7SwWM
DATA
{}

6.2.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives/11' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJHT2c5bXY1aEFBQ0ZkazJKIiwic3ViIjoiMjQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.w2Dhn8Ftc6AsmFrEHoUE6PnKI1BhBes2O8vTFt7SwWM' \
    -d '{}'

6.2.3. Response Body

Path Type Description

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.media.id

integer

Media Id

data.media.userId

string

User Id

data.media.mediaType

string

Media type (html, image, video)

data.media.originName

string

Uploaded file original name

data.media.name

string

Uploaded file name

data.media.extension

string

Uploaded file extention

data.media.url

string

Uploaded file URL

data.media.width

integer

Uploaded file image width

data.media.height

integer

Uploaded file image height

data.media.weight

integer

Uploaded file size

data.media.modifiedUrl

any

data.relation.banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

data.relation.banner.admBody

string

Third-party tag

data.relation.banner.bannerType

String

Banner type (banner,inBannerVideo)

data.relation.banner.clickUrl

string

Click URL

data.relation.banner.width

integer

Banner width

data.relation.banner.height

integer

Banner height

data.sizes

string

size

6.2.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 11,
        "userId": 24,
        "isActive": 1,
        "approved": "pending",
        "creativeType": "banner",
        "name": "Banner creative #2",
        "frequencyType": "ip",
        "frequency": 0,
        "frequencyCap": 1,
        "frequencyPeriod": 1,
        "bidPrice": "15.76",
        "autoresize": 0,
        "adaptiveCpm": false,
        "size": "513 x 108",
        "weight": "0.39 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:58",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "banner": {
                "apiFramework": 0,
                "admBody": "<a target=\"_blank\" href=\"http:\/\/www.rohan.info\/aperiam-autem-impedit-eveniet-dolorum-culpa\" ><img src=\"http:\/\/brown.com\/quo-pariatur-quia-quo-ut-est-quia-inventore\/10.jpg\"\/><\/a>",
                "bannerType": "banner",
                "clickUrl": "http:\/\/lehner.com\/",
                "width": 513,
                "height": 108
            }
        },
        "sizes": []
    }
}

6.3. Get by ID (Native creative)

A `GET` request with a path parameter of the id will return the creative with that id.

6.3.1. HTTP Request

URL

GET api/creatives/12 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJJTGZyVkhkY3lYaDUzTHczIiwic3ViIjoiMjUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.Vj57h-_qVTiyvRtoLvIbTKdQsWHtToJjTP7yrQifuDg
DATA
{}

6.3.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives/12' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJJTGZyVkhkY3lYaDUzTHczIiwic3ViIjoiMjUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.Vj57h-_qVTiyvRtoLvIbTKdQsWHtToJjTP7yrQifuDg' \
    -d '{}'

6.3.3. Response Body

Path Type Description

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.media.id

integer

Media Id

data.media.userId

string

User Id

data.media.mediaType

string

Media type (html, image, video)

data.media.originName

string

Uploaded file original name

data.media.name

string

Uploaded file name

data.media.extension

string

Uploaded file extention

data.media.url

string

Uploaded file URL

data.media.width

integer

Uploaded file image width

data.media.height

integer

Uploaded file image height

data.media.weight

integer

Uploaded file size

data.media.modifiedUrl

any

data.relation.native.smallImageId

integer

Logo media id

data.relation.native.largeImageId

integer

Image media id

data.relation.native.smallImage.id

integer

Logo media id

data.relation.native.smallImage.folderId

string

Folder id

data.relation.native.smallImage.userId

integer

User id

data.relation.native.smallImage.width

string

width

data.relation.native.smallImage.height

string

height

data.relation.native.smallImage.name

string

name

data.relation.native.smallImage.url

string

url

data.relation.native.smallImage.href

string

href

data.relation.native.smallImage.originName

string

originName

data.relation.native.smallImage.path

string

path

data.relation.native.smallImage.extension

string

extension

data.relation.native.smallImage.mediaType

string

mediaType

data.relation.native.smallImage.createdAt

string

createdAt

data.relation.native.smallImage.updatedAt

string

updatedAt

data.relation.native.smallImage.deletedAt

string

updatedAt

data.relation.native.smallImage.weight

string

weight

data.relation.native.largeImage.id

integer

Image media id

data.relation.native.largeImage.folderId

string

Folder id

data.relation.native.largeImage.userId

integer

User id

data.relation.native.largeImage.width

string

width

data.relation.native.largeImage.height

string

height

data.relation.native.largeImage.name

string

name

data.relation.native.largeImage.url

string

url

data.relation.native.largeImage.href

string

href

data.relation.native.largeImage.originName

string

originName

data.relation.native.largeImage.path

string

path

data.relation.native.largeImage.extension

string

extension

data.relation.native.largeImage.mediaType

string

mediaType

data.relation.native.largeImage.createdAt

string

createdAt

data.relation.native.largeImage.updatedAt

string

updatedAt

data.relation.native.largeImage.deletedAt

string

updatedAt

data.relation.native.largeImage.weight

string

weight

data.relation.native.assetDataDesc

string

Ad text

data.relation.native.assetTitle

string

Ad title

data.relation.native.assetDataSponsored

string

Brand name

data.relation.native.assetCtaText

string

CTA button text

data.relation.native.clickUrl

string

Click URL

data.relation.native.displayUrl

string

Display URL

data.relation.native.impTracker

string

Impression tracker

data.sizes

string

size

6.3.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 12,
        "userId": 25,
        "isActive": 0,
        "approved": "pending",
        "creativeType": "native",
        "name": "Native creative #2",
        "frequencyType": "user",
        "frequency": 0,
        "frequencyCap": 9,
        "frequencyPeriod": 1,
        "bidPrice": "6.08",
        "autoresize": 0,
        "adaptiveCpm": false,
        "size": "309 x 448",
        "weight": "0.00 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:58",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "native": {
                "smallImageId": 13,
                "largeImageId": 14,
                "smallImage": {
                    "id": 13,
                    "folderId": null,
                    "userId": 25,
                    "width": 496,
                    "height": 365,
                    "name": "25_fa8a68201cf3cdad412f55815b2cd8a4.mp4",
                    "url": "http:\/\/www.pollich.com\/commodi-placeat-assumenda-enim-suscipit-adipisci-quas\/25_fa8a68201cf3cdad412f55815b2cd8a4.mp4",
                    "href": null,
                    "originName": "video.mp4",
                    "path": null,
                    "extension": "mp4",
                    "mediaType": "image",
                    "createdAt": "2025-05-13T12:18:58.000000Z",
                    "updatedAt": "2025-05-13T12:18:58.000000Z",
                    "deletedAt": null,
                    "weight": 277418
                },
                "largeImage": {
                    "id": 14,
                    "folderId": null,
                    "userId": 25,
                    "width": 309,
                    "height": 448,
                    "name": "25_fa8a68201cf3cdad412f55815b2cd8a4\/index.html",
                    "url": "http:\/\/www.marks.biz\/nobis-aperiam-suscipit-quo-blanditiis\/25_fa8a68201cf3cdad412f55815b2cd8a4\/index.html",
                    "href": null,
                    "originName": "richmedia.zip",
                    "path": null,
                    "extension": "zip",
                    "mediaType": "image",
                    "createdAt": "2025-05-13T12:18:58.000000Z",
                    "updatedAt": "2025-05-13T12:18:58.000000Z",
                    "deletedAt": null,
                    "weight": 457226
                },
                "assetDataDesc": "Earum autem odio aut et.",
                "assetTitle": "Ab et ut et.",
                "assetDataSponsored": "Aspernatur qui aut eveniet quia.",
                "assetCtaText": "Hic occaecati quis quia.",
                "clickUrl": "http:\/\/wiegand.biz\/illo-eveniet-quis-id-est-distinctio-repellendus",
                "displayUrl": "http:\/\/www.jones.com\/ut-eos-cum-sed-officiis",
                "impTracker": null
            }
        },
        "sizes": []
    }
}

6.4. Get by ID (Video creative)

A `GET` request with a path parameter of the id will return the creative with that id.

6.4.1. HTTP Request

URL

GET api/creatives/13 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJ4M0R2eER6Nk1WZzlHcGZ2Iiwic3ViIjoiMjYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.cmzNg-HQ7rOjaURbBFocLKNCbKjeITenNhdQt8X1Gt4
DATA
{}

6.4.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives/13' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJ4M0R2eER6Nk1WZzlHcGZ2Iiwic3ViIjoiMjYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.cmzNg-HQ7rOjaURbBFocLKNCbKjeITenNhdQt8X1Gt4' \
    -d '{}'

6.4.3. Response Body

Path Type Description

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.media.id

integer

Media Id

data.media.userId

string

User Id

data.media.mediaType

string

Media type (html, image, video)

data.media.originName

string

Uploaded file original name

data.media.name

string

Uploaded file name

data.media.extension

string

Uploaded file extention

data.media.url

string

Uploaded file URL

data.media.width

integer

Uploaded file image width

data.media.height

integer

Uploaded file image height

data.media.weight

integer

Uploaded file size

data.media.modifiedUrl

any

data.relation.video.sizes

string

Player size

data.relation.video.admBody

string

Third-party tag

data.relation.video.mimeType

array

MIME types

data.relation.video.width

integer

Video width

data.relation.video.height

integer

Video height

data.relation.video.duration

integer

Video duration

data.relation.video.clickUrl

string

Click URL

data.relation.video.partyTagFormat

integer

3 party tag format (0-NO VPAID, 1-VPAID 1, 2-VPAID 2, 3-ALL VPAID)

data.relation.video.autoStoreEndCard

boolean

autoStoreEndCard

data.relation.video.autoStoreEndCardOption

string

autoStoreEndCardOption

data.sizes

string

size

6.4.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 13,
        "userId": 26,
        "isActive": 0,
        "approved": "pending",
        "creativeType": "video",
        "name": "Video creative #2",
        "frequencyType": "user",
        "frequency": 0,
        "frequencyCap": 2,
        "frequencyPeriod": 1,
        "bidPrice": "1.61",
        "autoresize": 0,
        "adaptiveCpm": false,
        "size": "294 x 232",
        "weight": "0.24 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:58",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "video": {
                "sizes": "medium",
                "admBody": "    <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<VAST version=\"2.0\">\n<Ad id=\"[HASH]\">\n    <InLine>\n        <AdSystem>DSP<\/AdSystem>\n        <AdTitle>Smartyads<\/AdTitle>\n        <Description>RTB<\/Description>\n        <Creatives>\n            <Creative AdID=\"572\">\n                <Linear>\n                    <Duration>00:00:09<\/Duration>\n                    <VideoClicks>\n                        <ClickThrough><![CDATA[https:\/\/picsum.photos\/]]><\/ClickThrough>\n                    <\/VideoClicks>\n                    <MediaFiles>\n                        <MediaFile delivery=\"streaming\" type=\"video\/quicktime\" width=\"640\" height=\"360\"><![CDATA[http:\/\/72.mp4]]><\/MediaFile>\n                    <\/MediaFiles>\n                <\/Linear>\n            <\/Creative>\n        <\/Creatives>\n    <\/InLine>\n<\/Ad>\n<\/VAST>",
                "mimeType": [
                    "video\/x-ms-wmv"
                ],
                "width": 294,
                "height": 232,
                "duration": 4,
                "clickUrl": "http:\/\/smith.biz\/earum-maiores-consequuntur-harum-non",
                "partyTagFormat": 0,
                "autoStoreEndCard": 0,
                "autoStoreEndCardOption": "appStore"
            }
        },
        "sizes": []
    }
}

6.5. Create a Custom Banner Creative with Third-party tag

A `POST` request will create new creative.

6.5.1. Request Body

Path Type Description Required

name

string

Creative name

+

creativeType

string

Creative type: banner, native, video, audio

+

frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

frequency

boolean

Frequency on/off.

frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

bidPrice

float

CPM

+

banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

banner.width

integer

Banner width

+

banner.height

integer

Banner height

+

banner.admBody

string

Third-party tag

+

categories.IAB1

array

Categories (required if subCategories is empty)

+

subCategories.IAB1

array

SubCategories (required if categories is empty)

+

6.5.2. HTTP Request

URL

POST api/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJ0VnBlTjQyZjY4Y1Y5YWdIIiwic3ViIjoiMjciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.DhpTraAvSZKdJ68DGjrjhKOkbbVHD_T41d-QXDz5SwM
DATA
{
    "name": "Banner creative #3",
    "creativeType": "banner",
    "frequencyType": "user",
    "frequencyCap": 1,
    "frequency": 1,
    "frequencyPeriod": 1,
    "bidPrice": 0.5,
    "banner": {
        "apiFramework": 0,
        "width": 320,
        "height": 200,
        "admBody": "<iframe src=\"url.to.script\"><\/iframe>"
    },
    "categories": {
        "IAB1": true
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    }
}

6.5.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJ0VnBlTjQyZjY4Y1Y5YWdIIiwic3ViIjoiMjciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.DhpTraAvSZKdJ68DGjrjhKOkbbVHD_T41d-QXDz5SwM' \
    -d '{
    "name": "Banner creative #3",
    "creativeType": "banner",
    "frequencyType": "user",
    "frequencyCap": 1,
    "frequency": 1,
    "frequencyPeriod": 1,
    "bidPrice": 0.5,
    "banner": {
        "apiFramework": 0,
        "width": 320,
        "height": 200,
        "admBody": "<iframe src=\"url.to.script\"><\/iframe>"
    },
    "categories": {
        "IAB1": true
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    }
}'

6.5.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.relation.banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

data.relation.banner.admBody

string

Third-party tag

data.relation.banner.bannerType

String

Banner type (banner,inBannerVideo)

data.relation.banner.clickUrl

string

Click URL

data.relation.banner.width

integer

Banner width

data.relation.banner.height

integer

Banner height

data.sizes

string

size

6.5.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Creative created.",
    "data": {
        "id": 14,
        "userId": 27,
        "isActive": null,
        "approved": null,
        "creativeType": "banner",
        "name": "Banner creative #3",
        "frequencyType": "user",
        "frequency": 1,
        "frequencyCap": 1,
        "frequencyPeriod": 1,
        "bidPrice": 0.5,
        "autoresize": null,
        "adaptiveCpm": null,
        "size": "320 x 200",
        "weight": "0.00 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:58",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "banner": {
                "apiFramework": 0,
                "admBody": "<iframe src=\"url.to.script\"><\/iframe>",
                "bannerType": null,
                "clickUrl": null,
                "width": 320,
                "height": 200
            }
        },
        "sizes": []
    }
}

6.6. Create a Custom Banner Creative with Media image

A `POST` request will create new creative.

6.6.1. Request Body

Path Type Description Required

name

string

Creative name

+

creativeType

string

Creative type: banner, native, video, audio

+

mediaId

array

Media image Id

+

frequency

boolean

Frequency on/off.

bidPrice

float

CPM

+

banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

banner.width

integer

Banner width

+

banner.height

integer

Banner height

+

banner.clickUrl

string

Click URL

+

subCategories.IAB1

array

SubCategories (required if categories is empty)

+

categories.IAB1

array

Categories (required if subCategories is empty)

+

6.6.2. HTTP Request

URL

POST api/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiIzUDhJUk1IRDNBS1JFTUhoIiwic3ViIjoiMjgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.yJxnId10xuZHMLnphS3t4xoOJMq0-ciQTrxp4IfiMN8
DATA
{
    "name": "Banner creative #4",
    "creativeType": "banner",
    "mediaId": 16,
    "frequency": 0,
    "bidPrice": 0.5,
    "banner": {
        "apiFramework": 0,
        "width": 320,
        "height": 200,
        "clickUrl": "http:\/\/www.goyette.org\/"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}

6.6.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiIzUDhJUk1IRDNBS1JFTUhoIiwic3ViIjoiMjgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.yJxnId10xuZHMLnphS3t4xoOJMq0-ciQTrxp4IfiMN8' \
    -d '{
    "name": "Banner creative #4",
    "creativeType": "banner",
    "mediaId": 16,
    "frequency": 0,
    "bidPrice": 0.5,
    "banner": {
        "apiFramework": 0,
        "width": 320,
        "height": 200,
        "clickUrl": "http:\/\/www.goyette.org\/"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}'

6.6.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.media.id

integer

Media Id

data.media.userId

string

User Id

data.media.mediaType

string

Media type (html, image, video)

data.media.originName

string

Uploaded file original name

data.media.name

string

Uploaded file name

data.media.extension

string

Uploaded file extention

data.media.url

string

Uploaded file URL

data.media.width

integer

Uploaded file image width

data.media.height

integer

Uploaded file image height

data.media.weight

integer

Uploaded file size

data.media.modifiedUrl

any

data.relation.banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

data.relation.banner.admBody

string

Third-party tag

data.relation.banner.bannerType

String

Banner type (banner,inBannerVideo)

data.relation.banner.clickUrl

string

Click URL

data.relation.banner.width

integer

Banner width

data.relation.banner.height

integer

Banner height

data.sizes

string

size

6.6.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Creative created.",
    "data": {
        "id": 15,
        "userId": 28,
        "isActive": null,
        "approved": null,
        "creativeType": "banner",
        "name": "Banner creative #4",
        "frequencyType": null,
        "frequency": 0,
        "frequencyCap": null,
        "frequencyPeriod": null,
        "bidPrice": 0.5,
        "autoresize": null,
        "adaptiveCpm": null,
        "size": "241 x 321",
        "weight": "0.28 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:58",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "banner": {
                "apiFramework": 0,
                "admBody": "<a target=\"_blank\" href=\"https:\/\/www.goyette.org\/\" ><img src=\"http:\/\/www.tromp.biz\/minus-id-praesentium-iste-neque\/28_fa8a68201cf3cdad412f55815b2cd8a4.mp4\" crossorigin=\"anonymous\"\/><\/a>",
                "bannerType": null,
                "clickUrl": "https:\/\/www.goyette.org\/",
                "width": 241,
                "height": 321
            }
        },
        "sizes": []
    }
}

6.7. Create a Custom Banner Creative with Rich Media Html

A `POST` request will create new creative.

6.7.1. Request Body

Path Type Description Required

name

string

Creative name

+

creativeType

string

Creative type: banner, native, video, audio

+

mediaId

array

HTML Media Id

+

frequency

boolean

Frequency on/off.

bidPrice

float

CPM

+

banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

banner.width

integer

Banner width

+

banner.height

integer

Banner height

+

subCategories.IAB1

array

SubCategories (required if categories is empty)

+

categories.IAB1

array

Categories (required if subCategories is empty)

+

6.7.2. HTTP Request

URL

POST api/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiI0OEtpQmZuc0U4NmxyNzRrIiwic3ViIjoiMjkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.MY-ThwZ76kcmMc67ITiTMJRvQ-_5bRF6VM9TSdqzSo0
DATA
{
    "name": "Banner creative #5",
    "creativeType": "banner",
    "mediaId": 17,
    "frequency": 0,
    "bidPrice": 0.5,
    "banner": {
        "apiFramework": 3,
        "width": 320,
        "height": 200
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}

6.7.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiI0OEtpQmZuc0U4NmxyNzRrIiwic3ViIjoiMjkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.MY-ThwZ76kcmMc67ITiTMJRvQ-_5bRF6VM9TSdqzSo0' \
    -d '{
    "name": "Banner creative #5",
    "creativeType": "banner",
    "mediaId": 17,
    "frequency": 0,
    "bidPrice": 0.5,
    "banner": {
        "apiFramework": 3,
        "width": 320,
        "height": 200
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}'

6.7.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.media.id

integer

Media Id

data.media.userId

string

User Id

data.media.mediaType

string

Media type (html, image, video)

data.media.originName

string

Uploaded file original name

data.media.name

string

Uploaded file name

data.media.extension

string

Uploaded file extention

data.media.url

string

Uploaded file URL

data.media.width

integer

Uploaded file image width

data.media.height

integer

Uploaded file image height

data.media.weight

integer

Uploaded file size

data.media.modifiedUrl

any

data.relation.banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

data.relation.banner.admBody

string

Third-party tag

data.relation.banner.bannerType

String

Banner type (banner,inBannerVideo)

data.relation.banner.clickUrl

string

Click URL

data.relation.banner.width

integer

Banner width

data.relation.banner.height

integer

Banner height

data.sizes

string

size

6.7.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Creative created.",
    "data": {
        "id": 16,
        "userId": 29,
        "isActive": null,
        "approved": null,
        "creativeType": "banner",
        "name": "Banner creative #5",
        "frequencyType": null,
        "frequency": 0,
        "frequencyCap": null,
        "frequencyPeriod": null,
        "bidPrice": 0.5,
        "autoresize": null,
        "adaptiveCpm": null,
        "size": "320 x 200",
        "weight": "0.28 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:58",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "banner": {
                "apiFramework": 3,
                "admBody": "<iframe src=\"http:\/\/www.mueller.com\/culpa-id-itaque-dolorem-et-impedit-quod-provident\/29_fa8a68201cf3cdad412f55815b2cd8a4.jpg\"><\/iframe>",
                "bannerType": null,
                "clickUrl": null,
                "width": 320,
                "height": 200
            }
        },
        "sizes": []
    }
}

6.8. Create a Custom Native Creative

A `POST` request will create new creative.

6.8.1. Request Body

Path Type Description Required

name

string

Creative name

+

creativeType

string

Creative type: banner, native, video, audio

+

frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

frequency

boolean

Frequency on/off.

bidPrice

float

CPM

+

folderId

string

Folder Id

native.smallImageId

integer

Logo media id

native.largeImageId

integer

Image media id

+

native.assetDataDesc

string

Ad text

native.assetTitle

string

Ad title

native.assetDataSponsored

string

Brand name

native.assetCtaText

string

CTA button text

native.clickUrl

string

Click URL

+

native.displayUrl

string

Display URL

subCategories.IAB1

array

SubCategories (required if categories is empty)

+

categories.IAB1

array

Categories (required if subCategories is empty)

+

6.8.2. HTTP Request

URL

POST api/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJHaEtZc3dINWh0RzIxQ1YyIiwic3ViIjoiMzAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.3RbQ2XqRyAx-EvEeSTkCJfWLxpiWC_9UrJBpkic934Y
DATA
{
    "name": "Native creative #3",
    "creativeType": "native",
    "frequencyType": "user",
    "frequencyCap": 1,
    "frequencyPeriod": 1,
    "frequency": 1,
    "bidPrice": 0.5,
    "folderId": null,
    "native": {
        "smallImageId": 18,
        "largeImageId": 18,
        "assetDataDesc": "Dolor inventore.",
        "assetTitle": "Ut.",
        "assetDataSponsored": "Facilis aut sit ut.",
        "assetCtaText": "Dolorem.",
        "clickUrl": "http:\/\/www.gleichner.biz\/laudantium-corrupti-sapiente-autem-qui-et-earum",
        "displayUrl": "http:\/\/larson.net\/"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}

6.8.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJHaEtZc3dINWh0RzIxQ1YyIiwic3ViIjoiMzAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.3RbQ2XqRyAx-EvEeSTkCJfWLxpiWC_9UrJBpkic934Y' \
    -d '{
    "name": "Native creative #3",
    "creativeType": "native",
    "frequencyType": "user",
    "frequencyCap": 1,
    "frequencyPeriod": 1,
    "frequency": 1,
    "bidPrice": 0.5,
    "folderId": null,
    "native": {
        "smallImageId": 18,
        "largeImageId": 18,
        "assetDataDesc": "Dolor inventore.",
        "assetTitle": "Ut.",
        "assetDataSponsored": "Facilis aut sit ut.",
        "assetCtaText": "Dolorem.",
        "clickUrl": "http:\/\/www.gleichner.biz\/laudantium-corrupti-sapiente-autem-qui-et-earum",
        "displayUrl": "http:\/\/larson.net\/"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}'

6.8.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.media.id

integer

Media Id

data.media.userId

string

User Id

data.media.mediaType

string

Media type (html, image, video)

data.media.originName

string

Uploaded file original name

data.media.name

string

Uploaded file name

data.media.extension

string

Uploaded file extention

data.media.url

string

Uploaded file URL

data.media.width

integer

Uploaded file image width

data.media.height

integer

Uploaded file image height

data.media.weight

integer

Uploaded file size

data.media.modifiedUrl

any

data.relation.native.smallImageId

integer

Logo media id

data.relation.native.largeImageId

integer

Image media id

data.relation.native.smallImage.id

integer

Logo media id

data.relation.native.smallImage.folderId

string

Folder id

data.relation.native.smallImage.userId

integer

User id

data.relation.native.smallImage.width

string

width

data.relation.native.smallImage.height

string

height

data.relation.native.smallImage.name

string

name

data.relation.native.smallImage.url

string

url

data.relation.native.smallImage.href

string

href

data.relation.native.smallImage.originName

string

originName

data.relation.native.smallImage.path

string

path

data.relation.native.smallImage.extension

string

extension

data.relation.native.smallImage.mediaType

string

mediaType

data.relation.native.smallImage.createdAt

string

createdAt

data.relation.native.smallImage.updatedAt

string

updatedAt

data.relation.native.smallImage.deletedAt

string

updatedAt

data.relation.native.smallImage.weight

string

weight

data.relation.native.largeImage.id

integer

Image media id

data.relation.native.largeImage.folderId

string

Folder id

data.relation.native.largeImage.userId

integer

User id

data.relation.native.largeImage.width

string

width

data.relation.native.largeImage.height

string

height

data.relation.native.largeImage.name

string

name

data.relation.native.largeImage.url

string

url

data.relation.native.largeImage.href

string

href

data.relation.native.largeImage.originName

string

originName

data.relation.native.largeImage.path

string

path

data.relation.native.largeImage.extension

string

extension

data.relation.native.largeImage.mediaType

string

mediaType

data.relation.native.largeImage.createdAt

string

createdAt

data.relation.native.largeImage.updatedAt

string

updatedAt

data.relation.native.largeImage.deletedAt

string

updatedAt

data.relation.native.largeImage.weight

string

weight

data.relation.native.assetDataDesc

string

Ad text

data.relation.native.assetTitle

string

Ad title

data.relation.native.assetDataSponsored

string

Brand name

data.relation.native.assetCtaText

string

CTA button text

data.relation.native.clickUrl

string

Click URL

data.relation.native.displayUrl

string

Display URL

data.relation.native.impTracker

string

Impression tracker

data.sizes

string

size

6.8.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Creative created.",
    "data": {
        "id": 17,
        "userId": 30,
        "isActive": null,
        "approved": null,
        "creativeType": "native",
        "name": "Native creative #3",
        "frequencyType": "user",
        "frequency": 1,
        "frequencyCap": 1,
        "frequencyPeriod": 1,
        "bidPrice": 0.5,
        "autoresize": null,
        "adaptiveCpm": null,
        "size": "376 x 275",
        "weight": "0.00 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:59",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "native": {
                "smallImageId": 18,
                "largeImageId": 18,
                "smallImage": {
                    "id": 18,
                    "folderId": null,
                    "userId": 30,
                    "width": 376,
                    "height": 275,
                    "name": "30_fa8a68201cf3cdad412f55815b2cd8a4\/index.html",
                    "url": "http:\/\/hirthe.com\/eos-voluptas-est-nemo-quo-voluptates-omnis.html\/30_fa8a68201cf3cdad412f55815b2cd8a4\/index.html",
                    "href": null,
                    "originName": "richmedia.zip",
                    "path": null,
                    "extension": "zip",
                    "mediaType": "image",
                    "createdAt": "2025-05-13T12:18:58.000000Z",
                    "updatedAt": "2025-05-13T12:18:58.000000Z",
                    "deletedAt": null,
                    "weight": 128239
                },
                "largeImage": {
                    "id": 18,
                    "folderId": null,
                    "userId": 30,
                    "width": 376,
                    "height": 275,
                    "name": "30_fa8a68201cf3cdad412f55815b2cd8a4\/index.html",
                    "url": "http:\/\/hirthe.com\/eos-voluptas-est-nemo-quo-voluptates-omnis.html\/30_fa8a68201cf3cdad412f55815b2cd8a4\/index.html",
                    "href": null,
                    "originName": "richmedia.zip",
                    "path": null,
                    "extension": "zip",
                    "mediaType": "image",
                    "createdAt": "2025-05-13T12:18:58.000000Z",
                    "updatedAt": "2025-05-13T12:18:58.000000Z",
                    "deletedAt": null,
                    "weight": 128239
                },
                "assetDataDesc": "Dolor inventore.",
                "assetTitle": "Ut.",
                "assetDataSponsored": "Facilis aut sit ut.",
                "assetCtaText": "Dolorem.",
                "clickUrl": "http:\/\/www.gleichner.biz\/laudantium-corrupti-sapiente-autem-qui-et-earum",
                "displayUrl": "http:\/\/larson.net\/",
                "impTracker": null
            }
        },
        "sizes": []
    }
}

6.9. Create a Custom Video Creative with Third-party tag

A `POST` request will create new creative.

6.9.1. Request Body

Path Type Description Required

name

string

Creative name

+

creativeType

string

Creative type: banner, native, video, audio

+

frequency

boolean

Frequency on/off.

bidPrice

float

CPM

+

video.sizes

string

Player size

+

video.mimeType

array

MIME types

+

video.admBody

string

Third-party tag

+

subCategories.IAB1

array

SubCategories (required if categories is empty)

+

categories.IAB1

array

Categories (required if subCategories is empty)

+

6.9.2. HTTP Request

URL

POST api/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzksImV4cCI6MTc0NzE0MjMzOSwibmJmIjoxNzQ3MTM4NzM5LCJqdGkiOiJyMzJPMW1vcFhQVXA4T0JtIiwic3ViIjoiMzEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.WTHGgtzcmS0Qz4Jc2RPOVQFRec70FpSbcXH_7kJSjdk
DATA
{
    "name": "Video creative #3",
    "creativeType": "video",
    "frequency": 0,
    "bidPrice": 100,
    "video": {
        "sizes": "small",
        "mimeType": [
            "video\/mp4"
        ],
        "admBody": "<iframe src=\"url.to.script\"><\/iframe>"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}

6.9.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzksImV4cCI6MTc0NzE0MjMzOSwibmJmIjoxNzQ3MTM4NzM5LCJqdGkiOiJyMzJPMW1vcFhQVXA4T0JtIiwic3ViIjoiMzEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.WTHGgtzcmS0Qz4Jc2RPOVQFRec70FpSbcXH_7kJSjdk' \
    -d '{
    "name": "Video creative #3",
    "creativeType": "video",
    "frequency": 0,
    "bidPrice": 100,
    "video": {
        "sizes": "small",
        "mimeType": [
            "video\/mp4"
        ],
        "admBody": "<iframe src=\"url.to.script\"><\/iframe>"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}'

6.9.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.relation.video.sizes

string

Player size

data.relation.video.admBody

string

Third-party tag

data.relation.video.mimeType

array

MIME types

data.relation.video.width

integer

Video width

data.relation.video.height

integer

Video height

data.relation.video.duration

integer

Video duration

data.relation.video.clickUrl

string

Click URL

data.relation.video.partyTagFormat

integer

3 party tag format (0-NO VPAID, 1-VPAID 1, 2-VPAID 2, 3-ALL VPAID)

data.relation.video.autoStoreEndCard

boolean

autoStoreEndCard

data.relation.video.autoStoreEndCardOption

string

autoStoreEndCardOption

data.sizes

string

size

6.9.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Creative created.",
    "data": {
        "id": 18,
        "userId": 31,
        "isActive": null,
        "approved": null,
        "creativeType": "video",
        "name": "Video creative #3",
        "frequencyType": null,
        "frequency": 0,
        "frequencyCap": null,
        "frequencyPeriod": null,
        "bidPrice": 100,
        "autoresize": null,
        "adaptiveCpm": null,
        "size": "0 x 0",
        "weight": "0.00 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:18:59",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "video": {
                "sizes": "small",
                "admBody": "<iframe src=\"url.to.script\"><\/iframe>",
                "mimeType": [
                    "video\/mp4"
                ],
                "width": 0,
                "height": 0,
                "duration": 0,
                "clickUrl": "",
                "partyTagFormat": null,
                "autoStoreEndCard": null,
                "autoStoreEndCardOption": null
            }
        },
        "sizes": []
    }
}

6.10. Create a Custom Video Creative with Media image

A `POST` request will create new creative.

6.10.1. Request Body

Path Type Description Required

name

string

Creative name

+

creativeType

string

Creative type: banner, native, video, audio

+

frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

frequency

boolean

Frequency on/off.

mediaId

array

Media video Id

+

bidPrice

float

CPM

+

video.clickUrl

string

Click URL

+

subCategories.IAB1

array

SubCategories (required if categories is empty)

+

categories.IAB1

array

Categories (required if subCategories is empty)

+

6.10.2. HTTP Request

URL

POST api/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzksImV4cCI6MTc0NzE0MjMzOSwibmJmIjoxNzQ3MTM4NzM5LCJqdGkiOiJYQWFjRjVBRlJYMGptd2NnIiwic3ViIjoiMzIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.ULvCyX__IAiVpqZTr7GqTMnrlN579JjDevlWncvMI64
DATA
{
    "name": "Video creative #4",
    "creativeType": "video",
    "frequencyType": "user",
    "frequencyCap": 1,
    "frequencyPeriod": 1,
    "frequency": 1,
    "mediaId": 19,
    "bidPrice": 100,
    "video": {
        "clickUrl": "http:\/\/www.runolfsson.com\/dolor-non-ut-ipsum-velit"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}

6.10.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzksImV4cCI6MTc0NzE0MjMzOSwibmJmIjoxNzQ3MTM4NzM5LCJqdGkiOiJYQWFjRjVBRlJYMGptd2NnIiwic3ViIjoiMzIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.ULvCyX__IAiVpqZTr7GqTMnrlN579JjDevlWncvMI64' \
    -d '{
    "name": "Video creative #4",
    "creativeType": "video",
    "frequencyType": "user",
    "frequencyCap": 1,
    "frequencyPeriod": 1,
    "frequency": 1,
    "mediaId": 19,
    "bidPrice": 100,
    "video": {
        "clickUrl": "http:\/\/www.runolfsson.com\/dolor-non-ut-ipsum-velit"
    },
    "subCategories": {
        "IAB1": [
            "IAB1-1"
        ]
    },
    "categories": {
        "IAB1": true
    }
}'

6.10.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.media.id

integer

Media Id

data.media.userId

string

User Id

data.media.mediaType

string

Media type (html, image, video)

data.media.originName

string

Uploaded file original name

data.media.name

string

Uploaded file name

data.media.extension

string

Uploaded file extention

data.media.url

string

Uploaded file URL

data.media.width

integer

Uploaded file image width

data.media.height

integer

Uploaded file image height

data.media.weight

integer

Uploaded file size

data.media.modifiedUrl

any

data.relation.video.sizes

string

Player size

data.relation.video.admBody

string

Third-party tag

data.relation.video.mimeType

array

MIME types

data.relation.video.width

integer

Video width

data.relation.video.height

integer

Video height

data.relation.video.duration

integer

Video duration

data.relation.video.clickUrl

string

Click URL

data.relation.video.partyTagFormat

integer

3 party tag format (0-NO VPAID, 1-VPAID 1, 2-VPAID 2, 3-ALL VPAID)

data.relation.video.autoStoreEndCard

boolean

autoStoreEndCard

data.relation.video.autoStoreEndCardOption

string

autoStoreEndCardOption

data.sizes

string

size

6.10.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Creative created.",
    "data": {
        "id": 19,
        "userId": 32,
        "isActive": null,
        "approved": null,
        "creativeType": "video",
        "name": "Video creative #4",
        "frequencyType": "user",
        "frequency": 1,
        "frequencyCap": 1,
        "frequencyPeriod": 1,
        "bidPrice": 100,
        "autoresize": null,
        "adaptiveCpm": null,
        "size": "267 x 293",
        "weight": "0.19 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:19:00",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "video": {
                "sizes": "small",
                "admBody": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<VAST version=\"2.0\">\n<Ad id=\"[HASH]\">\n    <InLine>\n        <AdSystem>DSP<\/AdSystem>\n        <AdTitle>Smartyads<\/AdTitle>\n        <Description>RTB<\/Description>\n        <Creatives>\n            <Creative AdID=\"19\">\n                <Linear>\n                    <Duration>00:00:09<\/Duration>\n                    <VideoClicks>\n                        <ClickThrough><![CDATA[https:\/\/www.runolfsson.com\/dolor-non-ut-ipsum-velit]]><\/ClickThrough>\n                    <\/VideoClicks>\n                    <MediaFiles>\n                        <MediaFile delivery=\"\" type=\"video\/mp4\" width=\"267\" height=\"293\"><![CDATA[http:\/\/www.kulas.com\/debitis-veniam-voluptatem-dolorem-voluptas-qui-magni.html\/32_a4ba141bf23cb01737cad0bef5b41d62.jpg]]><\/MediaFile>\n                    <\/MediaFiles>\n                <\/Linear>\n            <\/Creative>\n        <\/Creatives>\n    <\/InLine>\n<\/Ad>\n<\/VAST>",
                "mimeType": [
                    "video\/mp4"
                ],
                "width": 267,
                "height": 293,
                "duration": 9,
                "clickUrl": "https:\/\/www.runolfsson.com\/dolor-non-ut-ipsum-velit",
                "partyTagFormat": null,
                "autoStoreEndCard": null,
                "autoStoreEndCardOption": null
            }
        },
        "sizes": []
    }
}

6.11. Update a Custom Creative

A `PATCH` request will update creative.

6.11.1. Request Body

Path Type Description Required

isActive

boolean

Creative status

6.11.2. HTTP Request

URL

PUT api/creatives/20 HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiIzOVhKZmdYS3NDU1lDQndJIiwic3ViIjoiMzMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.U-DupF2z2DnktzFf6YM5Ry4R9lvSa-PtnGEkrC-5Hjo
DATA
{
    "isActive": true
}

6.11.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives/20' -i -X PUT \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiIzOVhKZmdYS3NDU1lDQndJIiwic3ViIjoiMzMiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.U-DupF2z2DnktzFf6YM5Ry4R9lvSa-PtnGEkrC-5Hjo' \
    -d '{
    "isActive": true
}'

6.11.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

Creative Id

data.userId

integer

User Id

data.isActive

boolean

Creative status

data.approved

string

Creative approval status (approved, pending, disapproved)

data.creativeType

string

Creative type: banner, native, video, audio

data.name

string

Creative name

data.frequencyType

string

Frequency Type (user, ip).Required if frequency is on.

data.frequency

boolean

Frequency on/off.

data.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period".Required if frequency is on.

data.frequencyPeriod

integer

Frequency Period (min-1,max-3). Required if frequency is on.

data.bidPrice

float

CPM

data.autoresize

boolean

autoresize

data.adaptiveCpm

bool

adaptiveCpm

data.size

string

Image width and height

data.weight

string

File size

data.folderId

string

Folder Id

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.pendingAt

datetime

Date of pending start

data.deletedAt

datetime

Date of deletion

data.relation.banner.apiFramework

integer

Rich Media: 0-NO MRAID, 3-MRAID1, 5-MRAID2, 6-MRAID3, 10-ALL MRAID

data.relation.banner.admBody

string

Third-party tag

data.relation.banner.bannerType

String

Banner type (banner,inBannerVideo)

data.relation.banner.clickUrl

string

Click URL

data.relation.banner.width

integer

Banner width

data.relation.banner.height

integer

Banner height

data.sizes

string

size

6.11.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Creative updated.",
    "data": {
        "id": 20,
        "userId": 33,
        "isActive": true,
        "approved": "pending",
        "creativeType": "banner",
        "name": "explicabo voluptatibus",
        "frequencyType": "ip",
        "frequency": 0,
        "frequencyCap": 5,
        "frequencyPeriod": 1,
        "bidPrice": "12.24",
        "autoresize": 0,
        "adaptiveCpm": false,
        "size": " x ",
        "weight": "0.00 MB",
        "folderId": null,
        "createdAt": "2025-05-13 00:00:00",
        "updatedAt": "2025-05-13 12:19:00",
        "pendingAt": null,
        "deletedAt": null,
        "relation": {
            "banner": {
                "apiFramework": null,
                "admBody": null,
                "bannerType": null,
                "clickUrl": null,
                "width": null,
                "height": null
            }
        },
        "sizes": []
    }
}

6.12. Delete a Custom Creative

A `DELETE` request will delete creative.

6.12.1. HTTP Request

URL

DELETE api/creatives/21 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJrMEZTT2VKRXIxMGFvQkpMIiwic3ViIjoiMzQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.t4D0BgZF0oKexMQZOx2Y2ItXpxfzJFEhpyU3tsqrBaM
Content-type: application/x-www-form-urlencoded
DATA
{}

6.12.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/creatives/21' -i -X DELETE \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJrMEZTT2VKRXIxMGFvQkpMIiwic3ViIjoiMzQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.t4D0BgZF0oKexMQZOx2Y2ItXpxfzJFEhpyU3tsqrBaM' \
                -H 'Content-type: application/x-www-form-urlencoded' \
    -d '{}'

6.12.3. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{}

7. Assign Creatives to Campaigns

7.1. Get list of Creatives assigned to Campaign

A `GET` request with Campaign Id in url will get list of Creatives assigned to Campaign

7.1.1. HTTP Request

URL

GET api/campaigns/12/creatives HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJiQ0JFa3JOblpKbXN1RzlYIiwic3ViIjoiMTciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.VpE-XeiJ_WCnpi-Lj77s3VjMQErttLqBWxyBYQi4UWU
DATA
{}

7.1.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/12/creatives' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJiQ0JFa3JOblpKbXN1RzlYIiwic3ViIjoiMTciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.VpE-XeiJ_WCnpi-Lj77s3VjMQErttLqBWxyBYQi4UWU' \
    -d '{}'

7.1.3. Response Body

Path Type Description

data.*.id

integer

Creative Id

data.*.userId

integer

User Id

data.*.isActive

boolean

Creative status

data.*.approved

string

Creative approval status (approved, pending, disapproved)

data.*.creativeType

string

Creative type: banner, native, video, audio

data.*.name

string

Creative name

data.*.frequencyType

string

Identify the user to limit the number of the ad shows for the specific user (user, ip). Required if frequency is on.

data.*.frequency

string

Frequency on/off

data.*.frequencyCap

integer

Show ads no more than "Frequency Cap" times in "Frequency Period". Required if frequency is on.

data.*.frequencyPeriod

integer

Frequency period in days (min-1,max-3). Required if frequency is on.

data.*.bidPrice

float

CPM

data.*.autoresize

boolean

autoresize

data.*.adaptiveCpm

bool

adaptiveCpm

data.*.size

string

Image width and height

data.*.weight

string

File size

data.*.folderId

string

Folder Id

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

data.*.pendingAt

datetime

Date of pending start

data.*.deletedAt

datetime

Date of deletion

data.*.status

string

Status

meta.pagination.total

integer

Pagination: total items count

meta.pagination.count

integer

Pagination: page items count

meta.pagination.per_page

integer

Pagination: items per page

meta.pagination.current_page

integer

Pagination: current page number

meta.pagination.total_pages

integer

Pagination: total pages count

meta.pagination.links

object

Pagination links

7.1.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": [
        {
            "id": 1,
            "userId": 17,
            "isActive": 1,
            "approved": "pending",
            "creativeType": "banner",
            "name": "Test Creative #1",
            "frequencyType": "user",
            "frequency": 0,
            "frequencyCap": 8,
            "frequencyPeriod": 1,
            "bidPrice": "10.77",
            "autoresize": 0,
            "adaptiveCpm": false,
            "size": "385 x 343",
            "weight": "0.46 MB",
            "folderId": null,
            "createdAt": "2025-05-13 00:00:00",
            "updatedAt": "2025-05-13 12:18:57",
            "pendingAt": null,
            "deletedAt": null,
            "media": {
                "id": 1,
                "userId": 17,
                "mediaType": "image",
                "originName": "richmedia.zip",
                "name": "17_77f57f03a818c7df97078381708e9940\/index.html",
                "extension": "zip",
                "url": "https:\/\/www.okeefe.com\/debitis-consectetur-omnis-repellat\/17_77f57f03a818c7df97078381708e9940\/index.html",
                "width": 318,
                "height": 440,
                "weight": 481490
            },
            "relation": {
                "banner": {
                    "apiFramework": 0,
                    "admBody": "<a target=\"_blank\" href=\"http:\/\/marquardt.biz\/magnam-commodi-at-similique-eligendi.html\" ><img src=\"https:\/\/www.okuneva.biz\/sit-reiciendis-enim-dolorem-totam-architecto-sed\/10.jpg\"\/><\/a>",
                    "bannerType": "banner",
                    "clickUrl": "http:\/\/johnson.com\/enim-quia-ipsa-eos-maxime",
                    "width": 385,
                    "height": 343,
                    "childrenCreative": null,
                    "statusChildrenCreative": [],
                    "main": 1
                }
            },
            "status": ""
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 1000,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

7.2. Replace Creatives assigned to Campaign

A `POST` request with Campaign Id in url will replace Creatives assigned to Campaign

7.2.1. Request Body

Path Type Description Required

ids

array

array of Creative ids

+

7.2.2. HTTP Request

URL

POST api/campaigns/13/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJvM0dUT283bVdEdUVFOWNCIiwic3ViIjoiMTgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.c6JrawshbFxJpXBJJZ56h2xgNLxOQ7xHhfvq1M4dOIE
DATA
{
    "ids": [
        2,
        3
    ]
}

7.2.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/13/creatives' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJvM0dUT283bVdEdUVFOWNCIiwic3ViIjoiMTgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.c6JrawshbFxJpXBJJZ56h2xgNLxOQ7xHhfvq1M4dOIE' \
    -d '{
    "ids": [
        2,
        3
    ]
}'

7.2.4. Response Body

Path Type Description

message

string

Result message

7.2.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Replaced."
}

7.3. Append Creatives assigned to Campaign

A `PATCH` request with Campaign Id in url will append Creatives assigned to Campaign

7.3.1. Request Body

Path Type Description Required

ids

array

array of Creative ids

+

7.3.2. HTTP Request

URL

PATCH api/campaigns/14/creatives HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJOeU5GakdiN280WDRGbU9TIiwic3ViIjoiMTkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.GqPhjYtaO34AUuJCiHdn1lrtHbd2-1SA-8JsSH35F-k
DATA
{
    "ids": [
        5
    ]
}

7.3.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/14/creatives' -i -X PATCH \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJOeU5GakdiN280WDRGbU9TIiwic3ViIjoiMTkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.GqPhjYtaO34AUuJCiHdn1lrtHbd2-1SA-8JsSH35F-k' \
    -d '{
    "ids": [
        5
    ]
}'

7.3.4. Response Body

Path Type Description

message

string

Result message

7.3.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Appended."
}

7.4. Remove Creatives assigned to Campaign

A `DELETE` request with Campaign Id in url will remove Creatives assigned to Campaign

7.4.1. Request Body

Path Type Description Required

ids

array

array of Creative ids

+

7.4.2. HTTP Request

URL

DELETE api/campaigns/15/creatives HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiIyNUdVcHpTUzZZV1prT1JBIiwic3ViIjoiMjAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.pduC0tcBvckT6kH9CHaWqhc3S_uIRwJOO06L3YKjGjg
Content-type: application/x-www-form-urlencoded
DATA
{
    "ids": [
        7
    ]
}

7.4.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/15/creatives' -i -X DELETE \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiIyNUdVcHpTUzZZV1prT1JBIiwic3ViIjoiMjAiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.pduC0tcBvckT6kH9CHaWqhc3S_uIRwJOO06L3YKjGjg' \
                -H 'Content-type: application/x-www-form-urlencoded' \
    -d '{
    "ids": [
        7
    ]
}'

7.4.4. Response Body

Path Type Description

message

string

Result message

deleted

boolean

Deleting result

7.4.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Deleted.",
    "deleted": true
}

8. Filterlists

8.1. Filter lists

A `GET` request will return a filter lists

8.1.1. HTTP Request

URL

GET api/filterlist HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJqRGZHTmlvRzZubW9UVUpLIiwic3ViIjoiMzUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.VUJcTJ_ZUeaSWQ_WDNrYajGIbOpxhj0ZwZY9FTZ33Ng
DATA
{}

8.1.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/filterlist' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJqRGZHTmlvRzZubW9UVUpLIiwic3ViIjoiMzUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.VUJcTJ_ZUeaSWQ_WDNrYajGIbOpxhj0ZwZY9FTZ33Ng' \
    -d '{}'

8.1.3. Response Body

Path Type Description

data.*.id

integer

List Id

data.*.isActive

bool

on/off

data.*.userId

integer

User Id

data.*.title

string

List title

data.*.type

string

Filter list type: listDomains, listApps, listBundles, listDeviceIfas, listPublishers, listIpAdresses, listSiteAndAppIds, listUrls, listTags

data.*.isInclude

boolean

White/Black list

data.*.count

integer

Object count

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

meta.pagination.total

integer

Pagination: total items count

meta.pagination.count

integer

Pagination: page items count

meta.pagination.per_page

integer

Pagination: items per page

meta.pagination.current_page

integer

Pagination: current page number

meta.pagination.total_pages

integer

Pagination: total pages count

meta.pagination.links

array

Pagination: array links

8.1.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": [
        {
            "id": 6,
            "isActive": 0,
            "userId": 35,
            "title": "Test Filter list #1",
            "type": "domain",
            "isInclude": "White",
            "count": 1,
            "createdAt": "2025-05-13",
            "updatedAt": "2025-05-13"
        },
        {
            "id": 7,
            "isActive": 0,
            "userId": 35,
            "title": "Test Filter list #2",
            "type": "ipAdresses",
            "isInclude": "White",
            "count": 2,
            "createdAt": "2025-05-13",
            "updatedAt": "2025-05-13"
        },
        {
            "id": 8,
            "isActive": 0,
            "userId": 35,
            "title": "Test Filter list #3",
            "type": "urls",
            "isInclude": "White",
            "count": 3,
            "createdAt": "2025-05-13",
            "updatedAt": "2025-05-13"
        }
    ],
    "meta": {
        "pagination": {
            "total": 3,
            "count": 3,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

8.2. Get filter lists by ID

A `GET` request will return a filter list  by ID

8.2.1. HTTP Request

URL

GET api/filterlist/9 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJRT3ByRTZXeWp2bGdocTMwIiwic3ViIjoiMzYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.z2jDD-LpotrJIbDfI89LtOw6i0JzC0PMZL8ZwRCLXI8
DATA
{}

8.2.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/filterlist/9' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJRT3ByRTZXeWp2bGdocTMwIiwic3ViIjoiMzYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.z2jDD-LpotrJIbDfI89LtOw6i0JzC0PMZL8ZwRCLXI8' \
    -d '{}'

8.2.3. Response Body

Path Type Description

data.id

integer

List Id

data.userId

integer

User Id

data.isActive

bool

on/off

data.title

string

List title

data.type

string

Filter list type: listDomains, listApps, listBundles, listDeviceIfas, listPublishers, listIpAdresses, listSiteAndAppIds, listUrls, listTags

data.isInclude

boolean

White/Black list

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.items

array

items

data.listCount

integer

listCount

8.2.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 9,
        "userId": 36,
        "isActive": 0,
        "title": "Test Filter list #4",
        "type": "domain",
        "isInclude": true,
        "createdAt": "2025-05-13",
        "updatedAt": "2025-05-13",
        "items": [
            "cole.org",
            "hilpert.com",
            "klein.org",
            "padberg.com",
            "wyman.com"
        ],
        "listCount": 5
    }
}

8.3. Create a filter lists

A `POST` request will set new filter list

8.3.1. Request Body

Path Type Description Required

title

string

List title

+

type

string

Filter list type: domain, apps, bundles, deviceIfas, publishers, ipAdresses, siteAndAppsIds, urls, tagIds

+

isInclude

bool

white/black

+

items

array

List array items (can be empty if there fileName)

fileName

string

null

File name from upload file - Store filter list

8.3.2. HTTP Request

URL

POST api/filterlist HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJHR2FJUjA2T1dwd2hWdmFvIiwic3ViIjoiMzciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.bng_U7Ujv-KH3dUHYYMDEl8eZszDRwDk0rGgbZMx3eE
DATA
{
    "title": "Test Filter list #5",
    "type": "ipAdresses",
    "isInclude": true,
    "items": [
        "252.102.33.236",
        "21.163.187.168",
        "142.18.181.64",
        "196.12.55.14",
        "132.37.159.125"
    ],
    "fileName": null
}

8.3.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/filterlist' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJHR2FJUjA2T1dwd2hWdmFvIiwic3ViIjoiMzciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.bng_U7Ujv-KH3dUHYYMDEl8eZszDRwDk0rGgbZMx3eE' \
    -d '{
    "title": "Test Filter list #5",
    "type": "ipAdresses",
    "isInclude": true,
    "items": [
        "252.102.33.236",
        "21.163.187.168",
        "142.18.181.64",
        "196.12.55.14",
        "132.37.159.125"
    ],
    "fileName": null
}'

8.3.4. Response Body

Path Type Description

message

string

message

data.id

integer

List Id

data.userId

integer

User Id

data.isActive

bool

on/off

data.title

string

List title

data.type

string

Filter list type: listDomains, listApps, listBundles, listDeviceIfas, listPublishers, listIpAdresses, listSiteAndAppIds, listUrls, listTags

data.isInclude

boolean

White (1)/Black list(0)

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.items

array

List array items (can be empty if there fileName)

data.listCount

integer

list count

8.3.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "FilterList created.",
    "data": {
        "id": 10,
        "userId": 37,
        "isActive": null,
        "title": "Test Filter list #5",
        "type": "ipAdresses",
        "isInclude": true,
        "createdAt": "2025-05-13",
        "updatedAt": "2025-05-13",
        "items": [],
        "listCount": 0
    }
}

8.4. Filter lists update

A `PATCH` request will update filter lists

8.4.1. Request Body

Path Type Description Required

title

string

List title

isInclude

bool

white/black

items

array

List array items (can be empty if there fileName)

fileName

string

null

File name from upload file - Store filter list

8.4.2. HTTP Request

URL

PUT api/filterlist/11 HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiIySWtrVFhFTkNHYndtTEowIiwic3ViIjoiMzgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.egQbUbK-5SYYrGaG7-vxEKDGXkWW0RuCME7kLW2aU8M
DATA
{
    "title": "Test FilterList #7",
    "isInclude": true,
    "items": [
        "http:\/\/www.ernser.info\/et-est-at-eum-officia-dolores-similique-corrupti",
        "https:\/\/douglas.com\/iusto-expedita-ratione-sapiente.html",
        "http:\/\/feeney.net\/illo-debitis-qui-enim-aut"
    ],
    "fileName": null
}

8.4.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/filterlist/11' -i -X PUT \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiIySWtrVFhFTkNHYndtTEowIiwic3ViIjoiMzgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.egQbUbK-5SYYrGaG7-vxEKDGXkWW0RuCME7kLW2aU8M' \
    -d '{
    "title": "Test FilterList #7",
    "isInclude": true,
    "items": [
        "http:\/\/www.ernser.info\/et-est-at-eum-officia-dolores-similique-corrupti",
        "https:\/\/douglas.com\/iusto-expedita-ratione-sapiente.html",
        "http:\/\/feeney.net\/illo-debitis-qui-enim-aut"
    ],
    "fileName": null
}'

8.4.4. Response Body

Path Type Description

message

string

Result message

data.id

integer

List Id

data.userId

integer

User Id

data.isActive

bool

on/off

data.title

string

List title

data.type

string

Filter list type: domain, apps, bundles, deviceIfas, publishers, ipAdresses, siteAndAppsIds, urls, tagIds

data.isInclude

boolean

white/black

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

data.items

array

List items

data.listCount

integer

listCount

8.4.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "FilterList updated.",
    "data": {
        "id": 11,
        "userId": 38,
        "isActive": 0,
        "title": "Test FilterList #7",
        "type": "urls",
        "isInclude": true,
        "createdAt": "2025-05-13",
        "updatedAt": "2025-05-13",
        "items": [
            "http:\/\/www.hettinger.net\/labore-perspiciatis-commodi-accusamus-voluptas-esse-consequatur",
            "http:\/\/www.mccullough.com\/voluptatum-quod-autem-facere-exercitationem-labore-ipsam"
        ],
        "listCount": 2
    }
}

8.5. Filter lists delete

A `DELETE` request will delete a filter lists

8.5.1. HTTP Request

URL

DELETE api/filterlist/12 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJnQ05CUkJIQVNMcUZJU1d5Iiwic3ViIjoiMzkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.CC4jDzTsUSte4ZG_aVt5aIBeAg2DWYKl9uVInmxHfFo
Content-type: application/x-www-form-urlencoded
DATA
{}

8.5.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/filterlist/12' -i -X DELETE \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJnQ05CUkJIQVNMcUZJU1d5Iiwic3ViIjoiMzkiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.CC4jDzTsUSte4ZG_aVt5aIBeAg2DWYKl9uVInmxHfFo' \
                -H 'Content-type: application/x-www-form-urlencoded' \
    -d '{}'

8.5.3. Response Body

Path Type Description

message

string

Result message

deleted

boolean

is deleted

8.5.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "FilterList deleted.",
    "deleted": true
}

9. Assign Filterlists to Campaigns

9.1. Get list of Filter Lists assigned to Campaign

A `GET` request with Campaign Id in url will get list of Filter Lists assigned to Campaign

9.1.1. HTTP Request

URL

GET api/campaigns/16/filterlists HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJPMWVpaWN6M2xlZUQ4eHlVIiwic3ViIjoiMjEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.MsLE6Awy2UeLXx31caaGTzKFys2VL57pkk3AWNxBOpk
DATA
{}

9.1.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/16/filterlists' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJPMWVpaWN6M2xlZUQ4eHlVIiwic3ViIjoiMjEiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.MsLE6Awy2UeLXx31caaGTzKFys2VL57pkk3AWNxBOpk' \
    -d '{}'

9.1.3. Response Body

Path Type Description

data.*.isInclude

boolean

List is Include

data.*.filterList.id

integer

List Id

data.*.filterList.isActive

bool

on/off

data.*.filterList.userId

integer

User Id

data.*.filterList.title

string

List title

data.*.filterList.type

string

Filter list type: listDomains, listApps, listBundles, listDeviceIfas, listPublishers, listIpAdresses, listSiteAndAppIds, listUrls, listTags

data.*.filterList.isInclude

boolean

White/Black list

data.*.filterList.count

integer

Object count

data.*.filterList.createdAt

datetime

Date of creation

data.*.filterList.updatedAt

datetime

Date of last modification

meta.pagination.total

integer

Pagination: total items count

meta.pagination.count

integer

Pagination: page items count

meta.pagination.per_page

integer

Pagination: items per page

meta.pagination.current_page

integer

Pagination: current page number

meta.pagination.total_pages

integer

Pagination: total pages count

meta.pagination.links

array

Pagination: array links

9.1.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": [
        {
            "isInclude": true,
            "filterList": {
                "id": 1,
                "isActive": 0,
                "userId": 21,
                "title": "Test Filter list #1",
                "type": "domain",
                "isInclude": "White",
                "count": 1,
                "createdAt": "2025-05-13",
                "updatedAt": "2025-05-13"
            }
        },
        {
            "isInclude": true,
            "filterList": {
                "id": 2,
                "isActive": 0,
                "userId": 21,
                "title": "Test Filter list #2",
                "type": "ipAdresses",
                "isInclude": "White",
                "count": 1,
                "createdAt": "2025-05-13",
                "updatedAt": "2025-05-13"
            }
        },
        {
            "isInclude": true,
            "filterList": {
                "id": 3,
                "isActive": 0,
                "userId": 21,
                "title": "Test Filter list #3",
                "type": "urls",
                "isInclude": "White",
                "count": 1,
                "createdAt": "2025-05-13",
                "updatedAt": "2025-05-13"
            }
        }
    ],
    "meta": {
        "pagination": {
            "total": 3,
            "count": 3,
            "per_page": 1000,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

9.2. Remove Filter Lists assigned to Campaign

A `DELETE` request with Campaign Id in url will remove Filter Lists assigned to Campaign

9.2.1. Request Body

Path Type Description Required

ids

array

List id to remove

+

9.2.2. HTTP Request

URL

DELETE api/campaigns/17/filterlists HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJPUlAyNmltcFZrUWVZd1FyIiwic3ViIjoiMjIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.zaatmA1ApFJg3OJDTXV7Vm4p1Lx2ZanstFuOVYTsTMg
Content-type: application/x-www-form-urlencoded
DATA
{
    "ids": [
        5
    ]
}

9.2.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaigns/17/filterlists' -i -X DELETE \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzgsImV4cCI6MTc0NzE0MjMzOCwibmJmIjoxNzQ3MTM4NzM4LCJqdGkiOiJPUlAyNmltcFZrUWVZd1FyIiwic3ViIjoiMjIiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.zaatmA1ApFJg3OJDTXV7Vm4p1Lx2ZanstFuOVYTsTMg' \
                -H 'Content-type: application/x-www-form-urlencoded' \
    -d '{
    "ids": [
        5
    ]
}'

9.2.4. Response Body

Path Type Description

message

string

Result message

9.2.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "message": "Deleted."
}

10. Optimization Rule

10.1. Rule

A `GET` request will return a optimization rules

10.1.1. HTTP Request

URL

GET api/optimization-rule HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJ2UDRWaDdPemNvSllMUERTIiwic3ViIjoiNDQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.7vfsFl-6I7Dy3e2OQjBFphO4HRtjts-BqxATlBiZyUI
DATA
{}

10.1.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/optimization-rule' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDAsImV4cCI6MTc0NzE0MjM0MCwibmJmIjoxNzQ3MTM4NzQwLCJqdGkiOiJ2UDRWaDdPemNvSllMUERTIiwic3ViIjoiNDQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.7vfsFl-6I7Dy3e2OQjBFphO4HRtjts-BqxATlBiZyUI' \
    -d '{}'

10.1.3. Response Body

Path Type Description

data.*.id

integer

Id

data.*.userId

integer

User Id

data.*.ownerCampaignId

integer

Campaign id where it was created rule

data.*.name

string

Name

data.*.timeRange

string

type: last_day,last_3_days,last_week,last_month

data.*.then

string

type: whitelist_source,blacklist_source

data.*.targetFilterListId

integer

Filter list id

data.*.conditions

Array

Conditions

data.*.createdAt

datetime

Date of creation

data.*.updatedAt

datetime

Date of last modification

meta.pagination.total

integer

Pagination: total items count

meta.pagination.count

integer

Pagination: page items count

meta.pagination.per_page

integer

Pagination: items per page

meta.pagination.current_page

integer

Pagination: current page number

meta.pagination.total_pages

integer

Pagination: total pages count

meta.pagination.links

array

Pagination: array links

10.1.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": [
        {
            "id": 4,
            "userId": 44,
            "ownerCampaignId": 0,
            "name": "TEST Rule#1",
            "timeRange": "last_3_days",
            "then": "whitelist_source",
            "targetFilterListId": 1,
            "conditions": [],
            "createdAt": "2025-05-13T12:19:00.000000Z",
            "updatedAt": "2025-05-13T12:19:00.000000Z"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

10.2. Get rule by ID

A `GET` request will return a optimization rule

10.2.1. HTTP Request

URL

GET api/optimization-rule/5 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiI3T0lRek5DQUwxdFM3OW9RIiwic3ViIjoiNDUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.GHmz0Xg3ohbGwN82oQthYjuNFPIUTnJVFCgCUezzv0s
DATA
{}

10.2.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/optimization-rule/5' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiI3T0lRek5DQUwxdFM3OW9RIiwic3ViIjoiNDUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.GHmz0Xg3ohbGwN82oQthYjuNFPIUTnJVFCgCUezzv0s' \
    -d '{}'

10.2.3. Response Body

Path Type Description

data.id

integer

Id

data.userId

integer

User Id

data.ownerCampaignId

integer

Campaign id where it was created rule

data.name

string

Name

data.timeRange

string

type: last_day,last_3_days,last_week,last_month

data.then

string

type: whitelist_source,blacklist_source

data.targetFilterListId

integer

Filter list id

data.conditions

Array

Conditions

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

10.2.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 5,
        "userId": 45,
        "ownerCampaignId": 0,
        "name": "TEST Rule#1",
        "timeRange": "last_day",
        "then": "blacklist_source",
        "targetFilterListId": 1,
        "conditions": [],
        "createdAt": "2025-05-13T12:19:01.000000Z",
        "updatedAt": "2025-05-13T12:19:01.000000Z"
    }
}

10.3. Create a rule

A `POST` request will return a optimization rule

10.3.1. Request Body

Path Type Description Required

name

string

Name

+

timeRange

string

type: (last_day,last_3_days,last_week,last_month)

+

then

string

type: (whitelist_source,blacklist_source)

+

targetFilterListId

integer

Filter list id

+

conditions.*.condition

string

Condition type: (when,and,or) first condition must be - when

+

conditions.*.action

string

Actions type: (ctr,clicks,winrate,impressions,dspSpend)

+

conditions.*.comparison

string

Comparison type: (>,<,=)

+

conditions.*.value

string

Value

+

10.3.2. HTTP Request

URL

POST api/optimization-rule HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJzcDRTNldLVTROTHRFMXp0Iiwic3ViIjoiNDYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.RtkmwH7NikbXMCguVpz5v-p4yhDGECfVdICrHx-ClhA
DATA
{
    "name": "Test",
    "timeRange": "last_day",
    "then": "blacklist_source",
    "targetFilterListId": 13,
    "conditions": [
        {
            "condition": "when",
            "action": "dspPrice",
            "comparison": ">",
            "value": "0.5"
        }
    ]
}

10.3.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/optimization-rule' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJzcDRTNldLVTROTHRFMXp0Iiwic3ViIjoiNDYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.RtkmwH7NikbXMCguVpz5v-p4yhDGECfVdICrHx-ClhA' \
    -d '{
    "name": "Test",
    "timeRange": "last_day",
    "then": "blacklist_source",
    "targetFilterListId": 13,
    "conditions": [
        {
            "condition": "when",
            "action": "dspPrice",
            "comparison": ">",
            "value": "0.5"
        }
    ]
}'

10.3.4. Response Body

Path Type Description

data.id

integer

Id

data.userId

integer

User Id

data.ownerCampaignId

integer

Campaign id where it was created rule

data.name

string

Name

data.timeRange

string

type: (last_day,last_3_days,last_week,last_month)

data.then

string

type: (whitelist_source,blacklist_source)

data.targetFilterListId

integer

Filter list id

data.conditions

Array

Conditions

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

10.3.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 6,
        "userId": 0,
        "ownerCampaignId": 0,
        "name": "Test",
        "timeRange": "last_day",
        "then": "blacklist_source",
        "targetFilterListId": 13,
        "conditions": [],
        "createdAt": "2025-05-13T12:19:01.000000Z",
        "updatedAt": "2025-05-13T12:19:01.000000Z"
    }
}

10.4. Rule update

A `PATCH` request will return a optimization rule

10.4.1. Request Body

Path Type Description Required

name

string

Name

+

timeRange

string

type: (last_day,last_3_days,last_week,last_month)

+

then

string

type: (whitelist_source,blacklist_source)

+

targetFilterListId

integer

Filter list id

+

conditions.*.condition

string

Condition type: (when,and,or) first condition must be - when

+

conditions.*.action

string

Actions type: (ctr,clicks,winrate,impressions,dspSpend)

+

conditions.*.comparison

string

Comparison type: (>,<,=)

+

conditions.*.value

string

Value

+

10.4.2. HTTP Request

URL

PUT api/optimization-rule/7 HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJTcE1sQ3k1ZW9PS1A4dm1MIiwic3ViIjoiNDciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.-MsilD2u7VmKMeqR9VoerxnXRVOwifRoIxHNGMblEP4
DATA
{
    "name": "Test#2",
    "timeRange": "last_week",
    "then": "whitelist_source",
    "targetFilterListId": 14,
    "conditions": [
        {
            "condition": "when",
            "action": "dspPrice",
            "comparison": "<",
            "value": "1"
        }
    ]
}

10.4.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/optimization-rule/7' -i -X PUT \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiJTcE1sQ3k1ZW9PS1A4dm1MIiwic3ViIjoiNDciLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.-MsilD2u7VmKMeqR9VoerxnXRVOwifRoIxHNGMblEP4' \
    -d '{
    "name": "Test#2",
    "timeRange": "last_week",
    "then": "whitelist_source",
    "targetFilterListId": 14,
    "conditions": [
        {
            "condition": "when",
            "action": "dspPrice",
            "comparison": "<",
            "value": "1"
        }
    ]
}'

10.4.4. Response Body

Path Type Description

data.id

integer

Id

data.userId

integer

User Id

data.ownerCampaignId

integer

Campaign id where it was created rule

data.name

string

Name

data.timeRange

string

type: (last_day,last_3_days,last_week,last_month)

data.then

string

type: (whitelist_source,blacklist_source)

data.targetFilterListId

integer

Filter list id

data.conditions

Array

Conditions

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

10.4.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 7,
        "userId": 47,
        "ownerCampaignId": 0,
        "name": "Test#2",
        "timeRange": "last_week",
        "then": "whitelist_source",
        "targetFilterListId": 14,
        "conditions": [],
        "createdAt": "2025-05-13T12:19:01.000000Z",
        "updatedAt": "2025-05-13T12:19:01.000000Z"
    }
}

10.5. Remove Rule assigned to Campaign

A `DELETE` request will delete a Optimization rule relation

10.5.1. HTTP Request

URL

DELETE api/optimization-rule/8 HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiI0V1NMUUxQcHpVOHpPSm5LIiwic3ViIjoiNDgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.pjD6jgedqA_J4PoyNK6MOY3EFmfGcssIQ56KumRKcYg
Content-type: application/x-www-form-urlencoded
DATA
{}

10.5.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/optimization-rule/8' -i -X DELETE \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3NDEsImV4cCI6MTc0NzE0MjM0MSwibmJmIjoxNzQ3MTM4NzQxLCJqdGkiOiI0V1NMUUxQcHpVOHpPSm5LIiwic3ViIjoiNDgiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.pjD6jgedqA_J4PoyNK6MOY3EFmfGcssIQ56KumRKcYg' \
                -H 'Content-type: application/x-www-form-urlencoded' \
    -d '{}'

10.5.3. Response Body

Path Type Description

deleted

boolean

is deleted

10.5.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "deleted": true
}

11. Assign Optimization rules to Campaigns

11.1. Get Rule assigned to Campaign

A `GET` request will return a optimization rule relation

11.1.1. HTTP Request

URL

GET api/campaign/9/optimization-rule-relation HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJqaFlvd3NrWm1HeG5wYnYwIiwic3ViIjoiMTQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.d5MB4vgsC7yDxUMDq1KAxKPk6SJMq2TY_1uVkcJMjqo
DATA
{}

11.1.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaign/9/optimization-rule-relation' -i -X GET \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJqaFlvd3NrWm1HeG5wYnYwIiwic3ViIjoiMTQiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.d5MB4vgsC7yDxUMDq1KAxKPk6SJMq2TY_1uVkcJMjqo' \
    -d '{}'

11.1.3. Response Body

Path Type Description

data.id

integer

Id

data.userId

integer

User Id

data.ownerCampaignId

integer

Campaign id where it was created rule

data.name

string

Name

data.timeRange

string

last_day

last_3_days

last_week

last_month

data.then

string

whitelist_source

blacklist_source

data.targetFilterListId

integer

Filter list id

data.conditions.*.condition

string

Condition (when

and

or) first condition must be - when

data.conditions.*.action

string

Actions (ctr

clicks

winrate

impressions

dspSpend)

data.conditions.*.comparison

string

Comparison types (>

<

=)

data.conditions.*.value

string

Value

data.createdAt

datetime

Date of creation

data.updatedAt

datetime

Date of last modification

11.1.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "data": {
        "id": 1,
        "userId": 14,
        "ownerCampaignId": 9,
        "name": "TEST Rule#1",
        "timeRange": "last_3_days",
        "then": "blacklist_source",
        "targetFilterListId": 1,
        "conditions": [
            {
                "condition": "when",
                "action": "clicks",
                "comparison": "<",
                "value": 1
            }
        ],
        "createdAt": "2025-05-13T12:18:57.000000Z",
        "updatedAt": "2025-05-13T12:18:57.000000Z"
    }
}

11.2. Replace Rule assigned to Campaign

A `POST` request will return a optimization rule relation

11.2.1. Request Body

Path Type Description Required

campaignId

integer

campaignId

+

ruleId

integer

ruleId

+

11.2.2. HTTP Request

URL

POST api/campaign/optimization-rule-relation HTTP/1.1

HEADER
Accept: application/json
Content-type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJSNGFsYUZ2Q3RwazRiNnByIiwic3ViIjoiMTUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.bkfMfTtxUCUyVpPq_hjns2rJbWHG5NQVoyWt3OBSpMQ
DATA
{
    "campaignId": 10,
    "ruleId": 2
}

11.2.3. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaign/optimization-rule-relation' -i -X POST \
            -H 'Accept: application/json' \
                -H 'Content-type: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJSNGFsYUZ2Q3RwazRiNnByIiwic3ViIjoiMTUiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.bkfMfTtxUCUyVpPq_hjns2rJbWHG5NQVoyWt3OBSpMQ' \
    -d '{
    "campaignId": 10,
    "ruleId": 2
}'

11.2.4. Response Body

Path Type Description

campaignId

integer

campaignId

ruleId

integer

ruleId

11.2.5. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "campaignId": 0,
    "ruleId": 2
}

11.3. Remove Rule assigned to Campaign

A `DELETE` request will delete a Optimization rule relation

11.3.1. HTTP Request

URL

DELETE api/campaign/11/optimization-rule-relation HTTP/1.1

HEADER
Accept: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJzOUlKdXkzQ1Q0Z29DMHdHIiwic3ViIjoiMTYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.R9oxe-W2FU4E654YA6_5FdWkeypYFk0HpgsiZiYWpcw
Content-type: application/x-www-form-urlencoded
DATA
{}

11.3.2. Curl request

$ curl 'https://dsp-api.smartyads.com/api/campaign/11/optimization-rule-relation' -i -X DELETE \
            -H 'Accept: application/json' \
                -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0Ojk5MjMiLCJpYXQiOjE3NDcxMzg3MzcsImV4cCI6MTc0NzE0MjMzNywibmJmIjoxNzQ3MTM4NzM3LCJqdGkiOiJzOUlKdXkzQ1Q0Z29DMHdHIiwic3ViIjoiMTYiLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.R9oxe-W2FU4E654YA6_5FdWkeypYFk0HpgsiZiYWpcw' \
                -H 'Content-type: application/x-www-form-urlencoded' \
    -d '{}'

11.3.3. Response Body

Path Type Description

deleted

boolean

is deleted

11.3.4. HTTP Response

HTTP/1.0 200 OK
    Content-type: application/json
    Access-control-allow-origin: *
    X-ratelimit-limit: 500
    X-ratelimit-remaining: 499
{
    "deleted": true
}

Postman collection

Request validation list

Campaign.contentCategories
  • IAB1

  • IAB2

  • IAB3

  • IAB4

  • IAB5

  • IAB6

  • IAB7

  • IAB8

  • IAB9

  • IAB10

  • IAB11

  • IAB12

  • IAB13

  • IAB14

  • IAB15

  • IAB16

  • IAB17

  • IAB18

  • IAB19

  • IAB20

  • IAB21

  • IAB22

  • IAB23

    Campaign.connectionTypes
  • wifi

  • ethernet

  • cellular_all

  • cellular_all

  • cellular_3g

  • cellular_4g

Campaign.OS

  • 'Android',

  • 'Android 8.0',

  • 'Android 8.1',

  • 'Android 9.0',

  • 'Android 10.0',

  • 'Android 11.0',

  • 'Android 12.0',

  • 'Android 13.0',

  • 'Android 14.0',

  • 'iOS',

  • 'iOS 10.0',

  • 'iOS 10.1',

  • 'iOS 10.2',

  • 'iOS 10.3',

  • 'iOS 11.0',

  • 'iOS 11.1',

  • 'iOS 11.2',

  • 'iOS 11.3',

  • 'iOS 12.0',

  • 'iOS 12.1',

  • 'iOS 12.2',

  • 'iOS 12.3',

  • 'iOS 12.4',

  • 'iOS 13.1',

  • 'iOS 13.2',

  • 'iOS 13.3',

  • 'iOS 13.4',

  • 'iOS 13.5',

  • 'iOS 13.6',

  • 'iOS 14.0',

  • 'iOS 14.1',

  • 'iOS 14.2',

  • 'iOS 14.3',

  • 'iOS 14.4',

  • 'iOS 14.5',

  • 'iOS 14.6',

  • 'iOS 14.7',

  • 'iOS 14.8',

  • 'iOS 15.0',

  • 'iOS 15.1',

  • 'iOS 15.2',

  • 'iOS 15.3',

  • 'iOS 15.4',

  • 'iOS 15.5',

  • 'iOS 15.6',

  • 'iOS 15.7',

  • 'iOS 16.0',

  • 'iOS 16.1',

  • 'iOS 16.2',

  • 'iOS 16.3',

  • 'iOS 16.4',

  • 'Mac OS',

  • 'Mac OS 10.1',

  • 'Mac OS 10.2',

  • 'Mac OS 10.3',

  • 'Mac OS 10.4',

  • 'Mac OS 10.5',

  • 'Mac OS 10.6',

  • 'Mac OS 10.7',

  • 'Mac OS 10.8',

  • 'Mac OS 10.9',

  • 'Mac OS 10.10',

  • 'Mac OS 10.11',

  • 'Mac OS 10.12',

  • 'Mac OS 10.13',

  • 'Mac OS 10.14',

  • 'Mac OS 10.15',

  • 'Mac OS 11.0',

  • 'Mac OS 11.1',

  • 'Mac OS 11.2',

  • 'Mac OS 11.3',

  • 'Mac OS 11.4',

  • 'Mac OS 11.5',

  • 'Mac OS 11.6',

  • 'Mac OS 12.0',

  • 'Mac OS 12.1',

  • 'Mac OS 12.2',

  • 'Mac OS 12.3',

  • 'Mac OS 12.4',

  • 'Mac OS 12.5',

  • 'Mac OS 12.6',

  • 'Mac OS 13.0',

  • 'Mac OS 13.1',

  • 'Mac OS 13.2',

  • 'BlackBerry',

  • 'Linux',

  • 'Windows',

  • 'Windows 8.1',

  • 'Windows 10',

  • 'Windows 11',

  • 'Windows Mobile',

  • 'Symbian',

  • 'Symbian 9.1',

  • 'Symbian 9.2',

  • 'Symbian 9.3',

  • 'Symbian 9.4',

     Campaign.browser
    * 'Chrome',
    * 'Edge',
    * 'IE',
    * 'Safari',
    * 'Mozilla',
    * 'Opera',
    * 'UCBrowser',
    * 'Yandex',