Home » Blog Posts » How to Create and Manage Ads.txt files in WordPress

How to Create and Manage Ads.txt files in WordPress

Do you wish to use WordPress to produce and manage ads.txt files? Publishers are shielded from ad fraud by the ads.txt file, which may also boost your ad earnings. We’ll demonstrate in this article how simple it is to create and manage an ads.txt file in WordPress.

What does Ads.txt stand for?

Publishers can specify who is permitted to sell advertising on their website in the Ads.txt file. It was started by IAB Tech Lab, a non-profit organization dedicated to raising the bar for digital advertising.

Google’s advertising networks, including Google AdSense, Double Click, and Ad Exchange, support the effort. Numerous other top digital advertising platforms also support it.

Why is the Ads.txt file crucial?

Each year, ad fraud causes millions of dollars in losses for internet publishers and advertisers. People trying to defraud ad systems frequently use techniques like domain spoofing, fraudulent clicks, fake impressions, and others.

The Ads.txt file allows publishers to specify who is permitted to sell their ad inventory, which increases transparency in online advertising. The process is as follows:

You can examine the website’s ads.txt file if you are an advertiser and someone says they can display your ad on a specific website. It will demonstrate if the business you are dealing with is authorized to sell advertising space on that specific website or not.

Since this information is freely accessible, advertisers, publishers, and resellers can crawl, store, and search it.

Adverts.txt file addition is advised if you use Google Adsense, DoubleClick, or Ad Exchange to display ads on your website.

Many other advertising-related platforms and programs either support or demand the declaration of the ads.txt file.

How Do I Make an Ads.txt File in WordPress?

The Ads.txt Manager plugin needs to be installed and activated first. See our step-by-step tutorial on installing a WordPress plugin for more information.

When the plugin is activated, you must go to the Settings » Ads.txt page to change its preferences.

Settings for the Ads.txt Manager

You can add lines to the simple text area provided by the plugin to declare each unique platform or reseller. To declare Google Adsense, for instance, you may add the line below.

DIRECT, f08c47fec0942fa0, pub-0000000000000000, google.com

Don’t forget to substitute your own publisher ID for pub-0000000000000000.

This line, as you can see, has four fields that are separated by commas. The domain of the business that is authorized to sell or resell your ad inventory is listed in the first field. The publisher ID, which is the same as your account ID on the advertising network, comes next.

The relationship type is indicated in the third field as either DIRECT or RESELLER. The final field, which is optional, is where you can enter the advertising platform’s ID. The same distinctive ID will be used for all Google advertising campaigns.

Repairing Earnings at risk mistake with Adsense

The following alert notice may appear in your Google Adsense account due to a missing declaration in your ads.txt file.

Earnings in jeopardy – Your AdSense publisher ID is missing from one or more of your ads.txt files. To avoid a serious impact on your business, fix this right away.

Your ads.txt file does not contain your publisher ID, according to this warning. To resolve this error, only check that the publisher ID in the plugin settings is valid by going to Settings » Ads.txt.

Note: At the moment, this plugin only functions with root-level domains like example.com because the ads.txt file should be located in the root directory of a domain name. It is ineffective for WordPress installations on subdomains, subdirectories, or a single site within a network of multiple sites.

You should now be able to create and manage ads.txt files in WordPress, and we hope this post was helpful.

Spread the word and help us inspire more readers with our blogs

Leave a Comment

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