Working with Tumult Hype Files

Medialets Support -

This instruction guide assumes the creative file has been developed in the Hype creative platform. Please ensure all creative animation and interactivity is fully functional at this point. We recommend testing on a mobile device.

This guide provides instructions for building a rich media banner asset with one click-through. The same process can be applied for banner units with multiple click-throughs as well.

Part I. Set Up Your Click-through(s):

  1. Find and select your button/click-through area on the stage. On the right, expand the Inspector panel. Click on the Actions panel.


  1. Expand the On Mouse Click (Tap) section by clicking on the plus sign. You should see the following screen:


  1. Click on the Action drop-down menu and select Run Javascript.
  1. Click on the Function drop-down list and select New Function.



  2. Name your function.
  1. Inside of your function insert the following:

servo.clickthrough('myKeyName');


'myClickThru' corresponds to how the click-through keyname will read in Servo reporting.   

Note: Only alphanumeric and the underscore characters are supported. The keyname must begin with a letter.

  1. Create the servo.config.js file, referencing the keyname you put within your servo.clickthrough call above, and have that file at the root of your file structure.

Please reference Servo’s Creative API documentation, found here, regarding the servo.config.js file.

Download a sample servo.config.js file at the bottom of the article. 

Part II. Add Servo API and servo.config.js Call to Your HTML File

  1. To include the Servo Rich Media API, you will need to incorporate the following Servo Rich Media API Javascript file from the Medialets CDN into your index.html file (and expandable.html file if applicable).  

<script src=”http://cdn.creative.medialytics.com/javascript/servo-rich-media.js”></script>

Note: The Servo Rich Media API’s javascript file must always be delivered from the Medialets CDN. Never save the API’s javascript library file to a local directory.

  1. Include the servo.config.js file in your index.html file (and your expandable.html file if applicable).

<script src=”servo.config.js”></script>

  1. To add the Servo Rich Media API and Servo servo.config.js files, open your Inspector again and click on the Document tab.



  2. Click Edit Head HTML.

    Below is a reference of how to properly include the Servo Rich Media API and Servo servo.config.js file.

To test the click-through locally, ensure the servo.config.js file is located at the root of the folder structure, where the index.html (and expandable.html if applicable) file also lives.

Part III. Export Your HTML from Hype

Once your creative is completely built, export your HTML from within Hype.

  1. Go to File > Export as HTML5 > Folder, save the file as “index.html” for your collapsed portion (or if this is not an expandable creative), and “expandable.html” for your expand portion. Read more about this here. This naming convention will allow the Servo API to function properly.
  2. Once you have chosen your location, click the Save button.

Hype will output with the following:

    1. HTML file
    2. Hype resources folder which includes:
      1. Images
      2. Styles
      3. Javascript

Note: The .hype file is not needed for your bundle, but we recommend keeping this file in case edits are needed to be made later. Please make sure to include everything else as well as your servo.config.js file in your zipped bundle to upload to Servo. Save your file within Hype by going to File > Save.

Part IV. Upload to Servo

Zip the entire folder and upload the zip file to Servo.

Read more about How to upload Rich Media creative to Servo.

Additional Tracking

For additional Servo Rich Media API video, data, or engagement tracking, please read Servo’s Creative API documentation.

 

Have more questions? Submit a request

Comments

Powered by Zendesk