advertiser/creative/banner
This resource allows you to create, retrieve, update, and delete banner creatives.
GET | ||||
---|---|---|---|---|
Request Parameters | ||||
Parameter | Description | Possible Values | Default | Required? |
id | The id, or comma-separated list of ids, of the creative(s) you want to retrieve. If one id is provided, the resource object will be returned. If a comma-separated list of ids are provided, a list of objects will be returned. | * 987 OR 123,456,789 | N/A | No |
promotion | The promotion id, or comma-separated list of promotion ids, to filter by | * 987 OR 123,456,789 | N/A | No |
status | The status, or comma-separated list of statuses, to filter by | active, inactive, scheduled, date_range | N/A | No |
Response Fields | ||||
Field | Description | Notes | ||
id | Creative id | |||
type | Creative type | |||
name | The name of the creative | Used for internal display to publishers | ||
destination_url | The destination url for the creative | |||
banner_url | The location where the banner is hosted | |||
description | A description of the banner creative | |||
alt_text | The 'alt' text of the banner creative | |||
width | The width of the banner creative in pixels | |||
height | The height of the banner creative in pixels | |||
promotions | An array of promotions applied to a creative | |||
promotions[n][id] | The promotion id | |||
promotions[n][name] | The name of the promotion | |||
private | Indicates whether the creative is private among a group of affiliates | 1 OR 0 | ||
private_affiliates | An array of of affiliates the private creative is limited to | If this node is not present, the private creative is shown to no affiliates. | ||
private_affiliates[n][affiliate_id] | The affiliate id of the private affiliate | |||
private_affiliates[n][first_name] | The first name of the private affiliate | |||
private_affiliates[n][last_name] | The last name of the private affiliate | |||
allow_deep_link | Advertiser's group name | 1 OR 0 | ||
start_date | Start date for the creative | YYYY-MM-DD HH:00:00 | ||
end_date | End date for the creative | YYYY-MM-DD HH:00:00 | ||
view_date | View date for the creative | YYYY-MM-DD HH:00:00 | ||
created | Date the creative was created | |||
modified | Date the creative was modified | |||
status | Status of the creative |
POST | ||||
---|---|---|---|---|
Request Parameters | ||||
Parameter | Description | Possible Values | Default | Required? |
N/A | ||||
Post Parameters | ||||
Parameter | Description | Possible Values | Default | Required? |
name | The name of the creative | * Any generic string | N/A | Yes |
width | The of the banner creative in pixels | * Any valid integer above 0 and below 800 | N/A | Yes |
height | The height of the banner creative in pixels | * Any valid integer above 0 and below 800 | N/A | Yes |
alt_text | The 'alt' text of the banner creative | * Any generic string | N/A | Yes |
destination_url | The destination url of the creative | * Any valid url | N/A | Yes |
banner_url | The location where the banner is hosted. This field is dependent on whether we host the creative. It is only required if the image is already hosted with another provider. Either banner_url or image is required. | * Any valid url | N/A | Dependent |
image | This should be a Base64 encoded (RFC4648) binary of the image file. This field is dependent on whether we host the creative. It is only required if uploading an image for hosting. Either banner_url or image is required. | * Base64 encoded image file | N/A | Dependent |
image_type | The extension of the file. Only required when image parameter is provided | jpg, pjpeg, jpeg, png, gif | N/A | Dependent |
description | A description of the creative | * Any generic string | N/A | Yes |
status | The status of the creative | active, inactive OR date_range | N/A | Yes |
promotions | Promotion id(s) being assigned to the creative | * 987 OR 123,456,789 | N/A | Yes |
private | A flag indicating whether this creative is private | 1 OR 0 | N/A | No |
private_affiliates | A comma-separated list of affiliate ids used to limit the creative's visibility | * 987 OR 123,456,789 | N/A | No |
allow_deep_link | A flag indicating whether deep linking is enabled for this creative | 1 OR 0 | N/A | Yes |
start_date | Start date for the creative | * YYYY-MM-DD HH:00:00 | N/A | No |
end_date | End date for the creative | * YYYY-MM-DD HH:00:00 | N/A | No |
view_date | View date for the creative | * YYYY-MM-DD HH:00:00 | N/A | No |
Response Fields | ||||
Field | Description | Notes | ||
N/A |
PUT | ||||
---|---|---|---|---|
Request Parameters | ||||
Parameter | Description | Possible Values | Default | Required? |
id | The id of the creative being updated | * 123 | N/A | No |
Put Parameters | ||||
Parameter | Description | Possible Values | Default | Required? |
name | The name of the creative | * Any generic string | N/A | No |
width | The of the banner creative in pixels | * Any valid integer above 0 and below 800 | N/A | No |
height | The height of the banner creative in pixels | * Any valid integer above 0 and below 800 | N/A | No |
alt_text | The 'alt' text of the banner creative | * Any generic string | N/A | No |
destination_url | The destination url of the creative | * Any valid url | N/A | No |
banner_url | The location where the banner is hosted. This field is dependent on whether we host the creative. It is only required if the image is already hosted with another provider. Either banner_url or image is required. | * Any valid url | N/A | Dependent |
image | This should be a Base64 encoded (RFC4648) binary of the image file. This field is dependent on whether we host the creative. It is only required if uploading an image for hosting. Either banner_url or image is required. | * Base64 encoded image file | N/A | Dependent |
image_type | The extension of the file. Only required when image parameter is provided | jpg, pjpeg, jpeg, png, gif | N/A | Dependent |
description | A description of the creative | * Any generic string | N/A | No |
status | The status of the creative | active, inactive OR date_range | N/A | Yes |
promotions | Promotion id(s) being assigned to the creative | * 987 OR 123,456,789 | N/A | Yes |
private | A flag indicating whether this creative is private | 1 OR 0 | N/A | No |
private_affiliates | A comma-separated list of affiliate ids used to limit the creative's visibility | * 987 OR 123,456,789 | N/A | No |
allow_deep_link | A flag indicating whether deep linking is enabled for this creative | 1 OR 0 | N/A | No |
start_date | Start date for the creative | * YYYY-MM-DD HH:00:00 | N/A | No |
end_date | End date for the creative | * YYYY-MM-DD HH:00:00 | N/A | No |
view_date | View date for the creative | * YYYY-MM-DD HH:00:00 | N/A | No |
Response Fields | ||||
Field | Description | Notes | ||
N/A |
DELETE | ||||
---|---|---|---|---|
Request Parameters | ||||
Parameter | Description | Possible Values | Default | Required? |
id | The id of the creative being deleted | * 123 | N/A | Yes |
Response Fields | ||||
Field | Description | Notes | ||
N/A |
* Values shown are placeholder values. Please replace with actual data.