Creatives represent the design files that the advertiser would like to appear on the ads.
We currently accept .jpg and .png file types.
The Creative Object
id: integer
name: string
url: string
advertiser_id
width: integer (width in pixels)
height: integer (height in pixels)
approvals: array
rejections: array
campaigns: array of campaing_id and approval status (PENDING | APPROVED | REJECTED)
Endpoints
Summary
POST /creatives #=> Create creative
GET /creatives #=> List creatives
POST /creatives/:id/campaign/:campaign_id #=> Request approval for campaign
GET /creatives/:id #=> Get specific creative
Create Creative
List Creatives
GET /creatives
Expects:
- advertiser_id (optional) #=> filters responses to only that advertiser
Returns: paginated array of creatives inside a "records" key
Request approval for campaign
POST /creatives/:id/campaign/:campaign_id
Expects:
- creative_id
- campaign_id
Returns: Creative Object
Get Creative
GET /creatives/:id
Expects:
- id
Returns: the creative object