Specifications For HTML5 Creatives TTD
Specifications For HTML5 Creatives TTD
Tip
Want a PDF version of the creative specifications? Download it from our
website.
If an ad.size meta tag is not provided in the primary HTML document, you are prompted
to enter dimensions when you submit the creative.
The Trade Desk Hosted HTML5 system requires that you upload a static backup image. This
image is used to display the ad if a user has JavaScript disabled.
Commonly used JavaScript and CSS libraries (such as jQuery) do not need to be included
with the creative.
Including image sprites instead of multiple images decreases the number of file requests
made by your creative and increases its performance.
https://desk.thetradedesk.com/knowledge-portal/en/creatives-specs-html5.html 1/5
5/19/25, 9:47 AM Specifications for HTML5 Creatives
For details on this creative type, see HTML5 For Digital Advertising: Guidance for Ad Designers and
Creative Technologists.
File Sizes
The following table lists the supported file sizes for HTML5 creatives. For additional requirements,
see File Packaging.
Subload 600 KB
File size 5 MB
File Packaging
You can use one of the following packaging options:
Here's what you need to know about using compressed (ZIP) files:
All files for displaying the creative (with the exception of commonly used JavaScript and
CSS libraries) should be included in the ZIP file.
The primary HTML file should be located in the root of the ZIP file.
https://desk.thetradedesk.com/knowledge-portal/en/creatives-specs-html5.html 2/5
5/19/25, 9:47 AM Specifications for HTML5 Creatives
ZIP files must contain no more than 100 files, including at least one HTML file for use as the
initiating file for display. Keep the file count low to minimize browser performance impact.
You can include only HTML, JS, CSS, MP4, JPG, JPEG, GIF, PNG, and SVG files in a ZIP file.
When packaging HTML5 creatives, include the asset files, not the folder containing them, in
the ZIP file:
The following table lists the maximum file size requirements for compressed files. See also File
Sizes.
You can customize the name of the URL parameter when uploading or editing the creative.
https://desk.thetradedesk.com/knowledge-portal/en/creatives-specs-html5.html 3/5
5/19/25, 9:47 AM Specifications for HTML5 Creatives
Click tag names are case-sensitive. Be sure to use uniform capitalization throughout the
creative and any supporting files. For example, clickTag and clickTAG are not
interchangeable. The Trade Desk Platform defaults to clickTAG .
When the user clicks the ad, the creative must direct the user to the correct click tag page
in a new window.
If you want to also use that clickthrough URL in your HTML5 creative, you can configure the
creative to use the backup clickthrough URL as the default clickthrough URL.
To call the clickthrough page through the backup ad image correctly, you must supply a
clickthrough parameter.
You can use multiple click-through URLs and define different landing pages for different
actions.
If you append a URL-escaped landing page to the click tag URL, the platform tracks the
click and redirects the request to the given landing page.
Tip
Use JavaScript to read the parameter from the document location URL and
use it to set up the landing page for your clicks. You can use either all single
quotes (') or all double quotes (") in your code, but you cannot mix them.
The following code block shows one way to retrieve and implement a creative with a
clickthrough URL that has been specified in The Trade Desk platform. In this example, a single
image is wrapped with an anchor tag, which, when clicked, opens a new window with the
address stored in the clickTag URL parameter of the creative.
https://desk.thetradedesk.com/knowledge-portal/en/creatives-specs-html5.html 4/5
5/19/25, 9:47 AM Specifications for HTML5 Creatives
<html>
<head>
<script type="text/javascript" charset="utf-8">
function getParameterByName(name) {
1
// Returns the value of URL parameter "name"
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null
? ""
: decodeURIComponent(results[1].replace(/\+/g, " "));
}
var clickTag = getParameterByName("clickTag");
2
</script>
</head>
<body>
<a href="javascript:window.open(window.clickTag);void(0);">
<img src="clickme.jpg"/>
</a>
</body>
</html>
1 This function retrieves the clickTag parameter.
2 The location where the value for the clickthrough URL should be stored in the
window.clickTag variable.
https://desk.thetradedesk.com/knowledge-portal/en/creatives-specs-html5.html 5/5