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

In a script Tag, to initialize your data put the following code :

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

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!