You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A publisher who sells through the server has sellers to declare that their own ads.txt does not know about #1278
A buyer's crawler that does not find a seller in a publisher's ads.txt refuses that seller's inventory. A publisher who sells through this server has sellers to declare that their own file does not know about, and the file passes through the server untouched. Every buyer's crawler reads the file, and a typo in it costs the publisher revenue silently.
crates/ads-txt/iabtl is a middleware for text/plain, the first to use an entry for a media type other than HTML. Named in a [[fetch]] entry on the file's path, it passes the origin's file through and writes the lines after its last one, on a line of their own. The publisher's file stays theirs, read from the origin as it is, and the deployment adds to it.
Each line is checked as the settings load, and by ts config validate, against the file's grammar, which allows a record of domain, account id and DIRECT or RESELLER with an optional certification authority id, or one of the five variables (CONTACT, SUBDOMAIN, INVENTORYPARTNERDOMAIN, OWNERDOMAIN, MANAGERDOMAIN) with a value. A comment, an empty line, a record with the wrong number of fields, another relationship, a trailing comma, a variable with no value or another name, and an empty list are each refused naming the line and what is wrong. A document that selects the module and names it in no [[fetch]] entry for text/plain is refused, because the lines would never be written. modules is a list so that a module supplying lines from a vendor's own system can be named beside iabtl.
Activity