Skip to main content
POST
Create creative

Authorizations

X-API-Key
string
header
required

Preferred authentication method. Pass the API key in the X-API-Key HTTP request header. The user account must have api_status enabled.

Path Parameters

offer_id
integer
required

Offer ID.

Body

application/json
title
string
required
Maximum string length: 128
type
integer
required

1=banner, 2=email, 3=other, 4=xml_feed.

status
integer
required

Creative status to set: 1=active, 3=inactive.

description
string
image
string
image_data
string

Base64-encoded image data (required for banner type).

image_width
integer
image_height
integer
offer_url_id
integer

Landing page ID (required for banner/email/other).

count_impressions
enum<integer>
Available options:
0,
1
html_code
string

HTML code (required for email/other type).

plain_text
string
xml_feed_url
string

XML feed URL (required for xml_feed type).

language
string

ISO 639-1 language code.

Maximum string length: 128
categories_ids
integer[]

Response

Creative created.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object