To get and adhd Authorized Networks to your ads.txt file, you request to travel a process wherever you database the advertisement networks that are authorized to merchantability oregon service ads connected your website. Here’s however you tin bash that:
1. Get Your Ad Network IDs
Each advertisement web (such arsenic Google AdSense, Rubicon, OpenX, etc.) has a unsocial identifier, and you request to cod those to database them successful your ads.txt file. For Google AdSense, you volition request your ain AdSense steadfast ID. If you person contributors, you whitethorn request their respective AdSense steadfast IDs arsenic well.
For Google AdSense:
- Your AdSense steadfast ID tin beryllium recovered successful your Google AdSense account:
- Log successful to your AdSense account.
- Click connected the cogwheel icon (Settings) and prime Account Information.
- Under Account Settings, you volition spot your Publisher ID starting with "ca-pub-".
For Other Networks:
- You tin get steadfast IDs oregon web accusation by signing up for each advertisement web and accessing their respective dashboards.
- If you’re utilizing aggregate advertisement networks (like OpenX, Rubicon, etc.), you tin find these IDs successful the network’s relationship settings oregon dashboard.
2. Format Your ads.txt File
Once you person the advertisement web IDs, you request to make oregon update your ads.txt record with a database of authorized advertisement networks. The format follows this structure:
<ad-network-domain>, <publisher-id>, <relationship>- <ad-network-domain>: The domain of the advertisement web (e.g., google.com, openx.com, rubiconproject.com).
- <publisher-id>: Your unsocial steadfast ID for each advertisement network.
- <relationship>: This indicates whether you are dealing straight with the web (DIRECT) oregon if the web is reselling your inventory (RESELLER).
Example:
If you are utilizing Google AdSense and person an further web similar Rubicon, your ads.txt record mightiness look similar this:
google.com, ca-pub-1234567890123456, DIRECT rubiconproject.com, 12345, RESELLER openx.com, 67890, RESELLERThis indicates that:
- Google AdSense is authorized to service ads connected your site, and you person a direct relationship.
- Rubicon Project and OpenX are authorized arsenic resellers, meaning they tin merchantability ads connected your tract connected your behalf.
3. Add the ads.txt File to Your Website
Once you person the ads.txt record ready, you request to upload it to the basal directory of your website. Here’s however to bash it:
For WordPress:
- Use a plugin similar File Manager oregon Yoast SEO (which allows for adding customized files) to upload your ads.txt file.
- Or, manually upload it via FTP:
- Use an FTP lawsuit (like FileZilla) and log successful to your web hosting.
- Go to the root directory of your website (where index.html oregon wp-config.php is located).
- Upload the ads.txt record here.
For Non-WordPress Sites:
- Access your hosting power sheet (like cPanel oregon Plesk) oregon usage FTP to upload the ads.txt record straight to the basal directory of your website.
- Ensure the ads.txt record is publically accessible by visiting http://yoursite.com/ads.txt.
4. Verify ads.txt is Working
Once you’ve added the ads.txt file, you tin verify that it’s accessible:
- Go to http://yourdomain.com/ads.txt successful a browser.
- You should spot the contented of your ads.txt record displayed.
5. Keep the ads.txt Updated
- Whenever you adhd caller networks, contributors, oregon update your AdSense ID, marque definite to support your ads.txt record updated.
- If a caller advertisement web is authorized to merchantability ads connected your site, you volition request to adhd their domain and steadfast ID to the list.
6. Why Use ads.txt?
- It prevents unauthorized advertisement income connected your tract by lone allowing verified networks.
- Helps summation spot and transparency successful the advertizing ecosystem, ensuring that advertisers cognize they are moving with morganatic publishers.
Summary Steps:
- Obtain the steadfast IDs for each advertisement web you privation to database (AdSense, Rubicon, OpenX, etc.).
- Format them decently successful the ads.txt file.
- Upload the ads.txt record to your website’s basal directory.
- Verify it’s publically accessible by visiting the file's URL.
By doing this, you’re ensuring that lone the authorized networks tin service ads connected your website and protecting against unauthorized advertisement sales.