On this page
A reachable ads.txt file is a useful starting point, but it does not prove that every listed seller is authorized or that every buyer will interpret the file as you expect. This checklist explains how to check your ads.txt file, follow redirects, and compare its seller entries with your team's commercial records before a campaign launches.
This article is an operational starting point, not a substitute for the current IAB Tech Lab specification or your advertising platforms' documentation. Those sources were not available to consult for this article, so confirm platform-specific requirements and current syntax before publishing changes.
Key Takeaways
- Request the site's root
/ads.txtURL with a GET request and inspect the final destination, status, and response body. - Compare each seller domain, account ID, and relationship type with an authoritative record of the arrangement.
- A successful HTTP response does not establish that the file is valid, current, or commercially accurate.
- Check each relevant platform's current instructions; do not assume that every platform processes records or changes identically.
How to check your ads.txt file
Start with the domain associated with the inventory you are reviewing. An ads.txt file is conventionally requested at the root path, such as https://example.com/ads.txt, rather than inside a page directory. Replace example.com in the following commands with your own domain.
Before testing, confirm which domain the platform expects for the inventory. If you operate multiple domains or subdomains, review the current IAB specification and platform instructions for the applicable publishing and delegation rules rather than assuming one file covers all of them.
1. Request the file and inspect redirects
Run this command in a terminal with curl installed:
curl -sS -L --max-redirs 5 \
--connect-timeout 10 --max-time 30 \
-D ads-headers.txt -o ads-body.txt \
-w 'Final URL: %{url_effective}\nHTTP status: %{http_code}\n' \
https://example.com/ads.txt
The command follows up to five redirects, saves the response headers and final body separately, and prints the final URL and status. Review both files:
cat ads-headers.txt
cat ads-body.txt
For the final response, check that the status is successful and that the body is the intended text file—not an error page, login page, bot challenge, or unrelated site content. In the headers file, inspect the redirect responses and their Location fields to see the path from the original URL to the final destination. Confirm that each destination is expected and controlled or approved by your organization.
A redirect to a hosted file may be intentional, but reachability alone does not establish that a particular redirect chain meets the current specification or a platform's rules. Check those rules before relying on it. Also note that curl can exit successfully after receiving an HTTP error response, so read the printed status rather than relying only on the command's exit code.
Advertisement
2. Inspect the file's contents
A seller record commonly has this shape:
seller-system.example, publisher-account-id, DIRECT, certification-authority-id
This is an illustrative record, not an entry to publish. The first field identifies the advertising system, the second identifies the publisher's account with that system, and the third describes the relationship, commonly DIRECT or RESELLER. A certification-authority ID can appear as a fourth field. Confirm the exact field requirements, permitted values, comments, and other syntax against the current IAB Tech Lab specification before editing a live file.
Inspect the actual body for incomplete lines, unexpected characters, duplicated or conflicting entries, and records that appear to belong to another property. A file can contain non-seller directives as well as seller records; do not delete a line simply because it does not resemble the example above. Check its meaning in the current specification first.
Compare seller entries with authorized accounts
Use an access-controlled inventory of approved partners and account records. For each seller entry, work through this checklist:
- Identify the seller system. Match the listed domain to the domain the advertising partner instructs you to publish. A familiar brand name is not enough to establish that the record is correct.
- Verify the account ID exactly. Compare it with the ID in the relevant platform account or partner-provided record. Watch for transposed characters, extra whitespace, and IDs from another property or organization.
- Confirm the relationship. Check whether the arrangement is direct or through a reseller, using the relevant agreement and platform instructions. Do not infer the relationship solely from who sent you the line.
- Check the optional identifier. If a certification-authority ID is present, compare it with the partner's authoritative instructions and investigate a mismatch.
- Check ownership and status. Confirm the partner is approved, the account belongs to the intended legal or operating entity, and the authorization is still active for the inventory.
- Compare in both directions. Investigate unexpected listed partners, then check whether approved partners are missing. A single partner or platform can require more than one record, so validate the complete instructions rather than assuming one line per company.
Keep an owner, approval source, and review date for each entry. Resolve discrepancies with the account owner or partner before changing the file. A reachable file only shows what is being served; it cannot independently prove the underlying business relationship or account ownership.
Advertisement
Platform and launch checks
Before launch, consult the current official documentation for each advertising platform involved. Verify the record values it supplies, the domain and inventory to which they apply, how it reports ads.txt issues, and any stated processing or refresh behavior. Platform documentation was not consulted for this article; do not treat a successful check on one platform as proof that every other platform has accepted the same file.
After an approved change:
- Deploy the file to the intended location and repeat the GET and redirect checks from outside your publishing environment.
- Compare the served body with the approved version. Check for stale CDN or other cached responses if the old content remains visible.
- Review the relevant platform's diagnostics and allow for its documented processing behavior; investigate persistent discrepancies.
- Record the change, approver, deployment time, and verification result. Keep a rollback path for accidental edits.
Common Mistakes
- Checking only the status code. A successful response may serve HTML or the wrong seller records.
- Using only a HEAD request. It does not let you inspect the file body; use GET for the content check.
- Trusting the first URL without following the chain. An unexpected redirect can lead to a different file or domain.
- Copying an account ID from another property. Similar accounts can have different identifiers and authorizations.
- Removing unfamiliar lines without review. They may be legitimate seller records or directives needed for another arrangement.
- Treating ads.txt as commercial due diligence. Publishing a line does not validate the agreement behind it.
Best Practices
Assign ownership of the file and use a documented approval process for additions, changes, and removals. Review seller records against current account information before campaigns and when partner relationships change. Keep the published file under change control, and investigate discrepancies with the relevant platform or partner rather than guessing at the correct record.
Conclusion
Check the root URL, redirect chain, and served content first; then reconcile every seller record with authorized account and relationship records. Finish by checking the current IAB specification and each relevant platform's documentation and diagnostics before relying on the file for launch.
What would your domain sell for?
A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.