Creates specific types of creatives. Only CustomTag creatives can be created.
When adding a new creative, ID must be null or omitted; creativeType and creativeSubType must be provided; advertiserId or campaignId must be included (both may be included). Only HTML/JS based CustomTag banners can be created, so the caller must set:
"creativeType": "banner", "vast", "native", "mraid", "vpaid", "vast_with_vpaid"
and
"creativeSubtype": "htmlTag"
Request
POST /creative/save
Request Body
| Name | Type | Description | Required |
|---|---|---|---|
| name | String | Creative name | Yes |
| type | Object | See Type Object | Yes |
| size | Object | See Size Object | Yes |
| advertiserId | Number | Advertiser ID associated with the campaign. | Yes* |
| htmlAsset | String | Yes | |
| creativeType | String | Yes | |
| creativeSubType | String | Yes | |
| campaignId | Number | Yes* |
*: One of advertiserId or campaignId is required; both may be included.
Type
Name | Type | Description | Required |
|---|---|---|---|
id | Number | Media type ID See reference table here | Yes |
vendor | String | Vendor name or "Generic" | No |
mediaType | String | One of: BANNER, VAST, NATIVE, MRAID, VPAID, VAST_WITH_VPAID | Yes |
videoType | String | One of: FLV, MP4, WMV, WEBM, JS, null | Yes; set to null for non-video Creative |
Size
| Name | Type | Description | Required |
|---|---|---|---|
| width | Number | Creative width, if applicable, or null | Yes |
| height | Number | Creative height, if applicable, or null | Yes |