We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/widget/creative

Read creatives.

The user must be authenticated and have read permissions to the template site group.

Request

The request object has the following fields:

Name

Type

Required

Description

id

String

No*

Identifier for reading a single creative collection.

siteGroupId

String

No*

Site group identifier for reading all creatives for a site group.

templateId

String

No*

Creative template id for reading all creatives for a template.

* Either id, siteGroupId or templateId must be provided, and these fields can not be combined.

Response

The response object has the following fields:

Name

Type

Description

creative

Array of Creative objects

The requested creatives.

A Creative object has the following fields:

Name

Type

Description

id

String

Identifier for the creative.

templateId

String

The template identifier the creative adheres to.

name

String

The creative name.

elements

Array of Element objects

The creative elements.

| offerProductId | String | No | The identifier of the product this creative is affiliated with.

Each Element has the following fields:

Name

Type

Description

type

String

The type of element, either image, text or url.

name

String

The name of the element.

When type is image, the element additionally has the following fields:

Name

Type

Description

id

String

Unique image identifier.

url

String

The URL of image that will be delivered to the end user.

filename

String

The filename of the image file that was uploaded.

width

Number

The pixel width of the image

height

Number

The pixel height of the image

When type is text, the element additionally has the following fields

Name

Type

Description

text

String

The text that will be delivered to the end user.

When type is url, the element additionally has the following fields

Name

Type

Description

url

String

The URL that will be delivered to the end user.

Last updated: