REPLAYER DOCUMENTATION

Adsolutions / Documentation  / REPLAYER DOCUMENTATION

REPLAYER DOCUMENTATION

The template is made as basic as possible so you have a simple starting point to begin building your creative.

TEMPLATE PREVIEW

The template consists of the following assets:

  • index.html
  • code.js
  • style.css

index.html
The html is fairly basic. It links the .css and .js files. It includes the core library:

 

code.js
In the .js file the player is created and the sources are set. Plus when the video finishes it will replay. In sources you can add yours.

You can also spot a function that handles what happens when the closeButton is clicked. Yu can add elements to the elm [] to hide them.

Underneath that bit of code you’ll find the function that handles what should happen when the ad expands. Again you can add elements to the  var expC = [vid ,closeButton, muteButton]; aray to make them visible on expand.

The code.js file is also the spot where 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.

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.