Free Ads.txt Generator

Create a correct ads.txt or app-ads.txt file in a minute. This free ads.txt generator adds the right certification IDs for popular partners, removes duplicates, warns about conflicts and supports the ads.txt 1.1 variables. Then you can copy the file or download it.

1. Choose a partner

Pick a partner, enter your account ID and add the line. For other partners choose “Custom line”. Always use the exact lines your partner sends you.

    No partner lines yet.

    2. Paste lines from your partners

    Got a block of lines from an ad network or header bidding partner? Paste them here. Duplicates are removed automatically.

    3. Add ads.txt 1.1 variables

    Optional, but buyers like them. OWNERDOMAIN should match your domain in your partners’ sellers.json files.

    Your ads.txt file

    Upload it as ads.txt to the root of your domain, for example yoursite.com/ads.txt. Apps use app-ads.txt on the developer website.

      Done? Check the live file with our ads.txt checker.

      How to create an ads.txt file

      1. Pick a partner from the list, enter your account ID and choose DIRECT or RESELLER.
      2. Paste any lines that your ad network or header bidding partners sent you.
      3. Add OWNERDOMAIN with your own domain. Add MANAGERDOMAIN if a company manages your ads.
      4. Download the file and upload it to the root of your domain.
      5. Check the live file with our ads.txt checker.

      Ads.txt line format

      Each record has four fields separated by commas. The first three are required.

      FieldExampleMeaning
      Ad system domaingoogle.comThe domain of the exchange or SSP
      Account IDpub-1234567890123456Your seller ID in that system
      RelationshipDIRECT or RESELLERWho controls the account
      Certification IDf08c47fec0942fa0The TAG ID of the ad system (optional)

      In addition, ads.txt 1.1 adds variables. OWNERDOMAIN names the business that owns the site, and MANAGERDOMAIN names a company that manages its monetization. CONTACT and SUBDOMAIN are older variables that are still valid. Learn how these files work with sellers.json in our ads.txt and sellers.json guide.

      Common mistakes the generator prevents

      • Google IDs with the “ca-pub” prefix instead of “pub-“.
      • The same line twice, often after adding a new partner.
      • An account listed as both DIRECT and RESELLER.
      • Quotes, tabs and hidden characters copied from emails or PDFs.
      • Full URLs like https://site.com/ in OWNERDOMAIN instead of a plain domain.

      New to the topic? Start with what is ads.txt and why you need it.

      Frequently asked questions

      What should be in an ads.txt file?

      One line for every company that is allowed to sell your ad space. Each line has the ad system domain, your account ID, the relationship (DIRECT or RESELLER) and an optional certification ID. Version 1.1 also adds variables like OWNERDOMAIN and MANAGERDOMAIN.

      Where do I upload ads.txt?

      Upload it to the root of your domain so it opens at yoursite.com/ads.txt. On WordPress you can use an ads.txt plugin or upload the file by FTP. It must be a plain text file.

      What is the difference between ads.txt and app-ads.txt?

      ads.txt is for websites. app-ads.txt is for mobile and CTV apps and lives on the developer website listed in the app store. The format is the same.

      What does DIRECT and RESELLER mean?

      DIRECT means you control the account and are paid by the ad system directly. RESELLER means another company sells your inventory through its own account, for example a header bidding partner.

      What is the Google certification ID?

      Google’s certification authority ID is f08c47fec0942fa0. The generator adds it to Google lines automatically and removes the common “ca-” prefix from publisher IDs.