In-View Ad (Split) Extension

Updated 31/01/2017

Example of In-View Ad (Split)

http://showroom.adform.com/media/uploads/Studio_Preview/InView/inView_img.png

Template in Adform HTML STUDIO

In-View Ad (Split) Script

//s1.adform.net/Banners/scripts/extensions/inview_split.js?bn=%%ADFTAGID%%

Description

Script should be used only for In-View ad (Split). The format should be set as Display (Category) InView (Format) in order to set up the desired behavior.
If no parameters are set, the ad displays from element where the tag has been inserted and is 100% browser’s width. A consistent amount of options can be enabled with query parameters (see: Optional Query Parameters).

Note: All scripts here are with “https” protocol. If your tag is “http” based, change script’s protocol to “http” before adding it on the tag.


Note: Adjusted In-View Ad (Split) Script ad script URL needs to be placed in the Tags section:
1. Select a tag and click on http://creative.adform.com/media/2532465/javascript-urls-button.png button.
2. Then, enter the URL in the JavascriptURLS field.
3. Select the Load before banner checkbox.
4. Click on Submit button.

Mandatory Query Parameters

Name Possible Values Description
bn %%ADFTAGID%% this macro detects tag bn id which has to be appended all the times

Optional Query Parameters

Name Default Possible Values Description
position C L|C|R sets ad horizontal default positioning (left, center, right)
left 0 any int sets ad horizontal offset in pixels
offsetX 0 any int sets ad container horizontal offset in pixels
wrapper none any element (querySelector) sets reference element to define ad width
width wrapper width|100% any int or percent sets ad width in pixels or percent
fixedSize 0 0|1 sets height of In-View Ad to be equal to browser’s height if 0, while keeping the original banner height if 1
place parent element any element (querySelector) sets reference element to calculate vertical offset
top place offset any int sets vertical offset in pixels, overriding placement’s position
zIndex 10000 any int sets banner container z-index
shadow 0 0|1 drops external shadow to banner container
freeze 0 seconds interval prevents page from scrolling for the set interval once scrollStepBias is reached
scrollStepBias 110 any int sets distance in pixels from ad to start scrolling freeze mode (if enabled)
topMargin 0 any int sets # of content page pixels to repeat under ad