Add the ads.txt file to my WordPress site

If If your WordPress website displays advertisements, implementing an ads.txt file is an important step toward protecting your advertising revenue and improving transparency in the digital advertising ecosystem. Ads.txt, which stands for Authorized Digital Sellers, is an initiative developed by the Interactive Advertising Bureau (IAB) Tech Lab. It allows website owners to publicly identify the companies authorized to sell their advertising inventory, helping advertisers and advertising platforms identify legitimate sellers and reduce the risk of unauthorized ad sales and certain types of advertising fraud.

For publishers who work with advertising networks, exchanges, or monetization partners, maintaining an accurate ads.txt file can also help prevent potential revenue losses caused by seller authorization issues. One of the easiest ways to manage this file on a WordPress website is by using the Ads.txt Manager plugin, developed by 10up. This plugin allows you to create and update your ads.txt entries directly from your WordPress dashboard without manually uploading a text file to your server.

Follow the steps below to install and configure the plugin correctly.

Step 1: Log In to Your WordPress Dashboard

Open your WordPress administration page, usually accessible through https://yourdomain.com/wp-admin, and sign in using an administrator account. You need sufficient permissions to install plugins and modify website settings.

Step 2: Install the Ads.txt Manager Plugin

From the left-hand navigation menu, select Plugins and then click Add New. In the plugin search bar, enter Ads.txt Manager.

Locate the plugin developed by 10up and review its details to ensure you have selected the correct plugin. Click Install Now and wait for the installation to finish. Then select Activate to enable the plugin on your website.

Step 3: Open the Ads.txt Settings

After activation, navigate to Settings → Ads.txt in your WordPress dashboard. The plugin provides an interface where you can add, edit, and manage the entries that will appear in your website’s ads.txt file.

Step 4: Add Your Authorized Advertising Sellers

Under Manage Ads.txt, enter the advertising seller information provided by your advertising partners. Each authorized seller must be listed on a separate line, using the following four fields:

  • Advertising system domain: The domain name of the advertising system or exchange.
  • Publisher account ID: The unique publisher identifier assigned by the advertising platform.
  • Account type: Specify DIRECT or RESELLER, depending on your relationship with the seller.
  • Certification authority ID: An optional identifier associated with the advertising system’s certification authority.

For example, a Google advertising entry may look like this:

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

Replace the sample publisher ID with your actual account ID. Only add entries supplied or confirmed by your advertising partners. Use DIRECT when you have a direct contractual relationship with the advertising system, and RESELLER when your inventory is sold through an authorized intermediary.

If you work with multiple advertising networks, such as Google AdSense or other monetization partners, include the appropriate entries for each provider. Avoid copying seller IDs from unrelated websites, as incorrect entries may prevent legitimate sellers from being verified.

Step 5: Save Your Ads.txt Configuration

After adding the required entries, click Save. Check the content carefully for spelling errors, missing commas, incorrect publisher IDs, or unnecessary spaces that could affect the format.

Whenever you add a new advertising partner or change your monetization setup, revisit this section and update the file accordingly.

Step 6: Verify Your Ads.txt File

Open a new browser tab and visit your website’s ads.txt URL by adding /ads.txt to the end of your domain.

For example: https://example.com/ads.txt

You should see a plain-text page displaying the seller entries you saved. If the page returns a 404 error, displays outdated content, or does not show your entries, check whether the plugin saved the configuration successfully. You may also need to clear your WordPress caching plugin, CDN cache, or server cache.

If the file remains unavailable, check for conflicts with other ads.txt plugins, security rules, redirects, or hosting configurations.

Step 7: Notify Your Advertising Partners

Once your ads.txt file is live, allow advertising platforms and partners to crawl and review the updated file. Some platforms provide an ads.txt status indicator in their publisher dashboard, which you can use to identify missing or incorrect entries.

For example, if you use Google AdSense, review its ads.txt guidance and publisher account notifications to confirm that your seller information matches the entries on your website. Other advertising partners may have their own verification procedures.

Conclusion

Adding an ads.txt file to WordPress using the Ads.txt Manager plugin is a straightforward way to manage authorized advertising sellers without editing server files manually. By keeping your entries accurate, verifying that /ads.txt is publicly accessible, and following the requirements of your advertising partners, you can improve advertising transparency, reduce the risk of unauthorized inventory sales, and help protect your website’s monetization opportunities.

Remember to review your ads.txt file whenever you change advertising providers or receive updated seller information. Although ads.txt does not eliminate every form of advertising fraud or guarantee higher revenue, maintaining a correct file is an important part of responsible website monetization.

Ready to get started?
Take Your Ad Yield To The Next Level
Join Pubfuture

Your email address will not be published. Required fields are marked *