Privacy signals and ads.txt on your pages
Get consent and ads.txt right before traffic reaches your slots — what the Epom tag reads from your consent manager (TCF 2.x), what a visitor without consent gets, how US privacy signals are treated, the vendor ID (849) to list in your CMP, where your ads.txt lines come from and how the nightly check judges the live file — with a fix-it checklist.
What it is and why
Before real traffic reaches your slots, two things outside the ad tag have to be right. The
consent your visitors give in your consent manager has to reach the ad server — the Universal JS
tag does that on its own for a TCF 2.x CMP — and your ads.txt has to authorise the network that
sells your inventory, or buyers bid less or not at all. The tag behaves the same for every role;
the lines come from your network, and the site’s Supply chain block that shows them (with
Re-check now) needs the Site Supply Chain permission, which no stock role has — ask your
network manager for the lines and the check.
Example. A German news site loads its CMP and the Epom tag on every page. A visitor accepts
the banner: the tag waits for the CMP (at most 5 seconds), sends the TCF string with the request,
and the slot fills with a normal ad. The next visitor declines. The request carries a string with
no consent for vendor 849, and what that visitor gets is the network’s choice — on a network
set to Do not serve ads the slot shows the placement’s Default code; on Do not use any
cookies it shows an ad with no cookies. Meanwhile buyers crawling https://example.de/ads.txt
find northwind-ads.example, 4831207, DIRECT and keep bidding.
Typical scenarios
| You have | Do | Where |
|---|---|---|
| A website with EEA visitors and a TCF 2.x CMP | Add vendor 849 (or the ID your network gave you) to the CMP’s vendor list; load the CMP before the tag; nothing else | Your CMP; the page |
| A video player or outstream unit that loads its own VAST URL | Put gdpr=1&gdprConsentIab=<string> on that URL — the player does not see the tag’s attributes | The VAST URL your player calls |
| An app that calls the ad API | Send gdpr, gdprConsentIab (or your own verdict as uc), and usPrivacy / gpp / gppSid / coppa as request parameters; publish app-ads.txt on the developer website | The API request; the developer website listed on the store page |
| A page where your own logic already knows the verdict | data-user-consent="1" or "0" on the <ins> element | The tag |
| A visitor who opted out under CCPA and your legal setup requires acting on it | Do not load the tag for that visitor, or set data-cookie-policy — the ad server only passes usPrivacy on, it does not enforce it | The page |
| A new site going live | Publish the lines from the site’s Supply chain section at https://<root domain>/ads.txt, then press Re-check now — or ask your network manager to, if the block is not on your role | Account → Publishers → the site (the Site Supply Chain permission); your web server |
Step by step
Two tasks, each on its own page: the consent signals your pages send, and the ads.txt file buyers read.
- Pass consent and privacy signals — list vendor 849 in your TCF 2.x CMP, load the CMP before the tag, pass the signals as parameters on URLs you build yourself, and test from a browser that accepted the banner. What the tag reads, what a visitor without consent gets and how US privacy signals are treated: Pass consent and privacy signals to the ad server.
- Publish your ads.txt — get the lines from your network manager (the site’s Supply chain
section), publish them at
https://<root domain>/ads.txt(orapp-ads.txton the developer website), then press Re-check now and confirm All lines present. Where the lines come from and what each check result means: Publish your ads.txt and app-ads.txt.
Caveats and exceptions
Who does what. As a publisher, everything on this page is on your pages and in your CMP;
the consent policy and your ads.txt lines come from your network. As a network manager,
send each publisher the lines from its site’s Supply chain section, watch the check result,
and tell them which no-consent behaviour the network uses — the policy itself is set by your
network administrator.
The tag-side caveats (data-gdpr-consent-iab, the 5-second CMP wait, players with their own
VAST URL) are on Pass consent and privacy signals to the ad server;
how the live file is fetched is on
Publish your ads.txt and app-ads.txt.
Not working?
| Symptom | Check | Where |
|---|---|---|
| EEA visitors get no ad, or an ad without cookies | The visitor declined (or has not answered) and the network’s no-consent policy is Do not serve ads / a no-cookie option; or vendor 849 is missing from your CMP’s vendor list | The CMP’s vendor list; ask your network manager which policy applies |
| The first ad on a page carries no consent string | The CMP answered after the 5-second wait | Your CMP’s load order — load it before the tag |
| A slot sends no consent at all | data-gdpr-consent-iab is set from an empty variable, which also stops the CMP lookup | The tag’s <ins> attributes — remove the attribute |
| The video player’s requests carry no consent | The player loads its own VAST URL and never sees the tag’s attributes | Add gdpr / gdprConsentIab to the VAST URL |
| A string from an old-style CMP is ignored | Only TCF 2.x strings count; any other version is treated as no consent | Your CMP’s TCF version |
| Buyers under CCPA still get bids | usPrivacy is passed on, not enforced | Stop the tag yourself for opted-out visitors |
| ads.txt check says File not found although the file is there | The file is on a subdomain, the root domain answers a web page or an error, the redirect chain breaks the IAB rules, or bot protection refuses the check’s user agent (the status code is shown) | https://<root domain>/ads.txt in a browser; your CDN / bot rules |
| Could not check | No answer over HTTPS or HTTP, a timeout, or a host / redirect target that is not a public address | The site’s DNS and hosting; the shown reason |
| Missing lines: N right after publishing | The result is from last night’s check | Press Re-check now (Site Supply Chain enabled) |
| A line is in the file but still reported missing | The account ID differs in case or spelling (domain and relationship are compared case-insensitively, the account ID exactly), or the line sits beyond the first 1 MB | The line character by character; the file size |
| No domain to check | The site has no URL, or the app site has no Developer website | The site’s Basic info |
| The check result is not shown at all | No role on the network holds the Site Supply Chain permission, so the nightly check does not run | Ask the administrator to grant it, enabled or read-only |
Reference
Options and fields
Attributes go on the tag’s <ins> element; the request-parameter form is for VAST, API and other
URLs you build yourself.
| Tag attribute | Request parameter | What it does |
|---|---|---|
data-gdpr | gdpr | 1 = GDPR applies, 0 = it does not. Without it the CMP’s answer is used, then the visitor’s location. |
data-gdpr-consent-iab | gdprConsentIab | The TCF 2.x consent string. Set it and the tag stops asking the CMP. |
data-user-consent | uc | Your own verdict: 1 = consented, 0 = not. Overrides the consent string. |
data-cookie-policy | cookie-policy | Cookies for this request, whatever the network setting: 0 normal; 1 no cookies and no server-side frequency counting; 2 no cookies; 3 no user-ID cookie only. |
| — | usPrivacy | The IAB US Privacy string, such as 1YNN. Passed on, not enforced. |
| — | gpp, gppSid | The IAB GPP string and the comma-separated ids of the sections that apply. Passed on, not enforced. |
| — | coppa | 1 for child-directed traffic. Passed on, not enforced. |
| Item | Value |
|---|---|
| Epom’s IAB Global Vendor List ID | 849 (a network may check a different ID) |
| CMP wait | 5 seconds, then the request goes out with what it has |
| ads.txt check | nightly, on networks where a role holds Site Supply Chain; Re-check now on demand; root domain, HTTPS then HTTP, redirects within the root domain + one hop, first 1 MB, user agent Mozilla/5.0 (compatible; ads.txt check) |
| REST | GET /rest-api/sites/{siteId}/ads-txt (lines and last check), POST /rest-api/sites/{siteId}/ads-txt/check (queue a re-check) — see Create and edit a site |
Related
- Pass consent and privacy signals to the ad server
- Publish your ads.txt and app-ads.txt
- Ad tags & API
- Supply chain, sellers.json and ads.txt: setup by scenario
- Header bidding: what a publisher installs
- GDPR and TCF consent
- Publisher playbook
- Go-live checklist
- My ad is not serving
- Frequently asked questions