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 |
| Get a list of available creative templates for a specified retailer |
POST |
| Create a new account creative |
GET |
| Get account creative by creative id |
PUT |
| 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
TemplateVariableValueenum , string
required
Is Nullable? NoCreative template available to use for template creation
Unknown,FlagShip,Showcase,SponsoredProducts,Butterfly,BundleBoost,IAB,CUSTOM,DisplayPanel ,DigitalShelfTalkerstring
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 availablestring
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 onstring
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 environmentenum | strings
required
Is Nullable? NoPage type where the creative is suitable to deliver
Unknown,Search,Home,Browse,Checkout,Category,ProductDetail,Confirmation,Merchandising,Deals,Favorites,SearchBar,CategoryMenuarray of enum | strings
required
Is Nullable? NoList of environments per
pageType where the creative is suitable to deliverWeb,Mobile,App,Lockout,Mixed,iOS,AndroidTemplate 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 fieldenum | 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,HyperlinkTemplate 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 thetexVariableSpecification 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 extensions
unknown,jpeg,png,gif,pdfinteger
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
string
required
Value: -Is Nullable? NoThe url to redirect to
Get Retailer Templates
Get a list of available creative templates for a specific retailer Sample RequestJSON
Create Creative
-
The create creative endpoint will generate a new creative for an account id. The endpoint request body consists of an array called
templateVariableValueswhich 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
templateVariablesarray. - Multiple template variables can be specified in each call. See the sample response for an example of how to set up the endpoint.
Get Creatives
Get account creative by creative id Sample RequestUpdate Creatives
The endpoint will allow for updating existing creatives. The API endpoint request body uses the sametemplateVariableValues model as the one used in the POST | Create Creative call, but this time allows for updating any of the existing template variable fields.
Sample RequestIn this example, updates are made to change the
brandId, optional_footer_type, button_text_color, footer_background_color