ads.txt Auditor avatar

ads.txt Auditor

Pricing

Pay per usage

Go to Apify Store
ads.txt Auditor

ads.txt Auditor

Fetch and deeply audit a public website's /ads.txt file for IAB Authorized Digital Sellers spec compliance.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Sanskar Jaiswal

Sanskar Jaiswal

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

Fetches and deeply audits a public website's /ads.txt file for IAB Authorized Digital Sellers spec compliance. Parses every entry, validates field formatting, checks DIRECT/RESELLER classification, verifies authority ID presence, detects duplicate entries, checks for app-ads.txt availability, and optionally reads OWNERDOMAIN/MANAGERDOMAIN variables from ads.txt v1.1. Returns a readiness score, letter grade, issues, and recommendations. Built for ad ops teams, programmatic advertising engineers, supply chain transparency auditors, and publisher QA workflows.

Use cases

  • Verify that a published ads.txt file conforms to the IAB Authorized Digital Sellers format after a deploy or CMS migration.
  • Detect invalid entries with missing fields or incorrect account types that buyers and DSPs may reject.
  • Find duplicate entries (same ad system domain, publisher ID, and account type) that cause buyer confusion.
  • Identify RESELLER entries missing the TAG-ID authority ID, reducing supply chain transparency.
  • Check whether app-ads.txt is published for in-app inventory verification.
  • Confirm ads.txt is served over HTTPS with the correct text/plain Content-Type.
  • Detect ads.txt v1.1 OWNERDOMAIN and MANAGERDOMAIN variables for improved seller transparency.
  • Run scheduled checks on publisher domains to catch ads.txt configuration drift after deploys and CDN cutovers.
  • Feed structured results into ad ops dashboards or CI pipelines.

Input

FieldTypeDescription
startUrlstringPublic HTTP or HTTPS website URL to audit. The actor fetches /ads.txt from this domain. URLs with credentials and private network targets are rejected.
checkAppAdsTxtbooleanAlso check for /app-ads.txt availability and validity. Defaults to true.
timeoutSecondsintegerRequest timeout from 3 to 30 seconds. Defaults to 10.

Output

The actor pushes one dataset item per run.

FieldTypeDescription
inputUrlstringOriginal URL from input.
normalizedInputUrlstringNormalized input URL after defaulting the scheme.
finalUrlstringFinal URL of the ads.txt fetch after redirects.
httpsbooleanTrue when the ads.txt was served over HTTPS.
okbooleanTrue when the fetch succeeded.
checkedAtstringISO timestamp for the audit.
adsTxtFoundbooleanTrue when /ads.txt was found and returned a valid response.
adsTxtStatusinteger or nullHTTP status code from the ads.txt fetch.
adsTxtUrlstring or nullThe full URL of the ads.txt file.
adsTxtContentTypestring or nullContent-Type header from the ads.txt response.
adsTxtLineCountintegerTotal number of lines in the ads.txt file.
rawAdsTxtstring or nullRaw ads.txt content (up to 2 MB).
appAdsTxtFoundbooleanTrue when /app-ads.txt was found and returned a valid response.
appAdsTxtStatusinteger or nullHTTP status code from the app-ads.txt fetch.
appAdsTxtUrlstring or nullThe full URL of the app-ads.txt file.
appAdsTxtEntryCountintegerNumber of valid entries in app-ads.txt.
entriesarrayParsed and validated ads.txt entries.
entryCountintegerNumber of valid entries.
directCountintegerNumber of DIRECT entries.
resellerCountintegerNumber of RESELLER entries.
commentCountintegerNumber of comment lines.
blankLineCountintegerNumber of blank lines.
duplicateCountintegerNumber of duplicate entries.
invalidEntryCountintegerNumber of invalid entries.
invalidEntriesarrayList of invalid entries with reasons.
duplicateEntriesarrayList of duplicate entries.
uniqueDomainsarrayList of unique ad system domains.
uniqueDomainCountintegerNumber of unique ad system domains.
variablesarrayParsed variable assignments (OWNERDOMAIN, MANAGERDOMAIN, etc.).
scoreintegerads.txt readiness score from 0 to 100.
gradestringLetter grade from A+ to F.
issuesarrayHuman-readable issues.
recommendationsarraySuggested fixes.
errorstring or nullFetch-level error, if the request failed.

Per-entry fields

Each object in the entries array contains:

FieldTypeDescription
adSystemDomainstringAd system domain (lowercased).
publisherAccountIdstringPublisher account ID.
accountTypestringDIRECT or RESELLER.
authorityIdstring or nullAuthority ID (TAG-ID) if present.
rawstringRaw line from the ads.txt file.
issuesarrayPer-entry issues with severity and message.

Example input

{
"startUrl": "https://example.com/",
"checkAppAdsTxt": true,
"timeoutSeconds": 10
}

