...
AdEngine features an internal module that allows the lazy loading of ads. Lazy loading an ad means that it will only be shown in the page when the site user scrolls down to its placement. This kind of behavior leads to better ad performance and a speedier page, ultimately bettering ad cpms and site experience.
To enable lazy loading in AdEngine one has to enable the Lazy Load module in AdEngine-app and set the basic parameters, triggerMarginPercent
and mobileScaling
. This enables the module, but to set which ad units are going to be lazy loaded the publisher needs to declare them in either the Declarative configuration for AdEngine or through the startAuction command. For each one of them, we need to use the AuctionLot
structure with an additional field, called lazyLoad
. This means that for declarative configuration we need to set it through the field activeLots
and through the startAuction() function using an array of AuctionLot
.
...
This is a number that states at which percentage of the viewport should the ad be loaded. This parameter needs to be over 100%, otherwise, it will consider that the ad is already in view, which means it will load the ad at once in the page. If a value is set to be below 100%, it will default to 100%.
mobileScaling
This is a number greater than or equal than to 1 that gives an insight of how much bigger is the scrolling speed is in mobile devices when compared with desktop. Mobile devices tend to scroll a lot faster than desktop devices, and the module uses this estimation to trigger the lazy ads before they enter into view, so that when they enter view they are already loaded and visible, to avoid flickering. If this value is set to be below 1, it will default to 1.
...