How can I get The Moneytizer ads.txt file updated automatically?

How can I get The Moneytizer ads.txt file updated automatically?

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

Step 1: Log in and Access ads.txt Information

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.

    • Related Articles

    • How to Manually Integrate ads.txt on WordPress (Without FTP)

      Summary It is possible to manually integrate your ads.txt file on a WordPress website without FTP access by using a simple WordPress plugin. This guide provides the step-by-step instructions to install and use the "File Manager" plugin to add the ...
    • How to Manually Integrate Your ads.txt File

      Summary Implementing the ads.txt file is an obligatory and essential step to start monetizing your site with The Moneytizer. The file lists all the buyers allowed to access your inventory, which helps prevent ad fraud and enhances your site's ...
    • How to Implement Your ads.txt File: A Complete Guide

      Summary Authorized Digital Sellers, or ads.txt, is an IAB Tech Lab initiative that helps ensure that your digital ad inventory is only sold through sellers who you've identified as authorized. Creating your own ads.txt file is a mandatory step that ...
    • How to Integrate The Moneytizer's ads.txt File on a Squarespace Site

      Summary Implementing the ads.txt file is an obligatory and essential step to start monetizing your site. Because Squarespace does not allow direct file uploads to the root directory, the process involves four main parts: downloading the file, ...
    • How to Set Up the Magic Tag

      Summary The Magic Tag is a single, unique script that allows our experts to create and manage the best possible ad format configuration for your site. It's an excellent solution for users who have less experience with monetization or technical ...