Example output

{
"inputUrl": "https://example.com/",
"normalizedInputUrl": "https://example.com/",
"finalUrl": "https://example.com/ads.txt",
"https": true,
"ok": true,
"checkedAt": "2025-01-01T00:00:00.000Z",
"adsTxtFound": true,
"adsTxtStatus": 200,
"adsTxtUrl": "https://example.com/ads.txt",
"adsTxtContentType": "text/plain; charset=utf-8",
"adsTxtLineCount": 5,
"rawAdsTxt": "greenbold.com, 1234, DIRECT, 5345b8ed5e\nrubiconproject.com, 5678, RESELLER, 0ba5b8ed5e\nOWNERDOMAIN=example.com\n# authorized sellers\n",
"appAdsTxtFound": false,
"appAdsTxtStatus": 404,
"appAdsTxtUrl": "https://example.com/app-ads.txt",
"appAdsTxtEntryCount": 0,
"entries": [
{
"adSystemDomain": "greenbold.com",
"publisherAccountId": "1234",
"accountType": "DIRECT",
"authorityId": "5345b8ed5e",
"raw": "greenbold.com, 1234, DIRECT, 5345b8ed5e",
"issues": []
},
{
"adSystemDomain": "rubiconproject.com",
"publisherAccountId": "5678",
"accountType": "RESELLER",
"authorityId": "0ba5b8ed5e",
"raw": "rubiconproject.com, 5678, RESELLER, 0ba5b8ed5e",
"issues": []
}
],
"entryCount": 2,
"directCount": 1,
"resellerCount": 1,
"commentCount": 1,
"blankLineCount": 1,
"duplicateCount": 0,
"invalidEntryCount": 0,
"invalidEntries": [],
"duplicateEntries": [],
"uniqueDomains": ["greenbold.com", "rubiconproject.com"],
"uniqueDomainCount": 2,
"variables": [
{ "type": "variable", "name": "OWNERDOMAIN", "value": "example.com", "raw": "OWNERDOMAIN=example.com" }
],
"score": 98,
"grade": "A+",
"issues": [],
"recommendations": [
"If the domain has a mobile app, publish an app-ads.txt file at the root for in-app inventory verification."
],
"error": null
}

Security

  • Only public HTTP and HTTPS URLs are fetched.
  • URLs with usernames or passwords are rejected.
  • Private IPv4, private IPv6, localhost, link-local, and private DNS resolutions are blocked before fetching.
  • Redirect destinations are revalidated before they are followed.
  • The actor does not require logins, cookies, browser sessions, or credentials.
  • The actor fetches only /ads.txt and optionally /app-ads.txt from the provided domain. It does not fetch any URLs referenced inside the ads.txt file.

Pricing

EventSuggested price
Actor start$0.005
Site audited$0.01

Suggested launch price: about $0.015 per audited site. Teams can schedule the actor for recurring checks on publisher domains after deploys and CDN cutovers.

FAQ

Does this actor crawl multiple URLs or a whole site?

No. It fetches /ads.txt (and optionally /app-ads.txt) from one domain per run. This keeps runs cheap and predictable for CI and scheduled monitoring.

How does the score work?

The score starts at 100 and is reduced for: invalid entries (-10 each, capped at -40), duplicate entries (-5 each, capped at -20), RESELLER entries without authority ID (-3 each, capped at -15), missing app-ads.txt (-5), non-HTTPS delivery (-10), incorrect Content-Type (-3), and zero valid entries (-30). A bonus of +3 is added when OWNERDOMAIN or MANAGERDOMAIN variables are present (ads.txt v1.1). Files that are entirely absent receive an F.

What is the IAB ads.txt format?

Each data line in an ads.txt file is: adSystemDomain, publisherAccountId, DIRECT|RESELLER, authorityId. The authority ID is typically the TAG-ID from the Trustworthy Accountability Group. Lines starting with # are comments. Blank lines are ignored. Version 1.1 adds optional OWNERDOMAIN and MANAGERDOMAIN variables for improved seller transparency.

What is the difference between this actor and ads.txt scrapers on the Apify Store?

Existing ads.txt scrapers extract seller entries from ads.txt files but do not validate IAB spec compliance, do not score file quality, do not detect duplicates or invalid entries, do not check for RESELLER authority IDs, and do not verify app-ads.txt availability or Content-Type correctness. This actor returns one structured audit diagnostic per domain with a readiness score, letter grade, issues, and recommendations suitable for scheduled monitoring and pipeline checks.

What is app-ads.txt?

app-ads.txt is the mobile app counterpart of ads.txt. It is published at /app-ads.txt and lists authorized sellers for a publisher's in-app ad inventory. The actor checks for its presence and parses entry count when checkAppAdsTxt is enabled (default: true).