Building HTML5 with Tumult Hype
- 07 Jun 2024
- 1 Minute to read
- DarkLight
Building HTML5 with Tumult Hype
- Updated on 07 Jun 2024
- 1 Minute to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
This page helps you build a HTML5 creative using Tumult Hype.
New Ad (from template)
A new file is automatically created when you open Tumult Hype.
- Download the adgear_html5.hypetemplate.zip file.
- Unzip the
adgear_html5.hypetemplate.zip
file. - In Tumult Hype, click File and select Open to open the
adgear_html5.hypetemplate
file.
New Ad (from scratch)
A new file is automatically created when you open Tumult Hype.
You can change the size of your ad by clicking on the Scene icon on the right panel.
Add the AdGear HTML5 API
- To add the reference to AdGear HTML5 API JavaScript file, click the Document icon, then click the Edit Head HTML... button.
- From the code view, simply add the AdGear HTML5 API JavaScript next to the
<meta>
tag or before the</head>
closing tag.
Code Snippet
<script type="text/javascript" src="https://h5.adgear.com/v2/js/html5.min.js"></script>
Click Button
- Click Elements and select the Rectangle tool. Resize and edit as needed.
- Select your click button on the scene.
- On the right panel, click the Actions icon.
- Then, click the + icon next to On Mouse Click (Tap).
- In the Actions dropdown, select Run JavaScript...
- A new Function dropdown will appear. In that dropdown, select New Function...
- If you’ve loaded the template, you can select the pre-defined function named clickThrough.
- If you’ve loaded the template, you can select the pre-defined function named clickThrough.
- In the code view, change the name of the function to something meaningful, like clickThrough.
- Inside this function, call the
AdGear clickThrough
function with the click name (ex:clickTAG
).
Code Snippet
ADGEAR.html5.clickThrough("clickTAG")
Complete the code
See HTML5 Javascript Library to create more sophisticated ad executions by leveraging the extent of the AdGear HTML5 JavaScript API.
Please consider having a look at this document HTML5 Recommendations where we provide important tips and best practices to improve your HTML 5.
Publish
- In the menu, click File then click Export as HTML5 and select Folder...
- Make sure these 2 checkboxes are ticked: Also save .html file and Create enclosing folder.
- Click Save to confirm.
- Go to the folder where your files were exported and rename the HTML file to
index.html
. - Zip the folder to be uploaded to Samsung DSP. See Import HTML5 Creative for more information.
Was this article helpful?