Zones
Get a list of Zones
get
/zones
Query Parameters
limit int |
The number of items returned in the response. Defaults to 100. |
offset int |
The number of items to skip before starting to return results. Defaults to 0. |
cURL
curl "https://{yourname}.api.adglare.app/v2/zones"
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
Example Response
Get a single Zone
get
/zones/{id}
Path Parameters
id int, required |
The ID of the zone. |
Example Request
curl "https://{yourname}.api.adglare.app/v2/zones/{id}"
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
Example Response
Create a Zone
post
/zones
Request Body (JSON)
name string, required |
The name of the zone. |
workspace_id int, required |
The workspace ID of the zone. |
folder_id int, required |
The folder ID of the zone. |
ad_format string, required |
The ad format: display, native, vast, redirect |
Example Request
curl "https://{yourname}.api.adglare.app/v2/zones"
-X POST
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-d '{
"name": "My Zone",
"workspace_id": "123456789",
"folder_id": "123456789",
"ad_format": "display",
}'
-X POST
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-d '{
"name": "My Zone",
"workspace_id": "123456789",
"folder_id": "123456789",
"ad_format": "display",
}'
Example Response
Delete a Zone
delete
/zones/{id}
Path Parameters
id int, required |
The ID of the zone. |
Example Request
curl "https://{yourname}.api.adglare.app/v2/zones/{id}"
-X DELETE
-H "x-api-key: {api_key}"
-X DELETE
-H "x-api-key: {api_key}"
Example Response