Summary
The ads.txt file is obligatory and lists all the buyers allowed to access your inventory, preventing ad fraud. You can set up automatic updates for this file by uploading a special PHP file to your server and adding a redirect rule to your.htaccess file. This process ensures your ads.txt file is always current without needing manual changes.
Step-by-Step Guide for Automatic ads.txt Updates
Go to The Moneytizer website and log in to your publisher account. In the setup menu, navigate to the ADS.TXT section and pick the correct domain.
Step 2: Download the PHP File (ads_tm.php file)
Under the AUTOMATIC integration tab, click "Download the PHP file" to get the ads_tm.php file. Automatic integration lets you skip manual updates to the ads.txt file. If you work with other advertising agencies, this integration will also keep the lines for your other partners.
Step 3: Upload the PHP File to Your Web Server
Use an FTP client (like FileZilla) or your web hosting control panel's file manager (cPanel) to upload the ads_tm.php file to the root of your site.
Example with the OVH interface
In the OVH control panel, navigate to the “Web” section and select “Hosting” from the sidebar. At the top of the window, click on “FTP-SSH” and retrieve the following information: ftp server / Login / Password
Open the File Manager:
In the hosting dashboard, find and open the "File Manager" in the FileZila. To connect to your site, click on “File” then “Site managers”. At bottom of the window, click on “New site” and name your site as you wish.
Fill in the following fields with the information you have collected from your host.
In the “Authentication type” drop-down menu, select “Normal”.
Host: corresponds to the server ip (FTP server). On OVH, it looks like this: ” ftp.cluster... ”
Identifier: corresponds to your host login
Password: your host password
Step 4: Add the Redirect Rule
You now need to tell your server to show the content of the PHP file when someone accesses ads.txt.
For Apache servers (most common): Open the.htaccess file already on your server. Copy and paste the following two lines at the beginning of the file and save the changes:
RewriteEngine on RewriteRule ^ads.txt$ ads_tm.php
For Nginx servers: You need to add the following lines to your nginx.conf file:
location = /ads.txt {rewrite ^(.*)$ /ads_tm.php ;}
Step 5: Verify the Integration
To check that the file is installed correctly, type the following address in your browser:
http(s)://www.yourdomainname.com/ads.txt. Then, return to your Moneytizer dashboard and click the
"VERIFY INTEGRATION" button.
Important Notes
If you are using Cloudflare protection, we will not be able to verify your file automatically; you will need to contact our Customer Support.
If you have already installed an ads.txt file with lines from other advertising networks, the automatic integration will preserve them.
You must also include your Google AdSense line if you use it.