---
title: Adding ads.txt for Google Adsense
description: Learn how to add an ads.txt file for Google AdSense on your B12 website using redirects. Step-by-step guide to uploading, linking, and validating your ads.txt setup.
---

[Skip to content](https://support.b12.io/en/v3/add-ads.txt-for-google-adsense#main-content)

[![2026 B12 company logo.](https://support.b12.io/hubfs/B12_logo.svg)](https://support.b12.io/en?hsLang=en)

- [B12 Website](https://www.b12.io/)
- Products
  
  Show submenu for Products

    - Sites
      
      Show submenu for Sites

          - [AI builder](https://www.b12.io/ai-website-builder)
          - [Backends](https://www.b12.io/backends)
    - Client engagement
      
      Show submenu for Client engagement

          - [Client intake forms](https://www.b12.io/client-intake-forms)
          - [Contact manager](https://www.b12.io/contact-manager)
- [Templates](https://www.b12.io/ai-website-prompt-gallery)
- Resources
  
  Show submenu for Resources

    - [Resource center](https://www.b12.io/resource-center)
    - [Case studies](https://www.b12.io/case-studies)
- [Pricing](https://www.b12.io/pricing)
- [Log in](https://b12.io/dashboard/)

Open main navigation

Close main navigation

- [B12 Website](https://www.b12.io/)
- Products
  
  Show submenu for Products

    - Sites
      
      Show submenu for Sites

          - [AI builder](https://www.b12.io/ai-website-builder)
          - [Backends](https://www.b12.io/backends)
    - Client engagement
      
      Show submenu for Client engagement

          - [Client intake forms](https://www.b12.io/client-intake-forms)
          - [Contact manager](https://www.b12.io/contact-manager)
- [Templates](https://www.b12.io/ai-website-prompt-gallery)
- Resources
  
  Show submenu for Resources

    - [Resource center](https://www.b12.io/resource-center)
    - [Case studies](https://www.b12.io/case-studies)
- [Pricing](https://www.b12.io/pricing)
- [Log in](https://b12.io/dashboard/)
- [Start for free](https://b12.io/signup/)

[Start for free](https://b12.io/signup/)

 How can we help?

- There are no suggestions because the search field is empty.

1. [B12 Help Center](https://support.b12.io/en?hsLang=en)
2. [Adding functionality](https://support.b12.io/en/adding-functionality?hsLang=en)
3. [Third-party integrations](https://support.b12.io/en/adding-functionality?hsLang=en#third-party-integrations)

# Adding ads.txt for Google Adsense

## Learn how to add an ads.txt file to verify your ad network with Google AdSense

| ![ronnel](https://support.b12.io/hs-fs/hubfs/Ronnel%20DG.png?width=60&height=60&name=Ronnel%20DG.png) Written by: Ronnel DG Last updated: 15 Oct., 2026 |
| --- |

An ads.txt file is a plain text file that authorizes ad networks to sell ad space on your website. Google AdSense requires this file to be accessible at the root of your domain. For example, [yourdomain.com/ads.txt](http://yourdomain.com/ads.txt).

**Note:** You'll need an ads.txt file from your Google AdSense account before starting. Log in to AdSense, go to `Account` **\>** `Account settings`, and find the ads.txt section to copy your file content.

### Copying your ads.txt file

1. Log into your ad network account (Google AdSense, Google Ad Manager, OpenX, Rubicon, AppNexus, etc.).
2. Find your ads.txt content:   
   **- Google AdSense**: `Account` **\>** `Account settings` **\>** search for "ads.txt"  
   **- Google Ad Manager**: `Admin` **\>** `Monetization settings` **\>** ads.txt  
   **- Other networks**: Check your network's support docs for "ads.txt download" or "ads.txt certification."
3. Copy the entire ads.txt content. It will look something like this:

> google.com, pub-xxxxxxxxxxxxxxxx, DIRECT, f08c47fec0942fa0
> 
> appnexus.com, 12345, RESELLER
> 
> contextweb.com, 558624, RESELLER, 6042ff5d85a7ba4b

### Adding your ads.txt file with the AI Agent

1. Open the AI Agent chat. Copy the prompt below, paste it into the chat, and replace the sample with your own ads.txt content before you send it.
   
   ```
   Here's my ads.txt content. Please create an ads.txt file at the root of my website with this content: [paste your ads.txt]
   ```
2. Press Enter/ Return key or click the up arrow ![Up arrow icon](https://support.b12.io/hs-fs/hubfs/image-png-Apr-08-2026-03-59-04-0807-PM.png?width=20&height=20&name=image-png-Apr-08-2026-03-59-04-0807-PM.png) to send the prompt to the AI agent.
3. Wait for the AI agent to confirm that the ads.txt file was created.
4. Click `Publish` to save your changes.

### Verifying your setup

1. Open a browser and go to **yourdomain.com**/ads.txt (replace with your actual domain).
2. You should see your ads.txt content displayed as plain text.
3. To confirm the file is valid, run it through an online checker such as [ads.txt Validator](https://adstxt.guru/validator/).

**Tip:** If Google AdSense still shows a warning after completing setup, wait 24–48 hours. AdSense can take time to detect and process file changes.

 

- [Getting started](https://support.b12.io/en/getting-started?hsLang=en#main-content)

    - [Introduction](https://support.b12.io/en/getting-started?hsLang=en#introduction)
    - [Detailed guides](https://support.b12.io/en/getting-started?hsLang=en#detailed-guides)
- [Working with B12's AI Agent](https://support.b12.io/en/working-with-b12s-ai-agent?hsLang=en#main-content)

    - [Agent Skills](https://support.b12.io/en/working-with-b12s-ai-agent?hsLang=en#agent-skills)
- [Built-in features](https://support.b12.io/en/built-in-features?hsLang=en#main-content)

    - [Visual edit](https://support.b12.io/en/built-in-features?hsLang=en#visual-edit)
    - [Code editor](https://support.b12.io/en/built-in-features?hsLang=en#code-editor)
    - [Data & users (Backends)](https://support.b12.io/en/built-in-features?hsLang=en#data-users-backends)
    - [Forms & submissions](https://support.b12.io/en/built-in-features?hsLang=en#forms-submissions)
    - [Commerce](https://support.b12.io/en/built-in-features?hsLang=en#commerce)
    - [Contact manager](https://support.b12.io/en/built-in-features?hsLang=en#contact-manager)
    - [eSignatures](https://support.b12.io/en/built-in-features?hsLang=en#esignatures)
    - [Email Marketing](https://support.b12.io/en/built-in-features?hsLang=en#email-marketing)
    - [Team](https://support.b12.io/en/built-in-features?hsLang=en#team)
    - [Analytics](https://support.b12.io/en/built-in-features?hsLang=en#analytics)
    - [Website settings](https://support.b12.io/en/built-in-features?hsLang=en#website-settings)
- [Adding functionality](https://support.b12.io/en/adding-functionality?hsLang=en#main-content)

    - [Third-party integrations](https://support.b12.io/en/adding-functionality?hsLang=en#third-party-integrations)
    - [Multimedia Integrations](https://support.b12.io/en/adding-functionality?hsLang=en#multimedia-integrations)
- [Publishing & growing](https://support.b12.io/en/publishing-growing?hsLang=en#main-content)

    - [Connecting your Domain](https://support.b12.io/en/publishing-growing?hsLang=en#connecting-your-domain)
    - [Domains FAQ](https://support.b12.io/en/publishing-growing?hsLang=en#domains-faq)
    - [Email Forwarding & Sending](https://support.b12.io/en/publishing-growing?hsLang=en#email-forwarding-sending)
    - [Growth & Marketing](https://support.b12.io/en/publishing-growing?hsLang=en#growth-marketing)
- [Troubleshooting](https://support.b12.io/en/troubleshooting?hsLang=en#main-content)

    - [FAQs](https://support.b12.io/en/troubleshooting?hsLang=en#faqs)
- [Account & billing](https://support.b12.io/en/account-billing?hsLang=en#main-content)

    - [Account Login & Password](https://support.b12.io/en/account-billing?hsLang=en#account-login-password)
    - [Subscription & Payment Information](https://support.b12.io/en/account-billing?hsLang=en#subscription-payment-information)
    - [Your Account](https://support.b12.io/en/account-billing?hsLang=en#your-account)
    - [Managing Multiple Websites](https://support.b12.io/en/account-billing?hsLang=en#managing-multiple-websites)
    - [Multi-user](https://support.b12.io/en/account-billing?hsLang=en#multi-user)
- [Getting support](https://support.b12.io/en/getting-support?hsLang=en#main-content)

    - [Professional & Advanced Plan Support (B12 2.0)](https://support.b12.io/en/getting-support?hsLang=en#professional-advanced-plan-support-b12-2-0)
- [B12 2.0](https://support.b12.io/en/b12-2-0?hsLang=en#main-content)

    - [Website Structure and Content](https://support.b12.io/en/b12-2-0?hsLang=en#website-structure-and-content)
    - [Website Style & Design](https://support.b12.io/en/b12-2-0?hsLang=en#website-style-design)
    - [Sitewide Settings](https://support.b12.io/en/b12-2-0?hsLang=en#sitewide-settings)
    - [Using the B12 Editor](https://support.b12.io/en/b12-2-0?hsLang=en#using-the-b12-editor)
    - [Analytics & SEO](https://support.b12.io/en/b12-2-0?hsLang=en#analytics-seo)
    - [Integrations - General](https://support.b12.io/en/b12-2-0?hsLang=en#integrations-general)
    - [Integrations - Communication](https://support.b12.io/en/b12-2-0?hsLang=en#integrations-communication)
    - [Integrations - Language](https://support.b12.io/en/b12-2-0?hsLang=en#integrations-language)
    - [Integrations - Ecommerce](https://support.b12.io/en/b12-2-0?hsLang=en#integrations-ecommerce)
    - [Professional & Advanced Plan Features](https://support.b12.io/en/b12-2-0?hsLang=en#professional-advanced-plan-features)
    - [Troubleshooting & Resources](https://support.b12.io/en/b12-2-0?hsLang=en#troubleshooting-resources)
    - [Contact Forms](https://support.b12.io/en/b12-2-0?hsLang=en#contact-forms)
    - [Online Scheduling](https://support.b12.io/en/b12-2-0?hsLang=en#online-scheduling)
    - [Advanced Editing (Experts Only)](https://support.b12.io/en/b12-2-0?hsLang=en#advanced-editing-experts-only)

[![B12\_logo\_2025](https://support.b12.io/hs-fs/hubfs/B12_logo_2025.png?width=53&height=24&name=B12_logo_2025.png "B12_logo_2025")](https://www.b12.io)

© 2025 B12. All rights reserved.

<https://twitter.com/b12> <https://www.facebook.com/B12io> <https://www.youtube.com/@b12io> <https://www.instagram.com/b12io>

×