The ads.txt file is crucial for preventing unauthorized digital ad sales and ensuring transparency in programmatic advertising. If you see an “Ads.txt not found” error, it means your website is missing this file, which can affect your ad revenue and relationships with advertisers. Here’s how you can fix this issue:
Related: Harvard University Scholarships 2025 (Fully Funded)
Step-by-Step Guide to Fix “Ads.txt Not Found”
- Create an Ads.txt File:
- Open a text editor like Notepad (Windows) or TextEdit (Mac).
- Add the authorized digital sellers in the following format:
php
<domain>, <publisher account ID>, <relationship type>, <certification authority ID>
Example:
rust
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
- Save the Ads.txt File:
- Save the file as
ads.txt
(ensure it is a plain text file).
- Save the file as
- Upload the Ads.txt File to Your Website:
- Access your website’s root directory via FTP/SFTP or your hosting provider’s file manager.
- Upload the
ads.txt
file to the root directory, where yourindex.html
orindex.php
file is located.
- Verify the Ads.txt File:
- After uploading, navigate to
https://yourwebsite.com/ads.txt
in your browser to ensure the file is accessible and correctly displayed.
- After uploading, navigate to
Detailed Steps for Different Platforms
For WordPress:
- Using an FTP Client:
- Connect to your website using an FTP client like FileZilla.
- Navigate to the root directory (often named
public_html
). - Upload the
ads.txt
file.
- Using a Plugin:
- Install a plugin like “Ads.txt Manager” from the WordPress plugin repository.
- Go to
Settings > Ads.txt
in your WordPress dashboard. - Add your authorized sellers’ information and save.
For cPanel:
- File Manager:
- Log into your cPanel account.
- Go to File Manager and navigate to the root directory of your site.
- Click Upload and select your
ads.txt
file.
Common Issues and Solutions
- Incorrect Directory: Ensure the
ads.txt
file is in the root directory. The URL should behttps://yourwebsite.com/ads.txt
. - Incorrect File Format: Make sure the file is saved as plain text.
- Permission Issues: Check the file permissions. It should be readable by the web server (usually 644 permissions).
Final Check
Once the file is uploaded and accessible, wait for a few hours and check your ad network’s interface to see if the error has been resolved. Some ad networks might take time to reflect the changes.
By following these steps, you can fix the “Ads.txt not found” error and ensure your website complies with the requirements for transparent programmatic advertising.