Once created driven by our AdServer, images change based on established parameters ( Geolocation, weather, date/time, cookies, retargeting …).
To dynamize pictures you have 2 methods at your service :
The addImage function allows you to insert an <img> tag inside a container.
ADventori.Display.addImage(element, data, urlDefault, dontTrackError);
This function needs four parameters:
<img> tag will be inserted.Don’t forget to add some css to resize your picture.
The addBgImage function allows you Insert a background image inside a HTML container after checking that the image source is valid.
ADventori.Display.addBgImage(element, data, urlDefault, dontTrackError);
This function needs three parameters:
If you dynamize an <img> tag , You have to remove the src attribute.