Campaigns
Get a list of Campaigns
get
/campaigns
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. |
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns"
-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 Campaign
get
/campaigns/{id}
Path Parameters
| id int, required |
The ID of the campaign. |
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns/{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 Campaign
post
/campaigns
Request Body (JSON)
| name string, required |
The name of the campaign. |
| workspace_id int, required |
The workspace ID of the campaign. |
| folder_id int, required |
The folder ID of the campaign. |
| ad_format string, required |
The ad format: display, native, vast, redirect |
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns"
-X POST
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-d '{
"name": "My Campaign",
"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 Campaign",
"workspace_id": "123456789",
"folder_id": "123456789",
"ad_format": "display",
}'
Example Response
Delete a Campaign
delete
/campaign/{id}
Path Parameters
| id int, required |
The ID of the campaign. |
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaign/{id}"
-X DELETE
-H "x-api-key: {api_key}"
-X DELETE
-H "x-api-key: {api_key}"
Example Response