Once an ads.txt file is set up on your domain, the Google crawler will:
- Attempt to crawl the file every 24 hours.
- Parse the contents of the file to determine seller IDs that are authorized to monetize your inventory.
To ensure your ads.txt file can be crawled, Adsense recommend working through the following troubleshooting steps.
Confirm the file is not temporarily unavailable
If a previously seen ads.txt file is unavailable on a subsequent re-crawl, the previously seen entries will be:
- Purged if the response is a hard 404 error (page that actually doesn’t exist; HTTP 404 status).
- Retained for up to five days if the response is a soft 404 error (a real page returned for a URL that doesn't actually exist; HTTP 200 status) or a 500 server error.
Confirm that the file is reachable from the root domain
Redirects from
domain.com/ads.txt to www.domain.com/ads.txt are fairly common. Ads.txt crawling will start at the root domain, and the root domain needs to return from, or redirect to, the ads.txt file.
An ads.txt file on
www.domain.com/ads.txt will only be crawled if domain.com/ads.txt redirects to it.Ensure crawling is not disallowed by robots.txt
The ads.txt file for a domain may be ignored by crawlers if the robots.txt file on a domain disallows one of the following:
- The crawling of the URL path on which an ads.txt file is posted.
- The User Agent of the crawler.
- Example: Crawling disallowed on ads.txt file path
For example1.com:
- An ads.txt file is posted on
example1.com/ads.txt.
- The following lines are included in
example1.com/robots.txt:
User-agent: *
Disallow: /ads
- The ads.txt file will be ignored by crawlers that respect the robots.txt standard.
- You can modify the robots.txt file as follows to allow crawling of the file (other approaches are possible):
- Option 1: Modify disallowed path.
User-agent: *
Disallow: /ads/
- Option 2: Explicitly allow ads.txt; depends on crawler support for the
Allow robots.txt directive.
User-agent: *
Allow: /ads.txt
Disallow: /ads
Example: Crawling disallowed for User Agent
For example2.com:
- An ads.txt file is posted on
example2.com/ads.txt.
- The following lines are included in
example2.com/robots.txt:
User-agent: Googlebot
Disallow: /
- The ads.txt file will be ignored by the Google crawler.
For example1.com:
- An ads.txt file is posted on
example1.com/ads.txt. - The following lines are included in
example1.com/robots.txt:User-agent: *Disallow: /ads - The ads.txt file will be ignored by crawlers that respect the robots.txt standard.
- You can modify the robots.txt file as follows to allow crawling of the file (other approaches are possible):
- Option 1: Modify disallowed path.
User-agent: *Disallow: /ads/
- Option 2: Explicitly allow ads.txt; depends on crawler support for the
Allowrobots.txt directive.
User-agent: *Allow: /ads.txtDisallow: /ads
Example: Crawling disallowed for User Agent
For example2.com:
- An ads.txt file is posted on
example2.com/ads.txt. - The following lines are included in
example2.com/robots.txt:User-agent: GooglebotDisallow: / - The ads.txt file will be ignored by the Google crawler.
No comments:
Post a Comment