Warning

ads.txt has lines that aren't valid

The short version

Fix the listed lines.

What it means

Your ads.txt or app-ads.txt has lines that don't follow the IAB ads.txt format, or the file lists no sellers at all. Each record needs a domain, a publisher account ID and DIRECT or RESELLER, separated by commas, with an optional certification authority ID. The detail lists the line numbers.

Why it matters

Ad buyers skip lines they can't parse, so a seller written wrongly is treated as unauthorised and its ads may not be bought, which costs revenue. A file with no records tells buyers that no one is allowed to sell your inventory.

How to fix it

  1. Write each record on its own line: example.net, pub-0000000000000001, DIRECT, f08c47fec0942fa0.
  2. Use commas, not semicolons or tabs, between fields.
  3. Put variables such as contact= or subdomain= on their own lines.
  4. Copy records from your ad network's own instructions rather than typing them.
  5. If you don't sell ads, remove the file instead of leaving it empty.

Check it worked

Run the standard files check again. ads.txt should list your sellers with no bad lines, and the finding should be gone.