--- title: "Building HTML5 with Tumult Hype" slug: "building-html5-with-tumult-hype" updated: 2024-06-07T14:15:58Z published: 2024-06-07T14:15:58Z canonical: "help.dsp.samsungads.com/building-html5-with-tumult-hype" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.dsp.samsungads.com/llms.txt > Use this file to discover all available pages before exploring further. # Building HTML5 with Tumult Hype This page helps you build a HTML5 creative using [Tumult Hype](https://tumult.com/hype/). ## New Ad (from template) A new file is automatically created when you open *Tumult Hype*. 1. Download the [adgear_html5.hypetemplate.zip](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/adgear_html5.hypetemplate.zip?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=hG%2Bn4dU27GOI4VA%2F9ETJm9bit51g6oVoazkBL9cMXEE%3D) file. 2. Unzip the `adgear_html5.hypetemplate.zip` file. 3. In *Tumult Hype*, click **File** and select **Open** to open the `adgear_html5.hypetemplate` file. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687932718324.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=9iAzS6gV7jIXyJWxQ5QZJbp%2BA0PBIT1ic2F93Qy6SzQ%3D) ## 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. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687932780413.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=tqHlAFB78haOyQE4YbCIE1daYIV5JyvB853Ed6wNvoU%3D) ### Add the AdGear HTML5 API 1. To add the reference to *AdGear HTML5 API JavaScript* file, click the **Document** icon, then click the **Edit Head HTML...** button. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687932793339.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=Q7ZL8d3nlwPBmnZ4SceZ2XTZvWVD4lDYfe1oge8%2F5JI%3D) 2. From the code view, simply add the AdGear HTML5 API JavaScript next to the `<meta>` tag or before the `</head>` closing tag. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687932839144.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=t4witU9wJC8z3lanXyuigz5HoHOME2QUy9%2BRKI5YaEo%3D) **Code Snippet** ``` ``` ### Click Button 1. Click **Elements** and select the **Rectangle** tool. Resize and edit as needed. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687933250912.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=HfpgualcABnBt8T9Vj8ZJhv%2Fqv7MkN%2BDgv9cYG0e17U%3D) 2. Select your click button on the scene. 1. On the right panel, click the **Actions** icon. 2. Then, click the **+** icon next to **On Mouse Click (Tap)**. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687932865431.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=Ke7e6qQ57x39QtmOQrjN9YO7R9qN%2Bm6qsdEPj6WxPNE%3D) 3. In the **Actions** dropdown, select **Run JavaScript...** ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687933737718.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=AS%2BspVgPbTlECAD%2FTMRc476uvZFnIXKZXiMTVVOCq5k%3D) 4. A new **Function** dropdown will appear. In that dropdown, select **New Function...** 1. If you’ve loaded the template, you can select the pre-defined function named *clickThrough*. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687933785287.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=Eb2FPayTNLZXPOEpdt35XJ9jU6OLqAU%2BXzXVySHt%2Ff4%3D) 5. In the code view, change the name of the function to something meaningful, like *clickThrough*. 6. Inside this function, call the `AdGear clickThrough` function with the click name (ex: `clickTAG`). ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687932895156.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=SoFQo%2FSd9gDkg1BKBssxe8VpbQ6WiuzrKj0LeFPzYpw%3D) **Code Snippet** ``` ADGEAR.html5.clickThrough("clickTAG") ``` ## Complete the code See [HTML5 Javascript Library](/v1/docs/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](/v1/docs/html5-recommendations) where we provide important tips and best practices to improve your HTML 5. ## Publish 1. In the menu, click **File** then click **Export as HTML5** and select **Folder...** ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687932978539.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=Pv5CTt4dVusGhwa4qYgpSXy%2FkBHGfjhsShjKxHUVn%2F8%3D) 2. Make sure these 2 checkboxes are ticked: **Also save .html file** and **Create enclosing folder**. ![](https://cdn.document360.io/287afab9-a086-4024-a782-6cbdb167f005/Images/Documentation/image-1687933808206.png?sv=2026-02-06&spr=https&st=2026-12-02T04%3A16%3A50Z&se=2026-12-02T05%3A16%3A50Z&sr=b&sp=r&sig=SGFWaszrmciEB7UkYs6LtpQzKg5OLjHVT63YH%2FBwK1Y%3D) 3. Click **Save** to confirm. 4. Go to the folder where your files were exported and rename the HTML file to `index.html`. 5. Zip the folder to be uploaded to Samsung DSP. See [Import HTML5 Creative](/v1/docs/import-html5-creative) for more information.