Ads.txt Generator – Create and Validate Your Ads.txt File
Use the Ads.txt Generator above to create an authorized digital sellers file for your website or app. Add seller records, choose DIRECT or RESELLER relationships, import existing lines, remove duplicates and generate a clean file you can publish.
Ads.txt lets publishers declare which advertising systems may sell their digital inventory, helping buyers identify authorized sellers.
The format is maintained by IAB Tech Lab.
What Is ads.txt?
Ads.txt stands for Authorized Digital Sellers.
It is a public text file placed on a publisher’s domain that lists companies authorized to sell or resell the publisher’s advertising inventory.
For a website, the file normally appears at:
https://example.com/ads.txt
Each seller record identifies the advertising system, the publisher or seller account, the relationship and, when available, a certification authority ID.
A typical line looks like:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
Your actual seller ID must come from your advertising account or ad network. Do not copy placeholder IDs from examples.
Why Do Publishers Use ads.txt?
Programmatic advertising involves publishers, exchanges, resellers and buyers. Ads.txt gives buyers a domain-controlled source for checking whether a seller is authorized, helping reduce domain spoofing and counterfeit inventory.
Ads.txt does not guarantee ad revenue, but major advertising platforms strongly encourage correct implementation.
How to Use This Ads.txt Generator
Choose whether you are creating ads.txt for a website or app-ads.txt for an app.
Enter your publisher ID when a network preset requires it.
Add the seller records provided by your advertising partners. You can create rows individually or paste existing records in bulk.
For each record, verify:
- Advertising system domain
- Seller or publisher account ID
- Relationship type
- Certification authority ID, when supplied
You can also add ads.txt 1.1 variables such as OWNERDOMAIN or MANAGERDOMAIN when they apply.
Generate the file, review validation warnings and publish only after confirming every seller ID with the relevant network.
Understanding the Four ads.txt Fields
A standard seller record can contain four comma-separated fields.
Example:
example-ad-system.com, seller123, DIRECT, abcdef1234567890
Field 1: Advertising System Domain
This is the canonical domain name of the advertising system or exchange.
Use the domain supplied by the partner. Do not substitute a marketing website, login domain or guessed company domain.
Field 2: Seller Account ID
This identifies your account within that advertising system.
It may be called a publisher ID, seller ID or account ID depending on the platform.
This value must match the account through which your inventory is sold.
Field 3: DIRECT or RESELLER
This describes your relationship with the seller account.
Use DIRECT when you directly control the account identified in field two.
Use RESELLER when another company controls the account and is authorized to resell your inventory.
Do not choose DIRECT simply because it sounds better. The value should describe the actual business relationship.
Field 4: Certification Authority ID
This optional field identifies the advertising system within a certification authority.
Many well-known ad systems provide a standard value.
Use the value your advertising partner supplies rather than inventing one.
DIRECT vs RESELLER
This is one of the most common areas of confusion.
DIRECT means the publisher directly controls the seller account listed in the record.
RESELLER means the publisher has authorized another entity that controls the listed account to sell the inventory.
A publisher can legitimately have both types of records in one file.
The relationship is not a quality rating. A RESELLER entry is not automatically bad, and DIRECT does not mean the inventory is more valuable.
Accuracy matters more than trying to minimize one label.
What Is ads.txt 1.1?
IAB Tech Lab released ads.txt 1.1 with additional variables designed to improve transparency around inventory ownership and management.
Two important additions are:
OWNERDOMAINMANAGERDOMAIN
These values provide more context about the business entities involved.
OWNERDOMAIN identifies the business domain that owns the media property.
MANAGERDOMAIN can identify a company that exclusively or primarily manages monetization for the inventory owner in applicable relationships.
Not every publisher needs every variable. Add them only when they accurately describe your setup.
What Is OWNERDOMAIN?
OWNERDOMAIN helps identify the organization that owns the inventory.
For example:
OWNERDOMAIN=example.com
This can be useful in cases where the domain hosting content, the corporate owner and the advertising relationships are not immediately obvious.
Use the business domain appropriate to the ownership structure defined by the specification.
Do not use OWNERDOMAIN as another place to list an ad network.
What Is MANAGERDOMAIN?
MANAGERDOMAIN identifies an entity involved in managing the publisher’s monetization when the required relationship applies.
This is particularly relevant for publishers working with a monetization partner.
Do not add a manager merely because a company appears somewhere in your ad stack.
The value should reflect the role defined by the ads.txt standard and your actual commercial arrangement.
What Is app-ads.txt?
App-ads.txt extends the authorized sellers concept to applications.
It is used for mobile apps, connected TV apps and other software distributed through app stores or similar environments.
The app store listing connects the app to a developer website, and buyers can then locate the app-ads.txt file associated with that developer domain.
The seller-record format is closely related to ads.txt, but correct developer-domain configuration is essential.
If you are monetizing a mobile app, select the app-ads.txt option in the generator and follow the implementation instructions from your app store and ad partners.
Where Do I Get My Ads.txt Lines?
Get them directly from the advertising platforms, exchanges or monetization partners you actually use.
For Google AdSense, your ads.txt line contains your own pub- publisher ID.
Other platforms provide their own required domain, seller ID, relationship type and certification ID.
Do not build a large file by copying lines from another website.
Their seller relationships and account IDs are not yours.
A copied ads.txt file can authorize the wrong accounts and create verification or monetization problems.
How to Publish ads.txt
For a normal website, upload the final file so it resolves at:
/ads.txt
Check the live URL in your browser.
The file should be publicly accessible without login and should show plain-text seller records.
Advertising platforms may need time to recrawl changes. If a platform reports an issue, compare its recommended line with the live file rather than only checking your local copy.
How to Update an Existing ads.txt File
Do not automatically replace the whole file when adding a new ad partner.
Import your existing records, merge the new lines and remove exact duplicates.
Then verify whether any old seller relationships are no longer valid.
Ads.txt should represent current authorized sellers, not every advertising company you have ever tested.
Keeping records sorted by domain can make future reviews easier because additions and removals are easier to spot.
Common Ads.txt Errors
One common error is using the wrong publisher ID.
Another is placing the file somewhere other than the root of the site.
Other mistakes include:
- Misspelling the ad system domain
- Using DIRECT when the relationship is actually RESELLER
- Copying another publisher’s records
- Leaving placeholder IDs in production
- Publishing duplicate lines
- Keeping sellers that are no longer authorized
- Using an incorrect developer website for app-ads.txt
- Returning an HTML error page instead of the text file
Validation can catch formatting problems, but it cannot know whether a seller relationship is commercially legitimate. You still need to verify the account information.
Ads.txt and SEO
Ads.txt is not a normal SEO ranking file.
It is part of the advertising supply-chain ecosystem, not a page designed to rank in organic search.
Do not add ads.txt records to improve keyword rankings, indexing or crawl frequency.
Likewise, do not block your ads.txt file casually in robots.txt if advertising partners need to fetch it — see the AI Crawler Robots.txt Generator.
The file’s value depends on being publicly accessible to systems that verify authorized sellers. For genuine SEO work, use the Canonical Tag Generator and the Sitemap Index Generator instead.