Developers · Web
Web SDK
Drop-in JavaScript for member websites: render the verified badge, check status live and react to the result.
1. Badge widget Live
Add one script and a placeholder element. The widget draws the official badge, links it to your verify page and, with data-verify, confirms the certificate is active using the public API.
HTML
<script src="https://globaladalliance.com/assets/sdk/gaa-badge.js" defer></script>
<div data-gaa-cert="GAA-2026-871F28" data-style="dark" data-layout="h" data-verify></div>| Attribute | Values | Default |
|---|---|---|
data-gaa-cert | Your certificate ID | required |
data-style | dark · light | dark |
data-layout | h (300×88) · sq (168×168) | h |
data-verify | present / absent | absent |
Events
JavaScript
document.addEventListener('gaa:verified', function (e) {
// e.detail is the VerifyResult from /api/v1/verify/{cert_id}
console.log(e.detail.status, e.detail.node_id);
});Programmatic use
JavaScript
GAABadge.verify('GAA-2026-871F28').then(function (r) {
if (r.valid) { /* show trust UI */ }
});
GAABadge.render(document.querySelector('#badge-slot'), { cert: 'GAA-2026-871F28', style: 'light', layout: 'sq' });2. Plain HTML embed Live
No JavaScript at all: an image wrapped in a link to the verify page.
HTML
<a href="https://globaladalliance.com/verify/GAA-2026-871F28" target="_blank" rel="noopener noreferrer"><img src="https://globaladalliance.com/badge/member/GAA-2026-871F28.svg?style=dark&layout=h" width="300" height="88" alt="Global Ad Alliance verified member" loading="lazy" decoding="async"></a>3. Ad serving tag (MS Ads Network) Live
Publishers selling through the founding exchange use the MS Ads Network one-line tag. Unit codes are issued in the MS Ads Network publisher dashboard.
HTML
<script async src="https://msadsnetwork.com/t.js" data-unit="YOUR_UNIT_CODE"></script>