---
title: How to Add ads.txt Lines to a Website
description: Due to the standards implemented by IAB and the Coalition for Better Ads, in order to support Internet transparency in the programmatic advertising ecosystem, these governing bodies require publishers
---

[Skip to content](https://help.mgid.com/ads-txt#main-content)

- [English](https://help.mgid.com/ads-txt)
- [Bahasa Indonesia](https://help.mgid.com/id/bagaimana-cara-menambahkan-baris-ads.txt-ke-website-anda)
- [Español](https://help.mgid.com/es/cómo-añadir-líneas-ads.txt-a-tu-sitio-web)
- [Français](https://help.mgid.com/fr/comment-ajouter-des-lignes-ads.txt-à-votre-site-web)
- [Italiano](https://help.mgid.com/it/come-puoi-aggiungere-il-file-ads.txt-al-tuo-sito-web)
- [Polski](https://help.mgid.com/pl/jak-dodać-linie-ads.txt-do-swojej-strony)
- [Português - Brasil](https://help.mgid.com/pt-br/como-adicionar-linhas-ads.txt-ao-seu-site)
- [Tiếng Việt](https://help.mgid.com/vi/làm-cách-nào-để-thêm-các-dòng-ads.txt-vào-trang-web)
- [Українська](https://help.mgid.com/uk/як-додати-на-свій-сайт-рядки-ads.txt)
- [ไทย](https://help.mgid.com/th/คุณจะเพิ่มบรรทัด-ads.txt-ในเว็บไซต์ของคุณได้อย่างไร)

English

Show submenu for translations

![MGID\_Logo\_Help\_Center\_W\_R\_Swoosh.svg\]](https://help.mgid.com/hubfs/MGID_Logo_Help_Center_W_R_Swoosh.svg)

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)

Open main navigation

Close main navigation

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)
- - [English](https://help.mgid.com/ads-txt)
    - [Bahasa Indonesia](https://help.mgid.com/id/bagaimana-cara-menambahkan-baris-ads.txt-ke-website-anda)
    - [Español](https://help.mgid.com/es/cómo-añadir-líneas-ads.txt-a-tu-sitio-web)
    - [Français](https://help.mgid.com/fr/comment-ajouter-des-lignes-ads.txt-à-votre-site-web)
    - [Italiano](https://help.mgid.com/it/come-puoi-aggiungere-il-file-ads.txt-al-tuo-sito-web)
    - [Polski](https://help.mgid.com/pl/jak-dodać-linie-ads.txt-do-swojej-strony)
    - [Português - Brasil](https://help.mgid.com/pt-br/como-adicionar-linhas-ads.txt-ao-seu-site)
    - [Tiếng Việt](https://help.mgid.com/vi/làm-cách-nào-để-thêm-các-dòng-ads.txt-vào-trang-web)
    - [Українська](https://help.mgid.com/uk/як-додати-на-свій-сайт-рядки-ads.txt)
    - [ไทย](https://help.mgid.com/th/คุณจะเพิ่มบรรทัด-ads.txt-ในเว็บไซต์ของคุณได้อย่างไร)

  English
  
  Show submenu for translations
- Contact us

 Contact us

 Welcome to MGID! How can we help you?

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

1. [Help Center Home](https://help.mgid.com/?hsLang=en)
2. [Publishers](https://help.mgid.com/publishers?hsLang=en)
3. [Types of integration](https://help.mgid.com/publishers?hsLang=en#types-of-integration)

# How to Add ads.txt Lines to a Website

Due to the standards implemented by IAB and the Coalition for Better Ads, in order to support Internet transparency in the programmatic advertising ecosystem, these governing bodies require publishers to create a public record of Authorized Digital Sellers or simply “ads.txt.” It gives publishers control over their inventory in the market, making it harder for bad actors to profit from selling counterfeit inventory across the ecosystem.

To see your MGID ads.txt, login to your dashboard. 

Next, click the "Ads.txt" button in the left navigation bar.

![1. Ads-txt](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Publishers/Ads-txt/1.%20Ads-txt.png?width=670&height=293&name=1.%20Ads-txt.png)

Or use the 'click here' link on the warning banner regarding missing lines.

![2. Ads-txt](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Publishers/Ads-txt/2.%20Ads-txt.png?width=670&height=293&name=2.%20Ads-txt.png)

To view the missing lines, click either "display missing lines" or the website name:

![3. Ads-txt](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Publishers/Ads-txt/3.%20Ads-txt.png?width=670&height=293&name=3.%20Ads-txt.png)

Finally, copy the missing ads.txt lines and add them to your website's ads.txt file.

![4. Ads-txt](https://help.mgid.com/hs-fs/hubfs/1.%20Help%20Center%20(website)/Publishers/Ads-txt/4.%20Ads-txt.png?width=670&height=293&name=4.%20Ads-txt.png)

If you don't have an ads.txt file for your website, you can create one from scratch using the recommended MGID lines.[Learn how here](https://www.youtube.com/watch?v=pMPC3XK2LO0).

If you monetize your website with AdSense you should add the AdSense lines to the ads.txt file to avoid restrictions by Google Ads Policy.

For more information, feel free to contact your personal manager.

 

- [Advertisers](https://help.mgid.com/advertisers?hsLang=en#main-content)

    - [Get started with MGID Ads](https://help.mgid.com/advertisers?hsLang=en#get-started-with-mgid-ads)
    - [Campaign Setup & Management](https://help.mgid.com/advertisers?hsLang=en#campaign-setup-management)
    - [CPA Tune](https://help.mgid.com/advertisers?hsLang=en#cpa-tune)
    - [Conversion tracking: general](https://help.mgid.com/advertisers?hsLang=en#conversion-tracking-general)
    - [Tracking with MGID Pixel](https://help.mgid.com/advertisers?hsLang=en#tracking-with-mgid-pixel)
    - [Postback & Trackers](https://help.mgid.com/advertisers?hsLang=en#postback-trackers)
    - [Affiliate Networks Integration](https://help.mgid.com/advertisers?hsLang=en#affiliate-networks-integration)
    - [Webhook tracking method & Integrations](https://help.mgid.com/advertisers?hsLang=en#webhook-tracking-method-integrations)
    - [Native integrations](https://help.mgid.com/advertisers?hsLang=en#native-integrations)
    - [Ad Creatives Management](https://help.mgid.com/advertisers?hsLang=en#ad-creatives-management)
    - [Campaign Optimization & Performance](https://help.mgid.com/advertisers?hsLang=en#campaign-optimization-performance)
    - [FAQ](https://help.mgid.com/advertisers?hsLang=en#faq)
    - [MGID Video Guides](https://help.mgid.com/advertisers?hsLang=en#mgid-video-guides)
- [Publishers](https://help.mgid.com/publishers?hsLang=en#main-content)

    - [General](https://help.mgid.com/publishers?hsLang=en#general)
    - [Prohibited content and practices](https://help.mgid.com/publishers?hsLang=en#prohibited-content-and-practices)
    - [Types of integration](https://help.mgid.com/publishers?hsLang=en#types-of-integration)
    - [Compliance](https://help.mgid.com/publishers?hsLang=en#compliance)
    - [Payment](https://help.mgid.com/publishers?hsLang=en#payment)
    - [FAQ](https://help.mgid.com/publishers?hsLang=en#faq)
- [Ad Quality Policies and Creative Guidelines](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#main-content)

    - [Ad Approval & Compliance Guidelines](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#ad-approval-compliance-guidelines)
    - [Creative AI Hub](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#creative-ai-hub)
    - [Creative Hub](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#creative-hub)
    - [Compliance & Security](https://help.mgid.com/ad-quality-policies-and-creative-guidelines?hsLang=en#compliance-security)
- [Advertisers Super Client Account](https://help.mgid.com/advertisers-super-client-account?hsLang=en#main-content)

    - [Clients](https://help.mgid.com/advertisers-super-client-account?hsLang=en#clients)
- [Fraud Prevention](https://help.mgid.com/fraud-prevention?hsLang=en#main-content)

    - [Fraud Prevention](https://help.mgid.com/fraud-prevention?hsLang=en#fraud-prevention)
- [API](https://help.mgid.com/api?hsLang=en)
- [DSP](https://help.mgid.com/dsp?hsLang=en)
- [SSP](https://help.mgid.com/ssp?hsLang=en)

- [Advertisers](https://www.mgid.com/advertisers)
- [Publishers](https://www.mgid.com/publishers)
- [Contact Us](https://www.mgid.com/about#tabs-contactus)

[![Chill listening crop-3](https://help.mgid.com/hubfs/MGID_Logo_Icon_HC.svg "Chill listening crop-3")](https://www.mgid.com)

Native performance through innovation

<https://facebook.com/mgidglobal/> <https://twitter.com/mgid/> <https://www.linkedin.com/company/mgid-inc->

Copyright © 2026, MGID Inc.