How to Create and Manage Ads.txt files in WordPress

Do you want to create and manage an ads.txt files in WordPress? Ads.txt file protects publishers from ad fraud, and it can potentially increase your ad revenue. In this article, we will show you how to easily create and manage ads.txt file in WordPress. What… Read More »

The post How to Create and Manage Ads.txt files in WordPress appeared first on WPBeginner.

Do you want to create and manage an ads.txt files in WordPress? Ads.txt file protects publishers from ad fraud, and it can potentially increase your ad revenue. In this article, we will show you how to easily create and manage ads.txt file in WordPress.

How to create and manage Ads.txt file in WordPress

What is Ads.txt File?

Ads.txt file allows publishers to declare who can sell ads on their website. It is an initiative created by IAB Tech Lab, a non-profit focused on improving digital advertising standards.

The initiative is supported by Google’s advertising platforms like Google Adsense, Doubleclick, and Ad Exchange. It is also supported by many other leading digital advertising platforms.

Why is Ads.txt file important?

Ad fraud cost millions of dollars in damages to online advertisers and publishers each year. People with malicious intent continuously try to trick ad platforms with domain spoofing, fake clicks, fake impressions, and more.

Ads.txt file improves transparency in online advertisement by allowing publishers to declare who can sell their ad inventory. Here is how it works:

If you are an advertiser and someone tells you that they can display your ad on a particular website, then you can go and checkout that website’s ads.txt file. It will show you if the company you are dealing with has the permission to sell advertising space on that particular website or not.

Since this data is publicly available, it can be crawled, stored, and searched by advertisers, publishers, and resellers.

If you are displaying ads on your website using Google Adsense, DoubleClick, or Ad Exchange, then adding Ads.txt file is recommended.

Many other advertising platform and software also support or require ads.txt file to be declared.

How to Create and Manage Ads.txt Files in WordPress?

First thing you need to do is install and activate the Ads.txt Manager plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit the Settings » Ads.txt page to configure plugin settings.

Ads.txt manager settings

The plugin provides a simple text area where you can add lines to declare each individual platform or reseller. For example, you can add the following line to declare Google Adsense.

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

Don’t forget to replace pub-0000000000000000 with your own publisher ID.

As you can see, this line has four fields separated by comma. The first field is the domain of the company allowed to sell or resell your ad inventory. After that it has your publisher ID which corresponds to your account ID in the advertising platform.

The third field declares relationship type DIRECT or RESELLER. The last field is optional, and it represents an ID of the advertising platform. For all Google advertising programs, you’ll use the same unique ID.

Troubleshooting Earnings at risk Error in Adsense

A missing declaration in your ads.txt file may result in the following warning message in your Google Adsense account.

Earnings at risk – One or more of your ads.txt files doesn’t contain your AdSense publisher ID. Fix this now to avoid severe impact to your revenue.

This message indicates that your ads.txt file doesn’t have your publisher ID. To fix this message, simply go to Settings » Ads.txt page to make sure that you have correct publisher ID in plugin settings.

Note: Since ads.txt file is supposed to be in the root directory of a domain name, this plugin currently only works for root level domain like example.com. It does not work for WordPress installed in subdomain, subdirectory, or a single site in a multi-site network.

We hope this article helped you learn how to create and manage ads.txt file in WordPress. You may also want to see our guide on legit ways to make money online blogging with WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create and Manage Ads.txt files in WordPress appeared first on WPBeginner.

How to Manage Ads in WordPress with Adsanity Plugin

Ads are a major source of income for many bloggers. Adding your Google Adsense or other ad code to WordPress is not quite easy. Not to mention, managing different ad sources can be even messier. In this article, we will show you how to manage… Read More »

To leave a comment please visit How to Manage Ads in WordPress with Adsanity Plugin on WPBeginner.

Ads are a major source of income for many bloggers. Adding your Google Adsense or other ad code to WordPress is not quite easy. Not to mention, managing different ad sources can be even messier. In this article, we will show you how to manage ads in WordPress with Adsanity plugin.

Why You Should Use Adsanity?

Adsanity makes it easier for you to manage all your ads using the familiar WordPress interface.

Whether you want to create an ad running locally, or use an external ad network like Google Adsense, inserting ads into your website is made simpler with ready-to-use widgets and built-in visual editor buttons.

If you feel that other advertising solutions for WordPress are quite complicated, then Adsanity is perfect for you. It is beginner friendly, and doesn’t compromise on any features.

How to Create Ads in Adsanity

First thing you need to do is install and activate the Adsanity plugin. Upon activation, simply go to Adsanity » Create Ad to create your first ad.

Create new ad screen in Adsanity

You can create a local ad hosted on your site, or you can create an ad served by an external ad network.

You can start by providing a title for your ad. This title will be used internally to identify that particular ad unit. Next, you need to choose the ad size.

If it is a local ad, then you can add a banner image. Otherwise, you can paste the ad code you got from your ad network.

You can also group ads together by creating ad groups. These ad groups can be inserted into sidebars and posts. You can choose the number of ads to show total and pick columns. This is particularly useful when you want to display a bunch of smaller ads into your sidebar.

Lastly, click on the Publish button to save your ad.

Adsanity also allows you to set an expiration date for your ads. Simply click on the edit link in the publish meta box and set an expiration date.

Setting an expiration date for the ad

Displaying an Ad on your Site

Adsanity allows you to add your ads to any widget-ready area or sidebar using Adsanity widgets.

Displaying ads using Adsanity Widgets in WordPress

You can also insert ads into your post and pages. Simply edit a post, and you will notice the Adsanity buttons in the post editor.

Inserting ads into your WordPress posts and pages

You can also view stats for your ads by visiting Adsanity » Stats page. It shows graph of how your ads are performing through out the site. You can use these stats to improve your monetization strategy.

Ad stats in Adsanity

We hope this article helped you learn how to manage ads in WordPress using Adsanity. You may also want to checkout our guide on how to add affiliate links in WordPress using ThirstyAffiliates.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

To leave a comment please visit How to Manage Ads in WordPress with Adsanity Plugin on WPBeginner.