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.
To test your creative, you can set default values after inserting the script in the event ‘compositionReady’.
To do this, select the Stage of the ads, click on {} and choose the event ‘compositionReady’, and add 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!