With a custom HTML banner you place your own HTML code into an ad slot instead of an image or video. Use it for interactive HTML5 creatives or to deliver ads from an external ad server.
Add a custom HTML banner
- Go to Advertisement › Ad campaigns, open the campaign and switch to the Ad Sets tab.
- Enter a Name and, if needed, a Destination URL.
- Choose Custom HTML as Media type and choose the Dimensions.
- Paste your code into the HTML field.
- Click Add banner.
All fields are explained in Ad campaigns.
Important: Your HTML must fit the size selected in Dimensions. Responsiveness or fixed dimensions must be handled inside the code itself. Scripts must come from approved ad networks.
Use case: custom-coded HTML5 banners
Embed fully interactive HTML5 creatives, often built with tools like Google Web Designer. They can include animations, clickable elements and dynamic behavior using HTML, CSS and JavaScript. Typical examples:
- Product carousels
- Animated brand messages
- Mini-games
- Interactive calls to action
Example:
<div style="width:100%; height:100%; background:#f0f0f0;">
<h2 style="text-align:center;">Try Our New Product!</h2>
<img src="https://example.com/banner.jpg" style="width:100%;" />
</div>
Use case: external ad server scripts
Inject a third-party ad server script into the slot to serve ads from platforms like Google Ad Manager, Adform or your own ad system. Such scripts can load dynamic content, track and render creatives on the fly.
<script async src="https://ads.example.com/render?id=12345"></script>
Limitations in apps
In the apps, HTML ads run in a WebView, not in a full browser. Keep in mind:
- JavaScript is sandboxed (iOS WKWebView, Android WebView).
- Click tracking and redirects can behave differently than in a browser.
- CORS issues can affect asset loading.
- Access to the user agent or cookies can be limited.
Best practices
- Use only secure (HTTPS) asset and script URLs.
- Keep creatives lightweight for fast loading.
- Make sure the HTML fits the selected dimensions to avoid scrollbars or clipping.
- Include fallback content in case a script fails to load.
- Test every HTML banner on iOS and Android before going live.
When to use custom HTML
| Recommended if | Not recommended if |
|---|---|
| You want maximum creative control. | You rely on desktop-style tracking or complex browser behavior. |
| Your client requires custom interactive formats. | You cannot ensure compatibility with mobile WebViews. |
| You need to integrate an external ad network that is not natively supported. |