AdUnits
Operations related to ad unit resources. This is only for Node customers.
You can generate and copy your API key from your account dashboard: https://app.pubstack.io/settings/api-keys
You can generate and copy your API key from your account dashboard: https://app.pubstack.io/settings/api-keys
Page number (≥ 1)
1Number of items per page (1–100)
10Sort field
nameSort order
ascendingPossible values: Free text search term
Paginated list of ad units
Missing or invalid API key
Forbidden - This is available only for Node customer
Internal Server Error
GET /public/v1/pbs/adunits HTTP/1.1
Host: api.pubstack.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "text",
"name": "text",
"env": "s2s"
}
],
"pagination": {
"page": 1,
"limit": 1,
"total": 1,
"totalPages": 1
}
}You can generate and copy your API key from your account dashboard: https://app.pubstack.io/settings/api-keys
Ad unit's name
Ad unit created
Bad Request - Input does not match schema
Missing or invalid API key
Forbidden - This is available only for Node customer
Internal Server Error
POST /public/v1/pbs/adunits HTTP/1.1
Host: api.pubstack.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"id": "text",
"name": "text",
"env": "s2s"
}You can generate and copy your API key from your account dashboard: https://app.pubstack.io/settings/api-keys
Ad unit's name
Ad unit updated
Bad Request - Input does not match schema
Missing or invalid API key
Forbidden - This is available only for Node customer
Internal Server Error
PUT /public/v1/pbs/adunits/{adunitId} HTTP/1.1
Host: api.pubstack.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"id": "text",
"name": "text",
"env": "s2s"
}Last updated
