Find your publisher ID
publisher ID is the identifier for your AdSense account. Your publisher ID looks like this: pub-1234567891234567
- Go to your AdSense account
- Sign in to your AdSense account.
- Click Account.
In the “Account information” section, see the “Publisher ID” field.
Create your own ads.txt file for AdSense
- Open NotPad for Your Computer
- Create a text (ads.txt) file save.
Include the following line:
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0
Copy Full Link Just Repels “Pub-123456789” Publisher ID For Your Adsense account.
Important: Make sure you replace pub-0000000000000000 with your own publisher ID.
Host your ads.txt file at the root level of your domain. (for example, https://example.com/ads.txt).
How to upload ads.txt file for cpanel
Login Your Cpanel server (For example, https://example.com/cpanel), Enter Your ID and password. Open Your Public_html FIle and Upload ads.txt file.