When a banner's clickTag doesn't work, the click handler is rarely the problem. Usually the ad was written for a different platform than the one it was uploaded to. Google Ads, the most common destination, doesn't read a clickTag at all. Most other failures come down to a misspelled variable, a hardcoded landing URL, or a layer covering the click area.
This guide starts with a symptom table, then walks through each cause with a fix you can paste. At the end there's a per-platform table showing how each ad platform expects the click to be wired.
Disclosure: I build Foldwrap, an HTML5 banner tool whose exporter has to get this right for every platform it supports. Every rule below comes from the platform's own documentation, linked inline.
What a clickTag is
A clickTag is a JavaScript variable that holds the click-through URL. The ad server sets or replaces it at serve time, usually with a tracking redirect that counts the click and then forwards it to the landing page. The creative only has to open whatever URL the variable contains. That way the same ZIP can be trafficked to different landing pages without re-exporting.
IAB Tech Lab's HTML5 for Digital Advertising guidance asks for a variable named clickTag "with appropriate camel-case capitalization", opened with window.open(clickTag, '_blank'). The minimal version:
<head>
<meta name="ad.size" content="width=300,height=250">
<script>var clickTag = "https://www.example.com/landing";</script>
</head>
<body>
<a id="click-area" href="#"
onclick="window.open(window.clickTag, '_blank'); return false;">
<!-- the whole ad goes inside -->
</a>
</body>
Many platforms follow this pattern. Several don't, and that mismatch causes most clickTag failures.
Quick diagnosis
| Symptom | Most likely cause |
|---|---|
Google Ads validator: ExitApi.exit() call not found | Google Ads doesn't read clickTag (cause 1) |
| Click does nothing anywhere, even locally | Variable undefined or misspelled, or the handler is never attached (causes 2, 5) |
| Works locally, but after upload goes to the fallback URL | URL hardcoded, or not read from the query string (causes 3, 4) |
| Clicks land, but reports show zero clicks | A hardcoded URL bypasses the platform's click tracker (cause 4) |
| Only part of the ad is clickable | Another layer sits on top of the click area (cause 5) |
HTML5 ad contains multiple exits | More exits than the platform allows (cause 6) |
| Landing page replaces the publisher's page | Missing _blank (cause 7) |
| Nothing happens in the platform preview | Some previews never click through (cause 8) |
Cause 1: the platform doesn't use clickTag
Several large platforms want a vendor API call or a macro instead of a clickTag variable. Uploading a generic clickTag creative to one of them makes the click fail, or gets the upload rejected outright.
Google Ads uses ExitApi, not clickTag
For HTML5 ZIPs uploaded to Google Ads (Display), the click goes to the final URL you set in the Google Ads interface. The creative signals the click by calling ExitApi.exit() from Google's exit script:
<head>
<meta name="ad.size" content="width=300,height=250">
<script src="https://tpc.googlesyndication.com/pagead/gadgets/html5/api/exitapi.js"></script>
</head>
<body>
<a id="click-area" onclick="ExitApi.exit()">
<!-- the whole ad goes inside -->
</a>
</body>
To confirm it, we built four 300×250 test bundles and ran them through Google's HTML5 validator for Google Ads, the checker Google's upload error help page points to:
| Test bundle (Sept 21, 2026) | Validator result |
|---|---|
clickTag + window.open | Fail: Exit API Script, ExitApi.exit() call not found |
| No click code at all | Fail: same error |
clickTag + clickTag2 (two exits) | Fail: Exit API Script |
exitapi.js + ExitApi.exit() | Pass |
The validator has no clickTag check. It doesn't treat a clickTag as an exit at all.
Google's own pages disagree
The same error help page still lists "Your HTML5 ad is modifying clickability, which is not supported". It says ExitApi.exit() in ads built outside Google Web Designer is not supported, and that removing the script makes "your entire ad clickable". The validator that page links to requires the opposite. We follow the validator, because it's the check you can actually run. Run your own bundle through it before uploading, and if the account rejects it anyway, the help page's version is the one to try.
Three other Google Ads rules affect the click. Google Ads allows only one exit ("Google Ads doesn't allow multiple exits"). The external scripts you may load are limited to an allowlist (see the Google Ads spec page). And HTML5 upload itself is gated by account history, a separate rejection reason that has nothing to do with your code.
Other platforms with their own click call
| Platform | What the creative calls | Source |
|---|---|---|
| Google Studio (rich media) | Enabler.exit('Background Exit') after loading Studio's Enabler. Exit URLs are set in Studio, up to 100 exits | |
| Amazon DSP | SDK.clickThrough(). "You can't include an external link directly in your HTML5 zip file" | Amazon |
| Flashtalking (Innovid) | myFT.applyClickTag(element, 1); URLs are managed at campaign level | Flashtalking |
| Simpli.fi | The {{clickMacro}} macro, replaced at serve time: window.open('{{clickMacro}}') | Simpli.fi |
Fix: find out the destination platform before export, and wire the click the way that platform documents. A creative that runs on several platforms needs a separate build for each.
Cause 2: wrong variable name or capitalization
JavaScript is case-sensitive: clickTag, clickTAG and clicktag are three different variables. If the ad server sets clickTAG and your code opens clickTag, the click opens undefined or nothing at all.
Platforms don't agree on the spelling:
clickTag: IAB, Campaign Manager 360, Google Ad Manager, DV360, Xandr, Equativ, Quantcast, AdRoll, StackAdapt.clickTAG: The Trade Desk ("The Trade Desk Platform defaults to clickTAG", spec PDF), Adform, Choozle.- Either: Basis reads a query parameter "named clickTag or clickTAG" (Basis). Yahoo DSP calls the variable "not case sensitive" (Yahoo).
Fix: use the exact spelling from the platform's spec. If one file has to tolerate both spellings, read both, the way Yahoo's guidance allows:
window.clickTag = window.clickTag || window.clickTAG || "https://www.example.com/landing";
Adform is a special case. Its click URL is read through Adform's own helper (dhtml.getVar('clickTAG', 'https://example.com')), and if the banner has more than one exit, every one of them must be declared in a manifest.json (Adform).
Cause 3: the URL arrives in the query string, but the code never reads it
Some platforms don't overwrite a variable in your file. They pass the click URL as a parameter on the creative's own address, like index.html?clickTag=https%3A%2F%2Ftracker…. Xandr: "The ad URL returned to a publisher's page includes a clickTag parameter in the query string" (Microsoft). The Trade Desk, Basis and Choozle work the same way.
If your file only declares var clickTag = "https://…", it never looks at the query string. Every click goes to your hardcoded fallback, and the platform's tracker never sees it.
Fix: read the parameter and keep a fallback for local testing:
var clickTag = (function () {
// the i flag matches both clickTag and clickTAG
var m = /[?&]clickTag=([^&]*)/i.exec(window.location.search);
return m ? decodeURIComponent(m[1]) : "https://www.example.com/landing";
})();
Cause 4: a hardcoded landing URL
The opposite mistake is opening the landing page directly with window.open("https://brand.com/offer") and never touching the variable. The click works, so nobody notices, but it goes around the ad server's click tracker. Reports show zero clicks, and changing the landing page means re-exporting the creative.
Platforms say this in different words. Yahoo: "Remove any code that sets clickTAG to another url" (Yahoo). CM360: "Make sure your creative uses the click tag variable as the click destination", and "You can change the landing page your click tag uses anytime, even after you export tags" (Google). Equativ is fine with an empty variable: "If not used, leave the variable value empty, as follows: var clickTag=""" (Equativ).
Fix: every click handler opens the variable, never a literal URL. A default value inside the clickTag declaration is fine. A literal URL inside window.open() is not.
One exception goes the other way: AdRoll expects the creative to carry the destination URL itself (AdRoll). Check this field on each platform's spec before leaving the value empty.
Cause 5: something covers the click area
The clickTag is fine, but the element with the click handler sits under something else. Common culprits are an animated layer, a full-size decorative image, a particle effect, or a border div added late. The browser delivers the click to the top element, which has no handler. You'll typically see the CTA work while the photo doesn't, or the ad stop being clickable after the last animation step.
Fix: either put a full-size click layer on top of everything, or let clicks pass through decorative layers:
#click-area { position: absolute; inset: 0; z-index: 1000; cursor: pointer; }
.decor, .overlay, .particles { pointer-events: none; }
To find the layer that's stealing clicks, open the ad in a browser and run document.elementFromPoint(150, 125) in the console with coordinates inside the dead area. Whatever it returns is the layer receiving the click.
Cause 6: more exits than the platform allows
Separate destinations for the logo, the product and the CTA are a common ask, but many platforms only support one click area per ad:
- One exit only: Google Ads, DV360, Yahoo DSP, Quantcast ("The entire unit would be considered a single click area", Quantcast), The Trade Desk, Xandr, Basis.
- Multiple exits: CM360 and Google Ad Manager (numbered click tags, as in IAB's
clickTag1,clickTag2), Adform (declared inmanifest.json), Google Studio (up to 100), Flashtalking.
Google Ads rejects a multi-exit upload with "HTML5 ad contains multiple exits".
Fix: for single-exit platforms, wrap the whole ad in one click area that opens one variable. Send per-element destinations only to platforms that report them.
Cause 7: the landing page opens in the same tab
window.location = clickTag, or a plain link without target="_blank", navigates the ad's own iframe or replaces the publisher's page. Most platforms forbid that. DV360: "the landing page must open in a new tab or new window" (Google). The Trade Desk, Basis and Choozle say the same.
Fix: always window.open(clickTag, '_blank').
Cause 8: you're testing where clicks never work
Some previews never click through. Google Ads says so directly: "Creatives will not click-through in the ad creation preview or the 'View full size ad' preview pop-up" (Google). Opening index.html from your disk with an empty clickTag does nothing either, which is correct behavior and not a bug.
How to test a click before upload
- Open the ad locally with a test URL in the query string:
index.html?clickTag=https%3A%2F%2Fexample.com. The click should open example.com in a new tab. - Check the variable in the console:
typeof clickTag, clickTagshould print a string with your URL, notundefined. - Click every corner of the ad and use
document.elementFromPointon any dead area (cause 5). - Run the platform's validator if it has one, such as Google's validator for Google Ads.
- Run our free HTML5 banner validator. Drop the ZIP to check whether each platform finds the click integration it expects, along with file size, file count and external hosts. It checks against published specs. Passing it doesn't guarantee the platform will accept the ad.
How each platform wires the click
| Platform | Click mechanism | Name | Exits | Spec |
|---|---|---|---|---|
| General / IAB | clickTag variable | clickTag | Multiple (clickTag1, clickTag2…) | Spec |
| Google Ads | ExitApi.exit() + exitapi.js | none | One | Spec |
| Campaign Manager 360 | clickTag variable | clickTag | Multiple, numbered | Spec |
| Google Ad Manager | clickTag variable in <head> | clickTag | Multiple, numbered | Spec |
| Display & Video 360 | clickTag variable | clickTag | One | Spec |
| Google Studio | Enabler.exit() | Named exits | Up to 100 | Spec |
| The Trade Desk | Query parameter | clickTAG | One | Spec |
| Xandr | Query parameter | clickTag | One | Spec |
| Basis | Query parameter | clickTag / clickTAG | One | Spec |
| Choozle | Query parameter | clickTAG | One | Spec |
| Adform | dhtml.getVar() + manifest | clickTAG | Multiple, in manifest | Spec |
| Yahoo DSP | clickTag variable | Any case | One | Spec |
| Amazon DSP | SDK.clickThrough() | none | One | Spec |
| Flashtalking | myFT.applyClickTag() | Numbered | Up to 20 | Spec |
| Simpli.fi | {{clickMacro}} macro | none | One | Spec |
| Equativ | clickTag variable, may be empty | clickTag | One | Spec |
| Quantcast | clickTag variable | clickTag | One | Spec |
| AdRoll | clickTag variable, URL in file | clickTag | One | Spec |
| StackAdapt | clickTag variable | clickTag | One | Spec |
Each spec page quotes the vendor document behind every value and gives the date it was checked. If a platform you deliver to is missing, tell us and we'll research it.
Skip the hand-wiring
The table above is why one hand-coded clickTag rarely survives a multi-platform campaign. In Foldwrap you pick export targets, and the exporter writes the click code each platform documents: ExitApi for Google Ads, clickTAG for The Trade Desk, query-string reading for Xandr, the Enabler for Studio, and one click area where only one exit is allowed. Preflight flags a missing required URL or flattened element destinations before you export. Each target gets its own HTML5 ZIP, checked against that platform's published specs.
Common questions
Does Google Ads use clickTag?
No. For uploaded HTML5 ads, Google Ads sends the click to the final URL set in the Google Ads interface. Google's HTML5 validator for Google Ads requires the exitapi.js script and an ExitApi.exit() call, and in our September 2026 test it failed bundles that used only a clickTag.
Is it clickTag or clickTAG?
It depends on the platform. IAB, Campaign Manager 360, Google Ad Manager, DV360 and Xandr use clickTag. The Trade Desk, Adform and Choozle use clickTAG. JavaScript is case-sensitive, so use the exact spelling from the platform's spec.
Why does my banner click work locally but not after upload?
Either the URL is hardcoded and the platform's value is ignored, or the platform passes the URL as a query parameter (Xandr, The Trade Desk, Basis, Choozle) and the code never reads it. Read the variable or query parameter instead of a literal URL.
Should the clickTag variable contain my landing page URL?
On most platforms you can leave it empty or use the landing page as a fallback, because the ad server replaces it and you set the real URL in the platform. AdRoll is an exception that expects the URL in the file. Never open a literal URL in the click handler itself, or the platform cannot count the click.
Can an HTML5 banner have more than one click-through URL?
Only on platforms that support multiple exits, such as Campaign Manager 360, Google Ad Manager, Adform, Google Studio and Flashtalking. Google Ads, DV360, The Trade Desk, Xandr, Yahoo DSP and Quantcast allow one click area per ad.
How do I test a clickTag?
Open index.html with a test URL in the query string, for example index.html?clickTag=https%3A%2F%2Fexample.com, and click every part of the ad. Check the variable in the browser console, then run the platform's own validator and the Foldwrap HTML5 banner validator before upload.



