Add ads.txt for Google AdSense
Purpose
Place the approved advertising-seller record at the website root. This is a hosting file, not a WordPress post, Page, Media Library upload or DNS record.
Sample guide — not installed
The publisher ID below is a placeholder. Obtain the client's exact line before uploading. Creating this file does not approve the site for AdSense or install advertising code.
Illustrated sample guide
Open the full-size English guide.
This publishes the tutorial only. The illustrated publisher ID is a placeholder; no advertising-seller file is installed by this handbook page.
Required role
An authorized maintainer with access to the correct Hostinger website. The client's AdSense account owner supplies the seller record.
Prerequisites
- Confirm the domain is seattleonabudget.com and the correct hosting root.
- Obtain the exact seller record from the client's AdSense account.
- If ads.txt already exists, download a backup and preserve approved entries. If a plugin or advertising provider already generates the file, ask the maintainer to update that source instead of creating conflicting versions.
Steps
Step 1 — Obtain the correct line. In the client's AdSense account, open Sites, select seattleonabudget.com, then use its ads.txt details or Ads.txt snippet option and Copy. The status picture in the illustrated guide is an example, not confirmation of the account's current status. Example only; replace the entire publisher ID with the verified client value:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
Step 2 — Open the correct website root. In Hostinger, go to Websites, select the domain's Dashboard, then File Manager. Open the domain's public_html folder, or its confirmed document root if different. The picture is an example from Hostinger's documentation, not the client's account. Step 3 — Create or update ads.txt. Inside the confirmed website root, use New file and name it exactly ads.txt. If it exists, back it up before editing. Open only that file, insert the verified seller record as plain text, preserve other approved entries, then save. Do not save it as ads.txt.txt or inside wp-content, uploads or the handbook folder. Step 4 — Verify the public result. Open seattleonabudget.com/ads.txt. It should return the exact seller record as plain text with HTTP 200, without a login prompt or a website error page. Then ask the AdSense account owner to use Sites > seattleonabudget.com > Check for updates when available. Detection can take time; the seller-file status and site-approval status are separate checks.
Expected result
The verified client seller record is publicly readable at the root ads.txt URL. AdSense's result must be checked separately; no approval or detection is claimed by this sample procedure.
Common mistakes
- Uploading the example ID without replacing it.
- Editing the handbook root instead of the main website root.
- Replacing other ad networks' authorized records without review.
- Treating an HTML error page as a working plain-text file.
Recovery or escalation
Restore the backed-up ads.txt if an incorrect change was saved. Ask a maintainer to investigate a missing file, wrong root, conflicting generated file, caching, redirect or access problem. Do not disable security controls to make it load.
Sources and verification
Reviewed on 21 October 2026 against the Google AdSense ads.txt guide and Hostinger File Manager guide. The Hostinger pictures are cropped documentation examples from that guide; the AdSense status picture was supplied for this request. The root URL displayed Page Not Found during the read-only check. No client publisher ID was verified, no ads.txt was uploaded, and this procedure has not been replayed in the client's hosting account.
