How to add Google’s Ads.txt file to the Root folder of WordPress or True host Database.

Earnings at risk – You need to fix some ads.txt file issues to avoid severe impact to your revenue.

Have you ever seen this message at AdSense control Panel?

Earnings at risk – You need to fix some ads.txt file issues to avoid severe impact to your revenue.

This means that AdSense needs to verify your site in order to place Ads effectively. Then, they will give you the code of which you will be told to place it at the root directory.

How to Add Google’s Ads.txt File to the Root Folder of WordPress or TrueHost Database

Step 1: Copy the Code

Open Sites in your AdSense Control Panel
Open Sites in your AdSense Control Panel
Locate the domain that has an issue and click on it
Locate the domain that has an issue and click on it
On the Window That Opens, Copy the Ads.Txt code.
On the Window That Opens, Copy the Ads.Txt code.

Copy and paste the following code into your ads.txt file and upload to your site’s root directory. If you have an existing ads.txt file, paste the code there. Changes may take a few days to update. If you’re not sure where to add your ads.txt file, go to your site’s help page for specific instructions, or see the ads.txt guide for more details.

Step 2: Copy and paste the provided code into your ads.txt file and upload to your site’s root directory.

Locating Root Directory

Log into your WordPress or TrueHost Server and Locate the control Panel or File Manager
Log into your WordPress or TrueHost Server and Locate the control Panel or File Manager
Open File Manager Database
Open File Manager Database

Locate a folder named public_html folder where all of your website data is stored.

On the Control Environment that Occurs, Click File Option then New File
On the public_html folder, Click File Option then New File This Opens You an Editor
Call the New File Ads.Txt then select Create New File Button.
Call the New File Ads.Txt then select Create New File Button. This will create a new file called ads.txt and save it in your database
Locate the file in the database listing, right click it and select edit command
Locate the file in the database listing, right click it and select edit command
Confirm that you want to edit the document with the character coding scheme provided UTF-8 by clicking edit
Confirm that you want to edit the document with the character coding scheme provided UTF-8 by clicking edit.
Finally Paste the AdSense code you copied from AdSense Account. Then Save
Finally Paste the AdSense code you copied from AdSense Account. Then Save
Save Changes and Close. Then wait for a few hours for AdSense to Crawl your Site.
Save Changes and Close. Then wait for a few hours for AdSense to Crawl your Site.

Changes may take a few days to update. If you’re not sure where to add your ads.txt file, go to your site’s help page for specific instructions, or see the ads.txt guide for more details.

In Summary:

To add Google’s Ads.txt file to the root folder of WordPress or Truehost Database, follow these steps:

  1. Download the Ads.txt File:
    • Login to your Google AdSense account.
    • Look for an alert or notification regarding the Ads.txt file.
    • Click on the “fix now” or similar button.
    • Download the Ads.txt file provided by Google [1].
  2. Access the Root Folder:
    • For WordPress:
      • Login to your WordPress dashboard.
      • Go to the “File Manager” or “FTP” section of your hosting control panel.
      • Locate the root folder of your WordPress installation, usually named “public_html” or “www”.
    • For Truehost Database:
      • Login to your Truehost Database control panel.
      • Navigate to the “File Manager” or “FTP” section.
      • Find the root folder of your website.
  3. Upload the Ads.txt File:
    • In the root folder, create a new file named “ads.txt”.
    • Open the file and paste the content of the downloaded Ads.txt file into it.
    • Save the file.
  4. Verify the Upload:
    • Access your website by typing your domain name followed by “/ads.txt” in a web browser (e.g., www.example.com/ads.txt).
    • If the file opens and displays the content you pasted, the upload was successful.
Access your website by typing your domain name followed by "/ads.txt" in a web browser (e.g., www.example.com/ads.txt).
Access your website by typing your domain name followed by “/ads.txt” in a web browser (e.g., www.example.com/ads.txt).

By adding Google’s Ads.txt file to the root folder of your WordPress or Truehost Database, you are authorizing the sellers of your digital inventory and protecting against ad fraud.


Learn more:

  1. How to Upload Ads.txt in wordpress (with or without plugin)
  2. How to Add ads.txt File in WordPress – WebCodzing
  3. Ads.txt: How to Create, Update and Implement ads.txt in WordPress?
Print Friendly, PDF & Email
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/swalijib/public_html/news/wp-includes/formatting.php on line 4715