Building HTML5 with Google Web Designer
  • 07 Jun 2024
  • 2 Minutes to read
  • Dark
    Light

Building HTML5 with Google Web Designer

  • Dark
    Light

Article summary

This page helps you build an HTML5 creative using Google Web Designer.

New Ad from Template

  1. Download the adgear_html5_gwd_template.html file.
  2. In Google Web Designer, click Open File to open the HTML file.
  3. Use the Save as template option so that you can re-use that template later.
  4. Once the template is imported, click Use Template.
  5. Click My Templates and select the template you created
  6. Jump to the Click Button section to create your click button.

New Ad (From scratch)

When building a new file, you can select Banner, under Ads.
For the environment, make sure to select Non-Google Ad .

Add the AdGear HTML5 API

  1. To add the reference to AdGear HTML5 API JavaScript file, click the Code View button, next to the Design View button.
  2. From the code view, find the </head> closing tag and just before that tag, add the AdGear HTML5 API JavaScript.

Code Snippet

<script type="text/javascript" src="https://h5.adgear.com/v2/js/html5.min.js"></script>

Click Button

Make sure you are on the Design view.

  1. Use the Element tool to create a rectangle.
  2. Select your click button on the scene with the Selection tool.
  3. Set an ID to this element, in the Properties section of the right panel.
  4. Double-click your element.
  5. On the right panel, click Components.
  6. Drag the Tap Area component to the scene.
  7. On the right panel, click Properties.
  8. Edit the top and left to 0px, and the width and height to 100% (click px and change it for %).
  9. Right-click your element on the scene and click Add event...
  10. In the Event panel, click Tap Area and select Touch/Click.
  11. In the Action panel, click Custom and select Add custom action.
  12. Give a name to the custom action. In our example, we'll use adgearClickThrough.
  13. In the code section, add the call to the AdGear’s clickThroughfunction with clickTAG as the click name, and click OK.

Code Snipet

    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 HTML5.

Publish

  1. Go to File, click Publish and select Publish locally.
    1. Alternatively, click the Publish icon on the top right of the screen and select Publish locally.
  2. In the Publish settings, we suggest that you check the Create Zip option, as Samsung DSP requires the package to be a zip file.
  3. We also recommend that you check the Minify option, to minimize the total file size of the ad. For the other options, select the ones that fit your needs.

Other Google Web Designer Tutorials


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.