Creatives
Get a list of Creatives
get
/campaigns/{id}/creatives
Path Parameters
id int, required |
The ID of the campaign. |
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/{id}/creatives"
-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 Creative
get
/campaigns/{id}/creatives/{id}
Path Parameters
id int, required |
The ID of the campaign. |
id int, required |
The ID of the creative. |
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns/{id}/creatives/{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
Add a Creative
post
/campaigns/{id}/creatives
Path Parameters
id int, required |
The ID of the campaign. |
Request Body (JSON)
name string, required |
The name of the campaign. |
ad_type int, required |
The ad type. See the table here below. |
List of ad types
For Display Ad campaigns:- image
- code
- video
- zip
- external
- json
- video
- url
- wrapper
- url
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaigns/{id}/creatives"
-X POST
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-d '{
"name": "My Creative",
"ad_type": "image",
}'
-X POST
-H "Content-Type: application/json"
-H "x-api-key: {api_key}"
-d '{
"name": "My Creative",
"ad_type": "image",
}'
Example Response
Delete a Creative
delete
/campaign/{id}/creatives/{id}
Path Parameters
id int, required |
The ID of the campaign. |
id int, required |
The ID of the creative. |
Example Request
curl "https://{yourname}.api.adglare.app/v2/campaign/{id}/creatives/{id}"
-X DELETE
-H "x-api-key: {api_key}"
-X DELETE
-H "x-api-key: {api_key}"
Example Response