If AdSense is indicating that your ads.txt file is not found, follow these steps to resolve the issue:
1. Create the ads.txt File:
Open a text editor (like Notepad or TextEdit).
Add your AdSense publisher ID to the file in the following format:
```
google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0
```
Replace `pub-xxxxxxxxxxxxxxxx` with your actual publisher ID, which you can find in your AdSense account.
2. Upload the ads.txt File to Your Website:
Access your website's root directory using an FTP client or your web hosting provider's file manager.
Upload the ads.txt file to the root directory of your domain (e.g., https://yourdomain.com/ads.txt).
3. Verify the ads.txt File:
After uploading, verify that the file is accessible by visiting `https://yourdomain.com/ads.txt` in your web browser.
4. Wait for AdSense to Detect the File:
It may take a few days for AdSense to detect the ads.txt file on your site. Ensure the file is correctly formatted and placed in the root directory.
5. Check for Common Issues:
Ensure there are no typos or errors in the ads.txt file.
Confirm that the file is not being blocked by your website’s robots.txt file.
If using a Content Management System (CMS) like WordPress, make sure any caching plugins or CDN services are not serving a cached version of the site without the ads.txt file.
6. Consult Google AdSense Support:
If the issue persists, consult the AdSense help center or contact their support for further assistance.
How do I find root directory of my BlogSpot website
For a BlogSpot website, you can't directly access the root directory like you would with a traditional web hosting service. However, you can still add the ads.txt file through the Blogger interface.
Here's how you can do it:
1. Log in to Blogger:
Go to Blogger https://www.blogger.com and log in with your Google account.
2. Navigate to Settings:
In the Blogger dashboard, select the blog you want to add the ads.txt file to.
Go to Settings in the left-hand menu.
3. Enable Custom ads.txt:
Scroll down to the Monetization section.
Find the Enable custom ads.txt option and toggle it to ON.
4. Add Your ads.txt Content:
Click on Custom ads.txt.
A text box will appear. Enter your ads.txt content here.
It should look something like this:
```
google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0
```
Replace `pub-xxxxxxxxxxxxxxxx` with your
actual AdSense publisher ID.
5. Save Your Changes:
Click the Save button to apply your changes.
6. Verify the ads.txt File:
After saving, you can verify that the ads.txt file is accessible by visiting `http://yourblog.blogspot.com/ads.txt` in your web browser. Replace `yourblog` with your actual BlogSpot blog name.
By following these steps, you should be able to successfully add the ads.txt file to your BlogSpot website.
Post a Comment