SWELL DOCUMENTATION

Adsolutions / Documentation  / SWELL DOCUMENTATION
Mobile Swell Ad

SWELL DOCUMENTATION

The template is made as basic as possible so you have a simple starting point to begin building your creative. Keep in mind the Swell needs to be setup responsive to cater for all the different screen sizes available. It starts at a 100% width and 50 pixels high. Then expands.

TEMPLATE PREVIEW

The template consists of the following assets:

  • index.html
  • style.css

index.html
The html is fairly basic. It links to the .css file and it includes the core library:

And it contains the following div:

This is a placeholder for theSmartVideoPlayer. The SmartVideoPlayer allows for auto-initiated delivery of video across devices to play in-line within your ads. (more information on this player can be found here)
In the script part of the html the player is created:

(more information on this player can be found here)

You can also spot two event listeners that control when the video is playing (playing when expanded, paused when not):

And the click is implemented. You can change the URL in this file. Or designate it to a different element or add multiple clickable elements.

The click is syntax is like so: ADTECH.click(‘Click Name‘, ‘your CLICK URL‘);

Click Name is used in the reports to distinguish which click through button was clicked on. You don’t have to enter the URL if you don’t know it yet. We can handle it for you if you send the URL or redirect later on.

Within the CSS you can make elements visible or not depending on the height.

SUPPORT
During the design phase we can provide you with a preview URL so you can see the work in action and make changes to your design accordingly. Send us the source files and fonts to support@adsolutions.com (WeTransfer preferred)

Final creative or requests for a preview can be send to traffic@adsolutions.com

Also read the GENERAL DOCUMENTATION fur further reference on building HTML5 ads.