ads
GET /v1/public/ads-tag/{public_key}.js
The universal Zinn® Ads script for one site (public, cached).
Authentication
This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/public/ads-tag/{public_key}.jsSigned in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Public (docs/1006 §84, za-128): sites load it as https://zinndigital.com/zat/{public_key}.js, which the public site's edge caches and fills from here. Answered from the cache, never a database read per page view. Sets Google Consent Mode v2 defaults BEFORE any tag loads, then the configured Google, Microsoft and (only after ad consent) Meta tags, and defines zinnAds.conversion(kind, {value_minor | amount, currency, id}), zinnAds.consent({...}) and zinnAds.clickIds(). No personal data. An unknown, removed or switched-off key is a 404 whose body is a JavaScript comment.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
public_key (path) | string | Yes | — |
Errors this endpoint can return
404