Initialize Data

Before dynamizing elements in the banner you must initialize the dynamic values in a map data.

You have to use our function ADventori.initData();, this function expects an object.

Example

You want to dynamize a text and a picture

You can set default values after inserting the frame 1’s script.

Select Frame 1 on your timeline:

Initialize data 1

Push F9 on your keyboard (or go to the Action Panel). Then add the following code inside to initialize your data:

ADventori.initData( {
   'wording':'Lorem Ipsum',
   'picture':'https://picsum.photos/id/770/300/250'
});

Initialize data 2

You can access to this data by pointing them out with ADventori.data.wording & ADventori.data.picture.

To test your ad, you can set defaults after loading the script.

These values will be automatically replaced with dynamic values at the time of AdServing.

This function can only be present once per banner.

For all campaigns using several formats, all dynamics values must be the same throughout all formats!