Note: This format was formerly known as the HTML5 Responsive Rich Media Banner, and has been renamed as of January 9, 2018. You will no longer find the HTML5 Rersponsive Rich Media Banner available in the platform, you will only find the Deluxe Banner (both for any existing ads and for all new ads). |
Overview
The Deluxe Banner is a rich banner that is able to resize responsively or adaptively to fill the available space. The format also supports using one fixed size for ad placements that do not change size.
This format includes a fully “domain configurable” solution. This allows one tag to be served across different domains, where Certification and Support can use the “Liquid Domain Manager” to change custom variables, JavaScript and CSS on specific domains, so a single tag can work everywhere as expected. (Note: This has previously been referred to as a “programmatic” solution, but is more appropriate for PMPs and smaller networks that have been certified with Sizmek) For more information on the domain configurable formats in general, and how to preview the different certified settings, please see Domain Config Solution for Custom Formats
This template includes UserAction and ClickThrough buttons as well as video. The template can be customized and extended to include a wide array of interactive features.
Clicking the UserAction button sends a custom interaction that is tracked in reports. Clicking the ClickThrough button opens up an advertiser’s site.
The design can adapt to all but the smallest sizes. The contents of the ad will move as the ad changes in size, meaning the template is ready to be used in responsive, adaptive, or fixed sizes. Responsive ads are capable of being displayed in any size. Adaptive ads display in a set of predetermined sizes, showing the largest size that is available on the publisher page. Fixed size ads will remain at one size regardless of the space available.
Video Template
The Video template adds video, text, and a background image to the Basic template. The video and text adapt to fit a wide variety of ad sizes, and disappear when there is not enough space available.
For example, here is the Video template when the ad resizes to 450x500:
Demos/Downloads
The following table provides links to the templates and demo for the Deluxe Banner format.
Template |
|
Demo |
Supported Platforms
Platform | Supported Versions |
iOS | iOS 9 and later |
Android | Android 4.4 and later |
Internet Explorer | 10.0 and later |
Firefox | Recent versions |
Chrome | Recent versions |
Safari | 7.0 and later |
Note: Supported in both mobile browsers as well as in MRAID-compliant apps.
Features
These are the key features of the Deluxe Banner format.
Feature |
Supported |
Domain Configuration via Domain Config Tool (f/k/a Programmatic) |
Yes |
Responsive |
Yes |
Scroll Detection |
Yes |
Local Preview |
Yes |
Uses AdKit (able to include DCO and Additional Assets) |
Yes |
Polite Loading |
Yes |
Safeframe Support |
Yes |
MRAID (in-app Support) |
Yes |
Secure Serving |
Yes |
Sizmek Advertising Suite Support |
Yes |
Ad Builder Templates Available |
No |
Implementing a Deluxe Banner
Before you begin
Included Template Files
HTML
The following HTML5 template files are included.
File Name | Description |
index.html |
The HTML file for the banner |
Styles
The following CSS template files are included.
File Name | Description |
styles/reset.css |
Styles that reduce differences in appearance between different browsers |
styles/style.css |
The style sheet for the banner |
Scripts
The following JavaScript files are included.
File Name | Description |
scripts/script.js |
The JavaScript file for the banner |
scripts/localPreview.js | JavaScript file enabling local preview of index.html in browser, without the need to upload the ad to the platform first. Provides a limited preview experience. |
config.js |
The configuration/manifest file for the ad (used for things like Smart Versioning, default ad settings, etc.) |
Images
The following image template files are included.
File Name | Description |
images/default.jpg |
The image used if the ad is not displayed |
images/logo.png |
The Sizmek logo |
images/background.jpg |
The background image for the banner |
images/play.svg |
The play button for the video |
images/poster.jpg |
The poster image for the video |
Videos
The following video template files are included.
File Name | Description |
videos/video.mp4 |
The mp4 video |
Customizing a Deluxe Banner
All of the Deluxe Banner functionality is programmed in the template files. At minimum, the only changes you will need to make are to the loaded image and video assets and their respective styles.
Note: When updating or replacing images or videos, make sure to also update references to their file names and dimensions found in index.html
and style.css
as necessary.
To update the layout, design, and functionality of a template, open the HTML
, CSS
, and JS
files in a text editor.
Common Customizations
Responsive
A responsive banner will resize to fill whatever space is available to it. To make a responsive banner, set mdResizeBehavior
to "responsive". You may also want to set minimum and maximum heights and widths, to make sure your design is never displayed at a size it doesn't support.
Creating responsive designs can be difficult. You can make it easier by learning about CSS media queries, which allow you to change the style of the ad based on the available space. You can also use CSS flexboxes, which allow you to create extremely responsive designs that can stack or spread out based on the available space. Note that you will need to use many different CSS prefixes with flexbox to support a wide range of browsers. For example, "-webkit-" and "-ms-". Look at the style.css
file for the video template for an example of the various prefixes you may need to use.
Adaptive
An adaptive banner will snap to different preset sizes based on the available space. Set mdResizeBehavior
to "adaptive" to make an adaptive banner. It will attempt to use the largest size that fits in the designated area. You can choose the adaptive sizes using the mdAdaptiveBreakpoints
variable. For example, if you wanted an ad that snaps to the widths 300px, 600px, 900px, and 1200px, set the breakpoints to "300,600,900,1200". When the space available is greater than or equal to 300px wide, the ad will show the 300px size. When the space available is greater than or equal to 600px wide, the ad will show the 600px size. If the space available is less than 300px wide, the ad will fall back to using the minimum width and minimum height, which are set using custom variables.
You can also designate explicit heights for each breakpoint. For example, "300x250,600x400,900x750,1200x800". When the width available is greater than or equal to 300px, the ad will change to 300x250. If heights are not specified, the ad will generally use the minimum height custom variable as its height.
Fixed
If you want the banner to simply display at one size, you can set mdResizeBehavior
to "fixed" and set a fixed height and fixed width using custom variables.
Changing width and height dependencies
The width and height dependency custom variables are used to determine the basis for the ad's resizing. For example, you can set the ad to change its width based on the current width of the element containing it using the setting "advertiserDiv", or set it to resize based on the width of the browser windows using the setting "browser".
You can set the height of the banner to resize based on an aspect ratio using the setting "aspectRatio" and setting the aspect ratio to a value like "16:9" or "3:4". This will make the height adjust itself proportionally based on the current width of the ad.
You can also set either dependency to "fixed" to make that dimension use the value set in the the fixed height or fixed width variables.
If you want the height or width to be based on a specific element on the page, you can set it to a CSS selector for that element. For example, if you want the width to be based on an element with the id "container", you can set the width dependency to "#container".
When you are making a responsive ad, the ad will generally resize to the same size as the element you select as the dependency. When you are making an adaptive ad, the ad will use the largest adaptive breakpoint that is less than or equal to the size of the element you select as the dependency. This will use width rather than height, so the height dependency custom variable is not as useful for adaptive banners.
Detecting Scroll Position
All the provided templates have a function that handles keeping aware of the current scroll position. When the ad first loads, the current scroll position is received. Upon any scroll, resize, or orientation change, the new scroll position will be updated. You can access the current scroll position, available in values from 0 to 100 (percentage scrolled), via the global object and properties scrollPos.x and scrollPos.y from the creative script.js. If you want to have code that adjusts positioning when the scrollPositioning is updated, you can put your code in the onPageScroll function in script.js.
Note: Occasionally there is network trouble causing the scroll detection code to fail, so be sure to not rely on scroll position without including backup functionality in case of failure.
Manifest Configuration (config.js file)
We have outlined some information about this file below, but for a more detailed description, please see the article in the Sizmek Help Center by going here.
The Manifest Configuration File (config.js location in the root folder of the workspace) is a metadata file that defines certain default behaviors for the ad when created on the Sizmek Advertising Suite platform (MDX does not support the manifest file; the file is simply ignored). When you create a new blank ad, and select a workspace containing a manifest file, the information in that manifest file will be applied. You may certainly make changes to the inputted information once the data is there. The manifest file only gets applied once, when you assign a workspace.
Figure 1
Manifest Property: adFormatId
Fig. 1, Item 1
Default Value: 10366
Description: DO NOT MODIFY this value or your ad will not function correctly. This is a reference to the custom ad format ID that maps to the Deluxe Banner in the Sizmek platform.
Manifest Property: name
Fig. 1, Item 2
Default Value: "CIT_RELEASED_DeluxeBanner_2_0_0_1x1_Basic"
Description: User-defined name displayed in the platform. You may change this to your desired name, or you may leave this line out entirely to create an ad without assigning a name.
Manifest Property: defaultBanner
Default Value: "Main_Banner"
Description: This is the name of the banner. This must match the name of the (only) asset in the banners array. This value is never displayed in the platform nor in reports, so while you can edit this, assuming you also changed the name of the banner in the below array to match this, it would have no effect.
Manifest Property: banners
Description: A single-entry array of the only banner in the ad.
Parameters:
Field | Default Value | Description |
name | "Main_Banner" | Name of the banner, this must match the value of defaultBanner above. No reason to change this. |
width | 1 |
Integer value representing the banner width in pixels. Note: this should match the height of the defaultImage. Fig. 1, Item 3 |
height | 1 |
Integer value representing the banner height in pixels. Note: this should match the height of the defaultImage. Fig. 1, Item 3 |
defaultImage | "images/default.jpg" |
Relative path to the default image for this format. Note: the dimensions of this asset should match the width/height above. Fig. 1, Items 3 and 4 |
Figure 2
Manifest Property: clickThrough
Description: Object containing details on the default clickthrough for the ad
Parameters:
Field | Default Value | Description |
url | "http://www.sizmek.com/?defaultClickthrough" |
Landing page when a user clicks. The URL can include up to a 1,000 characters. Fig. 2, Item 5 |
target | "newWindow" |
Where to open the url when user clicks. Fig. 2, Item 6 Options are newWindow: Opens the landing page in a new browser window or a new tab.
|
showMenuBar | true |
Boolean value that determines the appearance of the browser's menu bar in the landing page new window/tab. Fig. 2, Item 7 |
showAddressBar | true |
Boolean value that determines the appearance of the browser's address bar in the landing page new window/tab. Fig. 2, Item 8 |
closePanels | true |
This is not yet implemented in the UI You can safely ignore this setting, as this format/template does not include any panels. |
Manifest Property: customInteractions
Description: Array containing objects that define the default custom interactions for the ad. This ad template only includes one interaction.
Parameters:
Field | Default Value | Description |
name | "UserAction" |
The name of the user action as defined in the workspace Fig. 3, Item 9 |
reportingName | "User Action" |
The name to appear in reports for this customInteractions Fig. 3, Item 10 |
type | "userAction" |
Type of interaction. autoEvent, userAction, clickThrough, timer Fig. 3, Item 11 |
includeInRate | true |
A boolean value that defines whether to include the interaction in the Interaction Rate, and to influence the Interaction Rate metrics in reports. Fig. 3, Item 12 |
closePanels | true |
Defines whether to close the ad's panels when the interaction is triggered. You can safely ignore this setting, as this format/template does not include any panels. Fig. 3, Item 13 |
landingPageUrl | "http://www.sizmek.com/?userAction" |
Landing page to which the user will be directed when triggering the interaction. The URL can include up to a 1,000 characters. Fig. 3, Item 14 |
target | "newWindow" |
Where to open the url when user clicks. Options are
top: Opens landing page on the top of the page. This is not yet implemented in the UI |
showMenuBar | true |
Boolean value that determines the appearance of the browser's menu bar in the landing page new window/tab. This is not yet implemented in the UI |
showAddressBar | true |
Boolean value that determines the appearance of the browser's address bar in the landing page new window/tab. This is not yet implemented in the UI |
Manifest Property: variables
Description: Array containing key/value pair objects that define the default values of the custom variables for the ad.
Guidelines and Rules
- The Manifest file key name must match the format key name. Note, this is NOT the same as the variable display name.
- A key is ignored and not added to the ad, if the Manifest file includes a unique key that is not defined on the format level.
- The last key is used in the Manifest file if the key appears more than once.
- Variables that are embedded on the format level with default values will appear on the ad level even if they do not exist on in the Manifest file.
- A variable is ignored if an error or conflict arises. The default values on the format level apply.
- Variable values can include boolean, integers, strings, and float types.
- All values should be entered with quotes, as strings, regardless of variable type
- Boolean values use lowercase "true" and "false" values
Parameters:
Field | Description |
key | Name of the custom variable. Note: this is NOT the display name, but the actual name. |
value |
The default value of the variable. Encapsulate every value in quotes, regardless of if variable type is string, integer, float, or boolean. |
Example:
Recommended Manifest Configuration Changes
At the very least, you will want to make a minimum of these changes to your manifest file:
Name: The template provided includes the template name as the ad name. You will want to make sure your ad is named according to your campaign/placement.
Clickthrough URL: The template clicks through to the Sizmek home page. You will want to update the default clickthrough URL according to your campaign/placement.
Interactions: The template provides a single interaction named "userAction". You will want to update this section to either include all the interactions you have in your ad's creative, or remove the section entirely and rely just on the asset scanning of the platform to detect all interactions in the code.
In addition to the above list, you may want to adjust the below entries:
Custom Variables: While the template provides default behavior, depending on the needs of your ad, the publisher(s) on which the ad will run, etc., you may need to adjust the values of some of the variables.
Banner Dimensions: The template provides is served as a 1x1. You may need to serve a different tag size due to certain publisher restraints. As this ad can behave responsively, you may serve any size banner you wish. If you decide to change your banner size, you should change the Manifest to match.
Testing Your Deluxe Banner
You can test the banner by opening the index.html files in a modern browser. Change the size of the browser window to get a sense of how the design will look at different sizes. This is not, however, a reliable representation of how the ad might behave on a publisher page. This will depend on the layout of the publisher page and the Custom Variable settings.
Setting up a Deluxe Banner in the Sizmek Platform
Set up in the MDX2.0 Platform
Procedure
- Archive the workspace into a new ZIP file, preserving the directory structure. You can do this with
WinZip, 7Zip, or another archiving program. - Under Creative Assets, create a new Workspace by uploading the ZIP file.
- Under the Ads section, create a new ad.
- Enter a name for the ad, and set Ad Format to Deluxe Banner.
- Select the Workspace folder and the default image.
- In the Settings section, under Advanced Features, customize the variables according to your needs, and those of your publishers.
- Create a new placement for the ad.
- Set the Placement type to In Banner and the Banner size to the size of your ad.
- After you save your placement, you can generate preview tags to test on your web site.
Note: On the Sizmek platform, your user account will need access to the Deluxe Banner format in the list of available custom formats. If you do not have access to this format, please contact Support to gain permissions for this format.
For reference, the following custom script is being used:
http://ds.serving-sys.com/burstingres/CustomScripts/PL_DeluxeBanner.js
Set up in the Sizmek Advertising Suite Platform
Procedure
- Archive the workspace into a new ZIP file, preserving the directory structure. You can do this with
WinZip, 7Zip, or another archiving program. - Click Creative > Assets Library. Upload your Workspace to the chosen folder.
- Click Creative > Ads, and then click New Ad > Blank Ad.
- In the Creative Assets section, on the Main Assets tab, select the Workspace folder and the default image.
- With the included manifest config.js file, all settings will be entered for you. You can customize as you desire.
- Enter a name for the ad.
- Under the Advanced Features section, customize the variables to your needs, and those of your publishers.
- Create a new placement for the ad.
- Set the Placement type to In Banner and the Banner size to the size of your ad.
- After you save your placement, you can generate preview tags to test on your web site.
Note: On the Sizmek platform, your user account will need access to the Deluxe Banner format in the list of available custom formats. If you do not have access to this format, please reach out to Support to gain permissions for this format.
For reference, the following custom script is being used:
http://ds.serving-sys.com/burstingres/CustomScripts/PL_DeluxeBanner.js
Custom Variables
A variable is used when you have instructions in the code and you want the ad to behave accordingly. For example, you can create a variable that will be called by the JavaScript when you want to define the location of a panel when it opens and after how much time. Here you would define a variable for X (location) and a variable for Y (amount of time).
Custom variables are created in the Sizmek Workshop or HTML5 workspace. Once the ad is uploaded to the Sizmek platform, Sizmek recognizes that your ad contains variables and you can then changes their definitions in the Sizmek platform. You can create an unlimited number of variables in your ad.
Variable Name (Variable Key) |
Description | Type | Default Value | Accepted Values |
---|---|---|---|---|
|
Determines whether the ad resizes responsively, adaptively, or stays a fixed size. Note: responsive_adaptive will behave responsively with respect to width, and adaptively with respect to height. Breakpoints are only used with "adaptive" and "responsive_adaptive" | String | responsive |
"responsive", "adaptive", "fixed", "responsive_adaptive" |
|
Determine whether the banner is justified center, right, or left. | String | center | "center", "c", "right", "r", "left", "l" |
|
Determine whether the ad animates as it changes size. | Boolean | No | Yes/No |
|
Set the adaptive breakpoints the ad should use when determining whether to resize. Default value only sets width breakpoints. Breakpoints are only used when mdResizeBehavior is set to "adaptive" or "responsive_adaptive" | String | 300,600,900,1200 | Comma delimited integers, which can also be separated by x's to specify explicit heights, such as 300x600, 600x900, etc. |
|
Determine which element on the site dictates the available width for the ad. | String | advertiserDiv |
advertiserDiv" or "1", "browser" or "2", "aspectRatio" or "3", "fixed" or 4, or any CSS selector |
|
Determine which element on the site dictates the available height for the ad. When setting to advertiserdiv_adaptive, the mdAutoHeightThreshold variable will be used to determine when the height should be treated as advertiserdiv, and when it shoudl be treated as adaptive | String | advertiserDiv |
"advertiserDiv" or "1", "browser" or "2", "aspectRatio" or "3", "fixed" or 4, "advertiserDiv_adaptive" or 5, or any CSS selector |
|
This variable is only used when setting mdHeightDependency to advertiserDiv_adaptive. If the advertiser element’s height is greater than mdAutoHeightThreshold value, the ad will behave the same as it would if the mdHeightDependency were set to the “advertiserdiv” behavior. However, if the height of the element is the same or less than the value of mdAutoHeightThreshold, then the ad will behave adaptively, utilizing the breakpoints set in mdAdaptiveBreakpoints |
Integer |
1 |
>0 |
Aspect Ratio (mdAspectRatio) |
Determine the aspect ratio the ad should maintain as it resizes. |
String |
undefined |
Two numbers separated by a colon, such as "16:9" or "3:4" |
|
Determine the minimum width for the ad. Set to 0 for no minimum width. | Integer | 0 | >= 0 |
|
Determine the minimum height for the ad. Set to 0 for no minimum height. | Integer | 0 | >= 0 |
|
Determine the maximum width for the ad. Set to 0 for no maximum width. | Integer | 0 | >= 0 |
|
Determine the maximum height for the ad. Set to 0 for no maximum height. | Integer | 0 | >= 0 |
|
Set a fixed width for the ad. | Integer | 0 | >= 0 |
|
Set a fixed height for the ad. | Integer | 0 | >= 0 |
|
Determines whether the ad will attempt to resize a friendly iframe that contains the ad. This can prevent the ad from being cropped, but may affect the layout of the publisher page. | Boolean | No | Yes/No |
|
Ad resize/reposition interval. 0 to turn off the interval. Ad attempts to resize itself every "n" milliseconds. Even with this value set to 0, the ad will always attempt to resize itself upon browser resize, browser scroll, or orientation change. This var simply adds an interval by which to attempt to resize/reposition also. | Number | 0 | >=0 |
|
Relative path to the backup image, if a custom image is desired. This allows a fallback experience to display an image that is not a 1x1 even though the tag is a 1x1 tag. For example, if this custom var were set to "images/300x250_Default.jpg," then a file would attempt to be loaded from the images folder. You must be sure this file exists in the workspace. When set to undefined, the normal 1x1 fallback occurs. | String | undefined | Valid relative path to an image resource |
|
This variable is only used when the ad is serving a default image. When set to any value over 0, this number of publisher parent elements of our tag will be resized to the default image size, if they are smaller than the default image serving. | Integer | 0 | >=0 |
|
Whether or not to load the domain configuration settings. | Boolean | False | Yes/No |
|
Location from which to load the programmatic settings files. | String | //services.serving-sys.com/programmatic/DomainList/ | Do Not Change |
Custom Interactions
Name | Description |
UserAction |
Tracks clicks on the UserAction button |
Known Issues
- In SafeFrames and unfriendly iframes, the ad will only be able to resize based on the size of the SafeFrame or unfriendly iframe. It will not be able to resize based on the size of the browser window, screen, or elements on the advertiser page. This is due to security restrictions.
- The ad may disappear and reappear during initial load. This is due to a bug in AdKit.
- In certain scenarios, the scroll detection functionality fails to work. Be sure to include a fallback behavior for any creative use of the scroll position.
- In IE10 and 11, local preview may not work due to security defaults. You may need to click "allow" when prompted to run scripts and ActiveX content, in order to get the ad to function closer to how it would function live.
Change Log
2.0.0
Release: November ???, 2017
- Added MRAID support
- Updated format name (HTML5 Responsive Rich Media Banner --> Deluxe Banner)
- Updated base template to latest version
- Updated custom var mdProgEnable to mdIsDomainConfigEnabled
- Included manifest.js support
- Various minor bug fixes to improve performance and functionality
1.1.0
Release: February 7, 2017
- Added domain config (f/k/a programmatic) solution.
- Added Sizmek Advertising Suite support.
- Add new value option for mdResizeBehavior, "responsive_adaptive".
- Added new value option for mdHeightDependency, "advertiserdiv_adaptive".
- Added various other new custom variables included as a result of updating script to latest template code base.
- Page scroll position available in creative javascript.
1.0.0
Release: June 6, 2016
- First release
Copyright 2017 Sizmek. All rights reserved. |
The information contained in this document is proprietary and confidential to Sizmek and/or any of its affiliated companies. Disclosure, copying, reproduction, storing or any use of this document or any part thereof without the express prior, written consent of Sizmek or its authorized representatives is strictly prohibited. The information furnished in this document is believed to be accurate and reliable. However no responsibility is assumed by Sizmek for the use of this information. Sizmek reserves the right to make changes to the information included in this document at any time and without notice. |
Flash is either a registered trademark or trademark of Adobe Systems Incorporated in the United States and/or other countries. Trademark Note: Sizmek, the Sizmek logo, Sizmek Rich Media, Sizmek Mobile, Sizmek Video, Sizmek Channel Connect, Sizmek Workshop, etc. are trademarks and/or registered trademarks of Sizmek. All other trademarks are the property of their respective owners. |
Comments