Configuration ads.txt



An "ads.txt" file is a text file that website publishers can use to publicly declare who is authorized to sell their advertising inventory. It helps prevent unauthorized and fraudulent inventory sales. If you're planning to monetize your blog by displaying ads from ad networks, you'll need to create and include an "ads.txt" file on your website.

Here's a simple example of what an "ads.txt" file might look like:

# Example ads.txt file for, pub-0000000000000000, DIRECT, f08c47fec0942fa0

In this example:

  • is the domain of the advertising system.
  • pub-0000000000000000 is your publisher ID provided by Google AdSense (replace with your actual ID).
  • DIRECT indicates the type of relationship between the publisher and the advertising system.
  • f08c47fec0942fa0 is an identifier associated with the publisher's account at the advertising system (not always necessary).

You need to replace the example values with the actual information provided by the ad networks you're using.

Once you have created your "ads.txt" file, you should upload it to the root directory of your website. Visitors typically access it by navigating to

Make sure to keep your "ads.txt" file updated with any changes to your authorized ad partners.