Ads.txt stands for Authorized Digital Sellers and is a method for publishers and distributors to declare who is authorized to sell their ad inventory. You can learn more about it here.
1. How to implement ads.txt for Google ads
Jump directly to step two if you already have an ads.txt file.
Please note: these steps only describe how to create an ads.txt file for Google ads. You can also refer to Google's guide here.
Create a text (.txt) file.
If you have an AdSense, DoubleClick for Publishers (DFP), or Ad Exchange account managed by yourself (not through a third party), include the following line:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
⚠️ Important: you must replace
pub-0000000000000000with your own publisher ID. Here's where to find it.
If you monetize through multiple Ad Exchange and/or AdSense accounts, you must include a separate row for each account, with its corresponding
2. Including our entry in your ads.txt file
In order to allow us to use one ad placement on your website, you have to include our publisher information in the ads.txt file by adding the following line:
google.com, pub-6240751379550204, DIRECT, f08c47fec0942fa0
⚠️ Important: even though your site is verified by Google AdSense to display ads, you must include your publisher information in the ads.txt file.
Where to find your Publisher ID
Your publisher ID is your AdSense, DoubleClick for Publishers (DFP), or Ad Exchange account ID. This ID is in the format of
pub-0000000000000000 with the zeros replaced by your own 16 digit number.
In AdSense: Sign in to your AdSense account, then click Settings > Account > Account information.
In Ad Exchange: Sign in to your Ad Exchange account, then click Admin > Account information.
Ads.txt Manager (WordPress Plugin)
If you are not sure how to host your ads.txt file at the root level of your domain you can install the Ads.txt Manager plugin. It will help you create, manage, and automatically validate your ads.txt from within WordPress.
The validation baked into the plugin helps avoid malformed records, which can cause issues that can lead to a drop in ad revenue.
After installing and activating the Ads.txt Manager plugin:
- Go to Settings (from your WordPress dashboard) > Ads.txt
- Add the lines / entries you need
- Save changes
- Check it out at www.yoursite.com/ads.txt.