How to Configure the ads.txt File
Introduction
Having ads.txt files on your website(s) is highly recommended, as it gives sellers and resellers the ability to monetize that same website. In many cases, having the ads.txt file up to date, with the correct vendors (authorized digital sellers), increases the revenue potential of the website by close to 15%, thus allowing publishers to maximize their revenue.
If, for some reason, it is not possible for the website owner to have the ads.txt file or have it up to date, MGID now offers a new solution with MGID’s ads.txt manager redirect. In this guide, you will learn how to properly configure the ads.txt file, or alternatively, set up a redirect to MGID’s ads.txt manager from the most commonly used CMS platforms.
Wordpress
Option 1. Set up the ads.txt file (this is the recommended option)
- Go to WordPress Dashboard;
- Click Plugins and select Add New;
- Search for Ads.txt Manager;
- Click Install and then Activate;
- Go to Settings select Ads.txt;
- Insert the ads.txt lines;
- The ads.txt file will be created
Option 2. Set up a redirect to the MGID ads.txt manager (use it if redirect is required):
Step 1. Install the Redirection plugin.
- Go to WordPress Dashboard;
- Click Plugins and select Add New;
- Search for Redirection;
- Click Install and then Activate
/Publishers/Ads-txt/1.ads-txt.png?width=670&height=397&name=1.ads-txt.png)
Step 2. Open the Redirection tool.
- Go to Tools click Redirection;
- Complete the quick setup if prompted
Step 3. Add a redirect. Fill in the fields:
- Source URL use the old URL (/ads.txt);
- Target URL add the new destination https://ads-txt.mgid.com/xxxx/ads.txt where “xxxx” – a unique page identifier that your manager will provide you.
/Publishers/Ads-txt/3.ads-txt.png?width=670&height=367&name=3.ads-txt.png)
3. HTTP Code: Permanent (301);
4. Then click Add Redirect
Step 4. Test the redirect.
- Open your browser;
- Visit yourdomain.com/ads.txt;
- You should be automatically redirected to the page https://ads-txt.mgid.com/xxxx/ads.txt
Blogger
Option 1. Create an ads.txt file (this is the recommended option):
-
Go to settings
-
Find Monetization and select Enable custom ads.txt;
-
Enable it;
-
Insert the ads.txt lines;
-
Now your ads.txt file will be available
Option 2. Set up a redirect to the MGID ads.txt manager (use it if redirect is required):
- Go to settings select Errors and redirects;
- Find Custom redirects and click Add;
- Fill in:
To: https://ads-txt.mgid.com/xxxx/ads.txt where “xxxx” – a unique page identifier that your manager will provide you
4. Enable the flag Permanent;
5. Click Save;
6. Test your redirect:- Open your browser;
- Visit yourdomain.com/ads.txt;
- You should be automatically redirected to the page https://ads-txt.mgid.com/xxxx/ads.txt
Wix
Remember, it’s not possible to create an ads.txt file directly on the Wix platform.
You can provide access to the file via a redirect:
- Go to Wix Dashboard;
- Select Marketing & SEO then SEO Tools and click URL Redirect Manager;
/Publishers/Ads-txt/4.ads-txt.png?width=670&height=476&name=4.ads-txt.png)
3. Click New Redirect
4. Fill in:
-
Old URL: /ads.txt
-
New URL: https://ads-txt.mgid.com/xxxx/ads.txt
where “xxxx” a unique page identifier that your manager will provide you
/Publishers/Ads-txt/5.ads-txt.png?width=378&height=395&name=5.ads-txt.png)
5. Click Save
6. Test your redirect:
-
Open your browser and visit yourdomain.com/ads.txt;
-
You should be automatically redirected to the page https://ads-txt.mgid.com/xxxx/ads.txt