How to Create an Ads.Txt File in Drupal Updated on September 13, 2023 by InMotion Hosting Contributor 1 Minutes, 55 Seconds to Read The Ads.txt file, which stands for Authorized Digital Sellers, is a countermeasure against fraud within programmatic advertising. This initiative, governed by the Interactive Advertising Bureau (IAB), allows two important things: Anyone can see which companies are authorized to sell ad inventory for a specific website Advertisers can ensure ad space purchases for a website aren’t counterfeit Although it’s not commonly discussed, the standard is backed by major tech companies including Google and has been around since 2017. What is the Ads.Txt File Install the AdsTxt Drupal Module Configure Your Drupal Ads.Txt File Ignite your online presence with cutting-edge Drupal VPS Hosting. Elevate speed, security, and reliability for a seamless website experience. What is the Ads.Txt File Technically speaking, the Ads.txt file is a text file with one authorized advertiser per line. The format consists of four fields, separated by commas, using the OpenRTB (real-time bidding) protocol: Domain name of the authorized company such as supply-side platforms (SSPs) and exchanges Publisher account ID of the authorized company used for OpenRTB bid requests Relationship with the authorized company (direct or reseller) Certification authority ID with TAG (optional) Below we’ll cover how to do this with the AdsTxt Drupal module. Not what you were expecting? If you’re interested in commissions, check out our InMotion Hosting affiliate program. Install the AdsTxt Drupal Module This is the easiest way to install the Drupal AdsTxt module. Log into Drupal. Install the Drupal module using the AdsTxt download link for your Drupal version. Click Enable newly added modules. Under Advertising, select ads.txt. At the bottom, select Install. Configure Your Drupal Ads.txt File On the Configuration page, select Ads.txt. Replace the examples with authorized companies in your ads.txt and app-ad.txt (for mobile apps) files. If a subdomain of your Drupal site has a separate list of authorized companies, add the following (replacing the text below with your full subdomain): subdomain=subdomain.example.com You can also add a contact method (email address or contact page). Anything after code#/code will be ignored:[email protected] Once you’re done, select Save Configuration. Check your results (e.g. example.com/ads.txt) to ensure it’s not blocked by robots.txt or a redirect misconfiguration resulting in a 404 error. Learn more from our Drupal Education Channel as well as additional information about Drupal site hosting. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Finding 404 page not found errors in Drupal 7 Removing the site title in Drupal 8 Content Types in Drupal 8 Disabling user images for posts and comments in Drupal 8 How to add an image in Drupal 7 How to upload your custom logo in your Drupal 7 theme Setting custom logos in your Drupal 8 theme Fixing the “An unrecoverable error occurred” error in Drupal How to Make a Duplicate Drupal Site How to Install a New Theme in Drupal