Google can search and implement Ad.txt files in subdomains when there is a line for subdomains in the files.
You add a subdomain= declaration to the ads.txt file if you want to reference a subdomain. For instance, if your ads.txt file for website.com has to include the subdomain subdomain.website.com, you would write subdomain=subdomain.example.com in your ads.txt.