Dynamic creatives are used for campaigns that make use of an advertiser feed to track individual products seen by users and then displays them back to the user in the creative.
Dynamic creatives are essentially a normal HTML5 creative with the required additional functionality of reading a JSON-object of seen products provided to the creative impression time and displaying them inside the creative. Think of it as a more advanced form of retargeting.
The creatives should ideally be prepared to receive several products, and rotate between them. The number of products sent to the creative may vary, so the creative should be prepared to handle any number of products and still display correctly. Upon invocation the creative will receive information of the number of products that are to be displayed.
Even if no products are provided to the creative, something that could occur during the creative audit phase, the banner must still click through to the advertiser's site.
The creative should either scale product images to fit, or be prepared to receive an agreed dimension on all images.
The seen advertiser products are provided to the creative in the form of a JSON-object. The individual field names are configurable but we recommend to use the defaults listed in the example below.
The JSON listed above can be retrieved inside the creative by using our helper script in the following way
var jsonProducts = asxhtml5.getDynamicProducts();
For a small, yet complete, example on how the products can be retrieved see this file.
These creatives are uploaded into ASX exactly the same way as HTML5 creatives with the following addition, once the creative is uploaded, you must assign an "ad target template". If the naming convention used is the same as in the JSON-example above (price, desc, name, image, product_url) you can use the available template called "Standard Dynamic Ad" and you're done. If you have used custom names you must create an own template mapping our fields to whatever the creative uses internally.