Creative

List creatives of the given campaign

GET /networks/advertisers/campaigns/:campaign_id/creatives

Parameters

page
Optional integer - the start index

If not supplied, the page is 1. (Feed pages are 1-based. That is, the first entry is entry 1, not entry 0.) Use this parameter as a pagination mechanism along with the per_page parameter for situations when totalResults exceeds 30 and you want to retrieve entries indexed at 31 and beyond.

per_page
Optional integer - the max-results

You can use this in combination with page to retrieve a subset of elements, or use it alone to restrict the number of returned elements, starting with the first. If you do not use the per_page parameter in your query, your feed returns the default maximum of 30 entries.

Response

Status: 200 OK
Link: <http://track.admasterapi.com/networks/advertisers/campaigns/10786/creatives?page=2>; rel="next",
      <http://track.admasterapi.com/networks/advertisers/campaigns/10786/creatives?page=10>; rel="last"
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
  {
    //Creative ID
    "id": 200000271,
    "url": "http://track.admasterapi.com/networks/advertisers/campaigns/creatives/200000271",
    //Creative Name
    "name": "A Good Creative",
    //Creative Shortname
    "shortname": "GO",
    //Description
    "description": "This is a good creative",
    //Target Website
    "target_url": "http://www.admaster.com.cn/",
    //Creation Time
    "created_at": "2012-09-06T20:39:23Z"
  }

Get creative details of the given campaign

GET /networks/advertisers/campaigns/creatives/:id

Response

Status: 200 OK
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
    //Creative ID
    "id": 200000271,
    "url": "http://track.admasterapi.com/networks/advertisers/campaigns/creatives/200000271",
    //Creative Name
    "name": "Creative A",
    //Creative Shortname
    "shortname": "GO",
    //Description
    "description": "Null",
    //Target Website
    "target_url": "http://www.admaster.com.cn/",
    //Creation Time
    "created_at": "2012-09-06T20:39:23Z"
}

Add a creative to the given campaign

POST /networks/advertisers/campaigns/:campaign_id/creatives

Parameters

name
Required string - Creative Name
shortname
Required string - Creative Shortname, 2 characters
description
Optional string - Description
target_url
Optional string - Target Website

Request

{
    "name": "A Good Creative",
    "shortname": "GO",
    "description": "This is a good creative",
    "color": "#ff00ff",
    "file_id": 123,
    "target_url": "http://www.admaster.com.cn/",
}

Response

Status: 201 Created
Location: http://track.admasterapi.com/networks/advertisers/campaigns/creatives/200000271
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
    //Creative ID
    "id": 200000271,
    "url": "http://track.admasterapi.com/networks/advertisers/campaigns/creatives/2000002711",
    //Creative Name
    "name": "A Good Creative",
    //Creative Shortname
    "shortname": "GO",
    //Description
    "description": "This is a good creative",
    //Target Website
    "target_url": "http://www.admaster.com.cn/",
    //Creation Time
    "created_at": "2012-09-06T20:39:23Z"
}

Delete the given creative

DELETE /networks/advertisers/campaigns/creatives/:id

When the creative’s data which you want to delete is not “0”, the creative’s data will be changed as “0”.
When the creative’s data which you want to delete is “0”, it can not be deleted.

Response

Status: 204 No Content
Location: http://track.admasterapi.com/networks/advertisers/campaigns/123/creatives
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999

Modify details of the given creative

PATCH /networks/advertisers/campaigns/creatives/:id

Parameters

name
Required string - Creative Name
shortname
Required string - Creative Shortname, 2 characters.
description
Optional string - Description
target_url
Optional string - Target Website

Request

{
    "name": "A Good Creative",
    "shortname": "GO",
    "description": "This is a good creative",
    "target_url": "http://www.admaster.com.cn/",
}

Response

Status: 200
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999