Skip to main content
Getting StartedThe creative builder will enable to construction of new creatives through the API. In this document, you will find details regarding the different sections of a creative template variable. A creative comprises five template variable values, which is a required array used in the POST or PUT calls when building a new creative. Any existing template variable can be found under sections of the GET Retailer Template endpoint.
 

Endpoints

Verb

Endpoint

Description

GET

/{retailer-id}/templates

Get a list of available creative templates for a specified retailer

POST

/{account-id}/creatives

Create a new account creative

GET

/{account-id}/creatives/{creative-id}

Get account creative by creative id

PUT

/{account-id}/creatives/{creative-id}

Update an existing creative

 

Creative Attributes

string
Value: int64Is Nullable? NoId for the entity
string
Value: -Is Nullable? NoCanonical type name of the entity. These types correspond to the different values that can be set to a particular TemplateVariableValue
enum , string
required
Is Nullable? NoCreative template available to use for template creationUnknown,FlagShip,Showcase,SponsoredProducts,Butterfly,BundleBoost,IAB,CUSTOM,DisplayPanel ,DigitalShelfTalker
string
required
Value: -Is Nullable? falseThe name of the template
integer
Value: int32Is Nullable? NoThe retailer associated to the template
integer
required
Value: int32Is Nullable? NoMin number of collections to configure in the ad
integer
Value: int32Is Nullable? YesMax number of collections that can be configured in the ad
integer
required
Value: int32Is Nullable? NoMin number of SKUs to be configured in the ad for each collection
integer
Value: int32Is Nullable? YesMax number of SKUs to be configured in the ad for each collection
integer
Value: int32Is Nullable? YesMax number of SKUs that can serve at once for this ad
boolean
required
Value: true,falseIs Nullable? NoIf set to true, the ad will only serve if a SKU from each collection is available
string
required
Value: date-timeIs Nullable? NoThe time at which the template was created
string
required
Value: date-timeIs Nullable? NoThe time at which the template was updated
integer
Value: -Is Nullable? NoType of creative format
integer
Value: Web = 1 , Mobile = 2 , App = 3Is Nullable? NoType of web environment creative format is eligible to serve on
string
Value: int64Is Nullable? NoLine item ids that is associated with the creative

Environments Variable

Provides the list of environments details suitable for the ad, like page type and display environment
enum | strings
required
Is Nullable? NoPage type where the creative is suitable to deliverUnknown,Search,Home,Browse,Checkout,Category,ProductDetail,Confirmation,Merchandising,Deals,Favorites,SearchBar,CategoryMenu
array of enum | strings
required
Is Nullable? NoList of environments per pageType where the creative is suitable to deliverWeb,Mobile,App,Lockout,Mixed,iOS,Android

Template Variable

Provides the template settings details, such as the type of variables available in each template.
string
required
Is Nullable? NoThe id of the template variable
boolean
required
Value: true, falseIs Nullable? NoPresents if the template variable is a required field
enum | strings
required
Is Nullable? NoThe type variable of the template settings. The variable type will determine which ChoiceVariableSpecification that can be usedText,Choice,Color,Files,Hyperlink

Template Variable | ChoiceVariableSpecification

This field wraps an array of strings that should contain the choices provided by the corresponding ChoiceVariableSpecification. Choice variables are optional, and they are equivalent to a set of drop-down choices one would select in the RMP UI.
string
required
Is Nullable? NoTemplate variables unblocked when the option is chosen
string
required
Value: -Is Nullable? NoThe id of the option
integer
Value: int32Is Nullable? YesThe maximum number of selectable options
integer
Value: int32Is Nullable? YesThe minimum number of selectable options

Template Variable | textVariableSpecification

Variables in the texVariableSpecification specifies the max number of characters
integer
Value: -Is Nullable? yesThe maximum amount of characters accepted for the text

Template Variable | filesVariablesSpecification

Present if the variable is set to one or more asset ids. The fields here specify the acceptable file extensions of the assets and the min and max numbers that can be provided.
enum - string
required
Is Nullable? NoThe accepted file extensionsunknown,jpeg,png,gif,pdf
integer
Value: int32Is Nullable? YesThe maximum amount of bytes per file
integer
required
Value: int32Is Nullable? YesThe minimum amount of files requires
integer
Value: int32Is Nullable? YesThe maximum amount of files required

Template Variable Value

Provided when creating (POST) or updating (PUT) a creative.
string
required
Value: -Is Nullable? NoThe id of the template variable the value is applied to. The id is equivalent to the template field name one would see in RMP. This variable in the POST/PUT calls informs which template fields to be modified.
string
required
Value: -Is Nullable? NoThe displayed text
string
Value: -Is Nullable? NoThe chosen options
string
required
Value: -Is Nullable? FalseThe displayed color (HEX format)
string
required
Value: min. length: 1Is Nullable? NoThe assets representing the images to be displayed
Value: -Is Nullable? NoThe url to redirect to

Get Retailer Templates

Get a list of available creative templates for a specific retailer Sample Request
Sample Response
JSON

Create Creative

  • The create creative endpoint will generate a new creative for an account id. The endpoint request body consists of an array called templateVariableValues which will be used to specify the template variables that will be modified during the creative generation.
  • The template variables that can be modified are dependent on each creative template. This information is provided in the GET | Retailer Templates response, under the templateVariables array.
  • Multiple template variables can be specified in each call. See the sample response for an example of how to set up the endpoint.
 
Creative Asset Upload APIThe Create Creative endpoint will require an assetId. Before generating a new creative ID, upload new creative assets files using the Creative Asset Upload endpoint to obtain the assetId.
Sample Request
Sample Response

Get Creatives

Get account creative by creative id Sample Request
Sample Response

Update Creatives

The endpoint will allow for updating existing creatives. The API endpoint request body uses the same templateVariableValues model as the one used in the POST | Create Creative call, but this time allows for updating any of the existing template variable fields.
Changes to the Creative ID when Updating CreativesWhen generating a new creative, the initial id is known as a “parentId,” of the creative. Every new update made to that creative creates a new “childId” which is a copy of the previous creative containing new updates. This means that the creativeId will change whenever a new update is made to the creative.To ensure that your line item is using the correct creativeId, your application will need to call the latest creativeId from the Get Creatives endpoint before associating a new creative to the line item.
Sample Request
In this example, updates are made to change the brandId, optional_footer_type, button_text_color, footer_background_color
Sample Response