Ad fraud is a burgeoning issue that affects the entire digital advertising value chain. According to recent stats, the cost of digital ad fraud is expected to reach $81 billion by the end of 2022. To eliminate the occurrence of ad fraud and enhance accountability, the Interactive Advertising Bureau (IAB) initiated the Authorized Digital ad Sellers, protocol commonly called ads.txt.
Ads.txt is a protocol that attempts to eliminate domain spoofing and ad space exploitations. In essence, this solution assists digital marketers in affirming vendors and, as a result, avoiding the purchase of fake inventories.
Ads.txt is a readily viewable database containing a compilation of ad tech partners (ad sellers) permitted to sell a publisher’s inventory. This database is contained in text format and is embedded in the publisher’s platform (website or app). The IAB initiated ads.txt to curb corrupt practices in internet advertising by confirming the legitimacy and authenticity of ad spaces.
For publishers, this tool enables them to have control over their inventory by indicating all legitimate vendors. Online marketers can avoid domain flipping scams and be sure of the quality of inventory they are paying for at all times.
Ads.txt isn’t only for webmasters. There are also ads.txt for applications required for app publishing. This is a follow-up to the web ads.txt effort. With the app-ads.txt, developers can openly state which ad tech brands are allowed to sell their mobile inventory.
The ads.txt solution is currently used by 26.82 percent of all Google Play apps. In total, 865,967 apps out of 3,228,897 on the Play store have finally accepted the protocol.
Whether for app or web, ads.txt generally serves the same purpose.
The ads.txt file is a compilation of ad vendors that a publisher collaborates with to sell advertorial spaces. It is often placed at the domain’s root directory and is easily accessible by marketers and ad buyers. It usually consists of four components, which include:
Locating the ads.txt file is quite easy; simply add the extension “/ads.txt” to the publisher’s domain address. The advertiser can check this file to see if the ad exchange offering the publisher’s inventory is genuine and authorized to do so. An ad exchange may falsely list a popular publisher with good traffic and impression rate while, in reality, they don’t have any access to the publisher’s inventory. This is to deceive an unsuspecting advertiser who may want a premium inventory. In the end, the ad ends up in a different inventory with a poor impression.
By allowing publishers to specify which organizations are approved to sell their inventory, marketers can always verify the legitimacy of ad vendors they are dealing with. If a vendor selling a particular webmaster’s inventory doesn’t appear on the publisher’s ads.txt, the vendor is probably fraudulent.
In-app ads.txt operates and serves the same purpose as the web version but holds a few peculiarities. What occurs in an app ads.txt is this: mobile app developers build a list of AdTech partners who have permission to transact their ad inventory and host it on their site. Then, they provide a link that leads to their site in the app marketplace. Interested bidders can peruse the file via the developer’s website to confirm that their impressions are originating from approved sellers.
With this, online marketers may be certain that the app inventory they’re purchasing is genuine using this strategy.
Any editing program, such as Word Processors or WPS, can be used to produce ads txt files. It must include all the important information such as:
The first three pieces of information are critical for every entry, the last is optional, and the solution will function without them.
Ads.txt is straightforward and does not demand expert-level technical knowledge. Below is how you can implement it for WordPress and AdSense.
Ads.txt has a specified program that you can install on a WordPress site. The plugin route is the most convenient approach to develop and include ads.txt in WordPress. All you need to do is download and enable the ads.txt manager plugin.
After installing, launch the program and fill in the necessary information as stated above.
Google does not mandate publishers to adopt the ads.txt protocol; however, they support and highly recommend its use. AdSense users who do not use the ads.txt file often experience latencies and bug reports. On the use of ads.txt Google explains that the protocol is necessary for preventing ad fraud, especially regarding managing ad spaces.
Ads.txt files are available on the AdSense platform, and you can install them directly.
Here are steps to follow:
You can use generators if you don’t want to create your ads.txt file manually. An ads.txt generator is a tool that automatically creates an ads.txt file. However, they still require you to input some information.
Here are some popular sample ads.txt as published by the IAB.
greenadexchange.com, XF7342, DIRECT, 5jyxf8k54
The code above is an example of a site with only one approved system and managed by the webmaster.
redssp.com, 57013, RESELLER
The single reseller implies that only one partner is allowed and such an Adtech partner manages the process.
# ads.txt file for example.com: greenadexchange.com, 12345, DIRECT, d75815a79 silverssp.com, 9675, RESELLER, f496211 blueadexchange.com, XF436, DIRECT orangeexchange.com, 45678, RESELLER silverssp.com, ABE679, RESELLER
The code above shows a website with multiple partners either direct or resellers.
While various ad txt generators operate in somewhat different ways, the most common procedure is to enter your publisher ID and select the “generate ads.txt” option. This action generates an ads.txt file, which can be updated in a text editor and used wherever needed.
If an ads.txt is not appropriately created or there were mistakes while compiling the required information, it definitely won’t function. You have to test the file and ensure it is rightly done. You can do this by employing ads.txt validators- these are tools that check for errors in the ads.txt file. You use the validator by simply inputting the ads.txt URL into the validator.
The Google Ad Manager has a pre-installed ads.txt validator, and if you have an Ad manager account, you may test your files directly. However, there are other independent validators that are accessible and easy to use. It is important to state that validators do not fix a badly created or non-functional ads.txt file. It is simply an ads txt tester that checks for errors.
Various errors may arise from your ads.txt file; it could be a syntax error, wrong ID, uploading the file to the wrong domain, etc. Often you may have to manually trace the issue and fix it because a validator or tester won’t fix it.
Below, we will look at some popular errors and how to address them.
A missing ads.txt is the most typical problem many publishers face. Usually, if you have this error, it means the file wasn’t created correctly, or you have not uploaded it to your root domain.
You should ensure that the file is accurate and all the data points are correctly entered to rectify this issue. Read the section again if you’re unsure about creating the file correctly. After creating, ensure that it is uploaded to your root domain so that it is crawlable and buyers can easily access it.
The syntax error is another major issue most people face with ads.txt files. The IAB has set a standard for creating ads txt files, and not following this format would lead to an error-laden and invalid ads file.
To fix the syntax issue, you have to follow proper formatting standards. The protocol requires filling 3-4 data points, the first three are required, but the last is optional. Also, every field must be separated by a comma. it would look like this:
<Field #1>, <Field #2>, <Field #3>, <Field #4>
A publisher ID is a 16-digit number that is peculiar to every publisher and identifies them in an ad exchange. Advertisers and DSPs can easily identify every publisher and their specific inventory types with this unique number.
The ID is a mandatory requirement when creating the ads.txt file. The ads.txt file becomes invalid if it is missing or incorrectly entered.
Always double-check to ensure that your ID is correctly entered, but if you already experience the error, simply update your ads.txt with the accurate ID.
With this ads txt guide, it won’t be difficult to add the file to your platform, and leading adtech platforms make it even easier by integrating an ads.txt generating tool. For instance, SmartHub has Auto Optimization Machine Learning Mechanisms, and Easy Platform Administration that includes Ads.txt generation.
Go to Companies section
Go to the needed company and download ads.txt file
Send this ads.txt file to your SSP company POC, John Doe in our case.
Ask him to add your lines from ads.txt to his ads.txt hosted on his site, ssp_1.com in our sample.
This is what you can find inside ads.txt files generated by the platform. It consists of:
Remember that top DSPs do not buy from publishers who do not have an ads.txt file as this is a standard for safety and good quality of traffic. Ensure that your file is regularly updated to reflect new partnerships. If you still have questions about generating ads.txt in SmartHub, keep in mind that you can always consult our helpful support team who will assist you when you need it.
Sign up to our newsletters and we'll keep you in the loop with everything good going on in the world.
Want to Learn More?
We'll get back to you very soon.
You May Also Like