ads.txt & app-ads.txt Generator & Deduplicator
Generate a clean IAB-compliant google.com, pub-XXXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0 file,
configure OWNERDOMAIN / MANAGERDOMAIN directives, add SSP partner seats, and deduplicate messy legacy ads.txt files in one click.
ads.txt and app-ads.txt
When Google AdSense, Google Ad Manager, or AdMob displays an "Earnings at risk — One or more of your ads.txt files doesn't contain your AdSense publisher ID" banner, programmatic demand partners pause or discount open-exchange bidding until they can verify your root authorization file. Authorized Digital Sellers (ads.txt v1.1 for websites and app-ads.txt v1.0 for mobile and connected-TV apps) is an IAB Tech Lab standard designed to stop domain spoofing and unauthorized inventory reselling.
Every valid seller declaration line uses three or four comma-separated fields on a single UTF-8 plain-text line: the canonical exchange root domain, the publisher's account identifier on that exchange, the commercial relationship (DIRECT or RESELLER), and—where assigned—the Trustworthy Accountability Group (TAG) certification authority identifier.
google.com, pub-XXXXXXXXXXXXXXXX, DIRECT, f08c47fec0942fa0For Google AdSense, AdMob, and Ad Exchange (AdX), every field in the canonical record carries a strict programmatic meaning evaluated by demand-side platforms (DSPs) such as DV360, The Trade Desk, and Criteo:
google.com): Always lowercase google.com without protocol prefixes (never https://www.google.com or regional TLDs like google.co.uk).pub-16digits): Your 16-digit publisher identifier prefixed by pub-. A frequent implementation bug is copying ca-pub-1234567890123456 from HTML <script> tags or copying an AdMob ad-unit ID containing a slash or tilde (ca-app-pub-1234567890123456/9876543210). Crawler parsers expect pub- followed by 16 digits only.DIRECT vs RESELLER): Declare DIRECT exclusively when your organization directly owns and receives payouts from that Google account. Declare RESELLER only when an external ad network, MCM partner, or header-bidding wrapper monetizes ad slots through its own Google seat on your behalf.f08c47fec0942fa0): This 16-character hexadecimal string uniquely identifies Google in the TAG Registry. While technically optional in the base IAB grammar, omitting f08c47fec0942fa0 triggers validation warnings and weakens supply-path verification for strict brand-safety buyers.ads.txt vs Mobile app-ads.txt: Deployment Rules That Trip Up Crawlers
Although web ads.txt and mobile app-ads.txt share identical internal record formatting, crawlers discover them through different trust anchors:
https://example.com/ads.txt): Must live at the registrable root domain over HTTP/HTTPS returning status 200 OK with Content-Type: text/plain. If your content lives strictly on a subdomain such as blog.example.com or tools.example.com, you still publish the primary file at https://example.com/ads.txt and optionally add a SUBDOMAIN=blog.example.com directive if the subdomain delegates to its own seller list.https://developerdomain.com/app-ads.txt): Google Play and Apple App Store crawlers extract the Developer Website URL from your public store listing, translate subdomains according to the IAB registrable-domain rule, and fetch /app-ads.txt from that root host. Hosting your store listing on a free third-party subpath (such as Notion, GitHub repo subpaths, or Linktree) prevents root /app-ads.txt verification—always use a custom domain you control.http://example.com/ads.txt → https://www.example.com/ads.txt) are permitted. Verify that CDN bot-fight modes, geographic IP blocks, or aggressive WAF rules do not return HTML challenge pages (text/html) to Google-adstxt user agents.OWNERDOMAIN and MANAGERDOMAIN in ads.txt v1.1
Starting with IAB Tech Lab ads.txt version 1.1, two root-level variable directives closed a long-standing ambiguity between inventory ownership and outsourced monetization management:
OWNERDOMAIN declares the corporate or portfolio root domain of the legal entity that owns the website or app. For example, if a media operator runs twelve vertical calculator sites under one holding company, setting the same OWNERDOMAIN across all twelve sites lets DSPs match every site cleanly against the business domain listed in Google's sellers.json feed. Only one OWNERDOMAIN line should appear per file.
MANAGERDOMAIN identifies the corporate domain of an exclusive outsourced ad-operations partner (such as Mediavine, Raptive, Ezoic, or Freestar) managing monetization for that property. Self-managed AdSense publishers who run their own ad units should leave MANAGERDOMAIN empty; populating it with your own domain duplicates OWNERDOMAIN without adding supply-path clarity.
ads.txt Files Protects Auction Health
Publishers testing header bidding, mediation waterfalls, or seasonal SSP partners routinely accumulate bloated 2,000-line ads.txt files pasted together from onboarding emails. Over time, three silent defects creep in:
DIRECT and RESELLER rows for the same seat: Listing the exact same exchange domain and seller account ID twice—once as DIRECT and once as RESELLER—creates a supply-chain contradiction when DSPs cross-check OpenRTB schain nodes against exchange sellers.json files.RESELLER seats in your root file months after terminating a mediation contract keeps those intermediaries legally authorized to represent your domain in programmatic auctions.# comment marker break line parsers and trigger syntax warnings in our Ads.txt Validator.
Using the Existing ads.txt Merge & Deduplicate box above resolves all three issues deterministically in your browser: your primary google.com declaration and chosen partner presets act as the source of truth, exact duplicates are stripped, conflicting DIRECT/RESELLER duplicates on the same account ID are collapsed, and unparseable lines are quarantined into an explicit audit report rather than silently corrupting your production file.
Because ads.txt is public by design, disciplined publishers use the exact same identifiers for competitive research. Once you normalize a competitor's pub- ID, run a Reverse AdSense Lookup or open PubSpy Publisher Domains (/id) to see other synced websites authorized under that same DIRECT Google account, compare domain registration dates, and feed monthly visit estimates into our AdSense Revenue & Valuation Calculator.
Keep clear evidence boundaries in mind: public tools read observable seller declarations and domain registry records only. Missing entries in a crawled dataset mean "not yet indexed," never proof of zero revenue, and passing technical syntax checks serves as operational guidance for publishers, not a Google approval guarantee.
The standard four-field declaration is google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0, replacing the sixteen zeros with your 16-digit publisher number and omitting any ca- prefix.
Both follow the same comma-separated IAB seller syntax. Websites serve /ads.txt at the root of the content domain, whereas mobile apps serve /app-ads.txt at the root of the developer website URL linked on Google Play and the Apple App Store.
Use DIRECT when you directly own and control the AdSense, AdMob, or Ad Manager account. Use RESELLER only when listing a third-party network's account ID that sells inventory on your behalf.
Once https://yourdomain.com/ads.txt returns HTTP 200 over plain text and your pages receive ad requests, Google's crawler typically re-fetches within 24 to 72 hours, though low-traffic properties or DNS changes can take up to several days to clear dashboard alerts.
No. A valid ads.txt file verifies authorized seller seats for programmatic buyers, whereas site approval depends on Google's policy and content review. All checks on PubSpy are publisher guidance, not a Google approval guarantee.