Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Wie man Ads.txt-Dateien in WordPress erstellt und verwaltet

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Möchten Sie eine ads.txt-Datei in WordPress erstellen und verwalten?

Wenn Ihre Website in betrügerische Werbung verwickelt wird, kann dies Ihren Ruf schädigen und Sie Geld kosten. Durch das Hinzufügen einer einfachen ads.txt-Datei zu Ihrer Website können Sie Ihre Website, Partner und Publisher vor Werbebetrug schützen und möglicherweise Ihre Werbeeinnahmen steigern.

In diesem Artikel zeigen wir Ihnen, wie Sie eine ads.txt-Datei in WordPress einfach erstellen und verwalten können.

How to create and manage ads.txt files in WordPress

Warum Ads.txt-Dateien in WordPress erstellen und verwalten?

Ads.txt ist die Abkürzung für „Authorized Digital Seller“. Es handelt sich um eine Datei, die anzeigt, welche Unternehmen für den Verkauf von Anzeigen auf Ihrer WordPress-Website zugelassen sind, und die das Erscheinen gefälschter Anzeigen verhindert.

Wenn Sie mit Ihrem Blog Geld verdienen, indem Sie Anzeigen schalten (z. B. mit Google AdSense), ist es eine gute Idee, eine ads.txt-Datei zu Ihrer Website hinzuzufügen.

Der Grund dafür ist, dass einige nicht autorisierte Parteien vorgeben können, Ihre Erlaubnis zum Verkauf von Anzeigen in Ihrem WordPress-Blog zu haben. Dies könnte dazu führen, dass schlechte oder irreführende Werbung angezeigt wird, was für Ihren Ruf und die Sicherheit Ihrer Nutzer gefährlich sein kann.

Die Datei ads.txt ist wie ein Wächter. Sie hindert jeden, der nicht auf Ihrer genehmigten Liste steht, daran, Anzeigen in Ihrem WordPress-Blog zu verkaufen. Auf diese Weise sichern Sie Ihre Website ab und stellen sicher, dass nur Anzeigen von vertrauenswürdigen Partnern erscheinen.

In diesem Sinne wollen wir uns ansehen, wie Sie eine ads.txt-Datei in WordPress erstellen und verwalten können. Wir werden Sie durch zwei verschiedene Methoden führen. Sie können diese Quicklinks verwenden, um zu einer bestimmten Methode zu springen:

Das Erstellen und Verwalten einer ads.txt-Datei erfordert ein wenig Kodierung. Wenn Sie sich mit dem Hinzufügen von benutzerdefiniertem Code nicht auskennen, kann dieser Prozess überwältigend erscheinen.

Aus diesem Grund empfehlen wir die Verwendung von WPCode, dem besten Code-Snippet-Plugin auf dem Markt. Damit müssen Sie nicht direkt an Ihrem WordPress-Code herumpfuschen und sich Sorgen machen, dass Ihre Website kaputt geht.

Dieses Plugin dient als benutzerfreundliche Schnittstelle, über die Sie einfach und sicher benutzerdefinierten Code in Ihre WordPress-Website einfügen können. Sie können alle von Ihnen hinzugefügten Codes an einem Ort anzeigen, so dass Sie den Überblick über Ihre Anpassungen behalten können.

WPCode - Best WordPress Code Snippets Plugin

Für diese Anleitung werden wir die WPCode Pro-Version verwenden. Es gibt zwar ein kostenloses WPCode-Plugin, aber die Funktion, die wir für die Verwaltung von ads.txt-Dateien benötigen, ist in der Pro-Version enthalten.

Das Wichtigste zuerst: Installieren Sie WPCode. Sie können unsere Schritt-für-Schritt-Anleitung für die Installation eines WordPress-Plugins befolgen, wenn Sie eine Anleitung benötigen.

Stellen Sie als Nächstes sicher, dass Sie den Lizenzschlüssel für WPCode Pro aktivieren. Gehen Sie einfach zu Code Snippets Einstellungen und geben Sie Ihren Lizenzschlüssel an der entsprechenden Stelle ein. Wählen Sie dann die Schaltfläche „Schlüssel aktivieren“.

Eine erfolgreiche Aktivierung erkennen Sie daran, dass sich der Text der Schaltfläche in „Schlüssel deaktivieren“ ändert.

Enter WPCode license key

Gehen wir nun zu Code Snippets File Editor. Hier werden Sie sehen, dass das Plugin bereits eine integrierte ads.txt-Managerfunktion hat.

Nun müssen Sie die folgenden Informationen in diesem Format eingeben: Domain, veröffentlichte ID, Beziehungstyp und Werbeplattform-ID (optional).

Hier fügen wir zum Beispiel Google AdSense als anerkannte Werbeplattform hinzu:

google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

Das erste Feld ist die Domain des Unternehmens, das Ihr Anzeigeninventar verkaufen oder weiterverkaufen darf. Im obigen Beispiel ist das google.com.

Danach fügen Sie die Publisher-ID hinzu, die für Ihr Konto eindeutig ist. Hier lautet sie pub-0000000000000000. Wenn Sie nicht sicher sind, wo diese ID zu finden ist, können Sie in der Online-Dokumentation des Netzwerks oder der Plattform nach weiteren Informationen suchen.

Achten Sie darauf, dass Sie die richtige ID eingeben. Andernfalls kann es sein, dass Sie den Fehler „Earnings at risk“ erhalten.

Im dritten Abschnitt wird die Art der Beziehung angegeben, die entweder DIREKT oder RESELLER ist. Direkt bedeutet, dass der Publisher direkt mit dem AdTech-Anbieter zusammenarbeitet.

Wiederverkäufer bedeutet, dass der Publisher einen Dritten zum Wiederverkauf in seinem Namen ermächtigt hat, z. B. ein Anzeigennetzwerk oder eine Anzeigenmanagementlösung.

Das letzte Feld ist die ID der Werbeplattform, die optional ist.

Creating ads.txt file with WPCode

Sie können nun so viele Plattformen und Wiederverkäufer hinzufügen, wie Sie möchten. Achten Sie nur darauf, dass Sie jede Organisation in einer eigenen Zeile hinzufügen.

Wenn Sie fertig sind, scrollen Sie einfach nach unten und klicken Sie auf „Änderungen speichern“.

Saving the ads.txt file on WPCode

Jetzt kann jeder die ads.txt-Datei Ihrer Website lesen.

Um die Datei in Aktion zu sehen, fügen Sie einfach ads.txt an das Ende Ihres Domainnamens an, z. B. www.example.com/ads.txt.

An example of an ads.txt file in WordPress

Methode 2: Erstellen einer Ads.txt-Datei in WordPress mit Ads.txt Manager (kostenlos)

Eine andere Möglichkeit, eine ads.text-Datei zu erstellen, ist die Verwendung von Ads.txt Manager. Dieses kostenlose Plugin fügt einen einfachen Code-Editor hinzu, in den Sie alle von Ihnen zugelassenen Plattformen und Netzwerke eingeben können.

Als Erstes müssen Sie das Ads.txt Manager-Plugin installieren und aktivieren. Weitere Details finden Sie in unserer Schritt-für-Schritt-Anleitung für die Installation eines WordPress-Plugins.

Rufen Sie nach der Aktivierung die Seite Einstellungen “ Ads.txt auf.

Creating an ads.txt file for your WordPress website

Es öffnet sich ein einfacher Code-Editor, in dem Sie jede Plattform oder jeden Wiederverkäufer in einer eigenen Zeile hinzufügen können, genau wie zuvor.

Wenn Sie mit den eingegebenen Informationen zufrieden sind, klicken Sie auf die Schaltfläche „Änderungen speichern“.

Publishing an ads.txt file on your website or blog

So beheben Sie den Fehler „Gefährdete Einnahmen“ in Google AdSense

Wenn Sie Google AdSense verwenden, kann es sein, dass Sie den folgenden Fehler in Ihrem AdSense-Konto sehen:

Einnahmen gefährdet - Eine oder mehrere Ihrer ads.txt-Dateien enthalten nicht Ihre AdSense-Publisher-ID. Beheben Sie dies jetzt, um schwerwiegende Auswirkungen auf Ihre Einnahmen zu vermeiden.

Dies bedeutet lediglich, dass Ihre ads.txt-Datei nicht die richtige Publisher-ID enthält.

Um dieses Problem zu beheben, melden Sie sich auf Ihrer AdSense-Seite mit Ihrer Google-E-Mail-Adresse und Ihrem Passwort an. Sie finden die ID neben dem folgenden Feld: „Diese E-Mail ist mit dem AdSense-Konto verknüpft“.

The Google AdSense advertising platform

Gehen Sie nun einfach zum Datei-Editor von WPCode oder zum Ads.txt-Manager und suchen Sie die Zeile, in der Google AdSense als autorisierter Anbieter hinzugefügt wird. Ändern Sie dann den Text so, dass er die richtige ID verwendet.

Danach speichern Sie die Änderung, um Ihre Einstellungen zu speichern. Wenn Sie nun Ihr Google AdSense-Konto erneut besuchen, sollte die Fehlermeldung verschwunden sein.

Wir hoffen, dass dieses Tutorial Ihnen geholfen hat zu lernen, wie man ads.txt-Dateien in WordPress erstellt und verwaltet. Vielleicht möchten Sie auch erfahren, wie Sie Ihren Blog-Traffic erhöhen können, oder sich unsere Expertenauswahl der besten WordPress-Popup-Plugins ansehen.

Wenn Ihnen dieser Artikel gefallen hat, dann abonnieren Sie bitte unseren YouTube-Kanal für WordPress-Videotutorials. Sie können uns auch auf Twitter und Facebook finden.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

103 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Jiří Vaněk says

    I was also initially alerted that I didn’t have an ads.txt file. However, I eventually chose the path of manually creating and uploading it via FTP to save WordPress from additional plugins. Therefore, I recommend the same. Alternatively, if anyone has a file manager in WordPress in the form of a plugin, they can simply create a text file named ads.txt with the code and upload it to the root directory of WordPress via FTP.

  3. Ahmed Omar says

    I just received this message few days ago „Earnings at risk – You need to fix some ads.txt file issues to avoid severe impact to your revenue.“
    This post solved my issue
    Thank you

  4. Amber says

    Hi,

    I have followed the steps to add the ad.txt to the website. When I go to check it is says page not found. I have deleted cache. I’m not sure what else to do.

    • WPBeginner Support says

      If clearing your site’s cache is not working, reach out to your hosting provider for them to make sure it is not their caching or a security setting that may be preventing it from being crawled.

      Admin

  5. Poornapragna G A says

    Hi,

    I have been a regular reader of your lovely blog. Thanks.

    I entered the details of Ads.txt as given in Google Adsense in the Ads.Txt section „Settings“ section in the WordPress dashboard and saved the changes as per your guidance above. Still, my Adsense account says „Ads. Txt not found“. What is the reason for this?

    • WPBeginner Support says

      If you have any caching on your site, ensure that you clear it as that is the most common reason why Google would not be able to find your new ads.txt.

      Admin

  6. Caydaruus says

    Hello i installed Manage Ads.txt and i have google adsense and taboole my question

    can i use both in this plugin in one place

  7. Rakesh says

    Very nice article but I want to know how I can add more than one ads.txt file in root folder of my domain , lets say one from google and other from infolink? Please help

    • WPBeginner Support says

      You should be able to add the information from one ads.txt file to the other and merge them for what you’re wanting to do :)

      Admin

  8. Arif Wali says

    Hello,
    I have installed more than 10 plugins I don’t want to install more than that. I there any alternate option?

    • WPBeginner Support says

      If you do not have an ads.txt file then you can create one, not all sites have one created for them by default.

      Admin

  9. Sasindu Jayasri says

    I worked with infolink before with this plugin. It worked properly. Now got adsense approval too. So need to add adsense ads.txt code to here. Without losing infolink can I add that file too?

  10. Emmanuel Acquah says

    I do want to insert ads text on my wordpress website and will this work or is there any other recommendation to carry out this action.

    • WPBeginner Support says

      You would want to check with who you are wanting to include ads from for how to add those to your site. This guide is to help limit what can include ads on your site rather than adding more to your site.

      Admin

  11. mohamed salah says

    i have added ads.txt from google adsense, and now i need to add ads.txt from another site and in file manager it refuses to create another ads.txt file, what can i do ?

    • WPBeginner Support says

      Rather than creating another, you would want to modify your ads.txt with the recommendations from the different platforms you want to include.

      Admin

  12. Paula says

    Very helpful, the plug-in was very easy to install and use.
    One question: now that my Ads.txt file is installed and running smooth on my site, is it okay to delete the plugin? Or would doing that also delete the Ads.txt file? I ask only because I try to minimize the number of plugins on my site, since each extra plugin makes the site that little bit heavier/slower etc.
    Thanks again.

  13. Carmen Applegate says

    Wow! I’ve been trying to figure this out for almost an hour now! This article totally saved me! Thanks!

  14. Stephen Reeves says

    Hey there,

    I am getting an error regarding there already being an ads.txt file on my wordpress, although there shouldn’t be? Strange.

  15. Ashish Gupta says

    Thank for sharing the article, i,m also facing the same issues.

    I just want to know that, i have to update same code or need to do any change.
    google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0

  16. Vana says

    Always helpful, always to the point, thats why any time I need help I use wpbeginner.
    Thank you so much!

    Vana Verouti

  17. Karnav says

    If i upload txt file in file manager on my control panel instead adding new plugin compare to add a plugin and put code in it, would it have same speed for loading my website or is it that plugin based set up affect the speed?

  18. Samson says

    My team and I just got our AdSense approved. We installed the Ads.txt plugin but I noticed all our articles had a change in their URLs.

    On tracing it, I saw that that ads.txt code of „google.com, pub-account, DIRECT, blah blah blah“ is being added to every of our post URL making it look like „www.example.com/google.com, pub-account, DIRECT, blahblabhblah/post-name/

    It really looks disturbing.
    Please, how can I remove it without disturbing the ads.txt?

    • WPBeginner Support says

      The ads.txt shouldn’t modify your permalinks, you would want to start by checking your permalink settings under Settings>Permalinks to see what is set there as well as resaving your permalinks

      Admin

  19. vuctor says

    i got approved, and i had the warning, i quickly installed and activated the plugin and the warnings disappeared. But days later, my ads stopped showing on my site (it wasn’t a ban or suspension). it just leaves blank ads spaces. The thing now is that the ads show sometimes, and most times it doesn’t which has made my earnings very poor.

    • WPBeginner Support says

      For what it sounds like, you would want to use Google’s ads not displaying troubleshooter to see if there are any issues, otherwise, it could be there are no recommended ads to match the content on your site.

      Admin

    • WPBeginner Support says

      Yes, you would manually upload the ads.txt file to your site using either your host’s file manager or FTP and you could create the file using notepad or a similar text editor.

      Admin

  20. Pardeep says

    Hey, I have added it like it states in this article, but when I go to google ad sense it says the same earnings at risk message. How do I resolve this?

  21. Nikhil Kumar says

    Thank you so much. I had no idea why my ads had gone blank. After adding ads.txt everything is working fine.

  22. Ajibade Victor says

    Nice article, really helpful but will the Ads.txt plugin be automatically added to my site’s root domain? i mean, it seems really simple. Are you saying all i need to do i download the plugin, copy the google code, replace the pub id with mine and save changes. What about adding the txt file to the root domain? Will the plugin do that automatically?

  23. Dina says

    Hello,
    We have 2 google adsense accounts how to add both of them. I add two lines :

    google.com, pub-first-account, DIRECT, f08c47fec0942fa0

    google.com, pub-second-account, DIRECT, f08c47fec0942fa0

    or how ?

    Thank you

  24. MicroDok says

    Thanks for your article. I was able to add Ads.txt on my website using the plugin recommended. But, Google Adsense is still not showing on my website; its still blank as before. What could be the problem?

    • WPBeginner Support says

      There are a few possible reasons for ads not showing, if Google hasn’t recrawled your site that could be the simplest. Otherwise, you would want to go through their troubleshooter for the cause and fixing the issue.

      Admin

  25. Emmanuel Peter says

    Thank you for your explanations. I was able to add Ads.txt on my website using the plugin recommended. But, Google Adsense is still not showing on my website. What could be the problem?

    • WPBeginner Support says

      The most common reason is either your site’s caching or if your robots.txt may be preventing the file from being crawled. Google does take time to recrawl your site as well.

      Admin

    • WPBeginner Support says

      For the subdomains, you would need to manually create an ads.txt file and in your primary domain, note the subdomain for your site.

      Admin

      • Pawan says

        I hv 2 adsense, one for main domain and another for subdomain. Now I hv addeed txt file for main domain adsense only. Can i add both publishers id in one txt file.

        • WPBeginner Support says

          You could add both publisher ids to the ads.txt file but you would want to make sure the correct id is in the subdomain’s file.

  26. Irfan Ahmed says

    Thanks. For a novice like me, you have been a great help in setting up my website.
    The most important thing is that your information is always to the point, and trustworthy. Whenever I face any problem, I search on your website. And if I have found what I am searching for, I know that my problem will now be definitely resolved.

  27. Ajay says

    Hii, nice information. I had applied this procedure but it was still showing the same message. What was the issue.

    • WPBeginner Support says

      If you just added the ads.txt then you would need to wait for Google to recrawl your site for the error to disappear.

      Admin

  28. Philip says

    So done all of that and still showing in my adsense same warning. I am sure it will update soon and thank you for this simple to follow guide.

  29. Edem Buameh says

    Im geting errors with my site

    Im told html corrupt after visiting
    Please help
    Ads are still not showing after 48hours

    • WPBeginner Support says

      you may want to try disabling any caching plugin on your site, if that resolves the issue you would want to exclude your ads.txt from your caching plugin.

      Admin

      • EDEM BUAMEH says

        Thanks for the advice
        I’m no longer getting html corrupt after visiting the ads.txt

        I went to exclude and entered the link above
        I’m so grateful

        I only hope my ads will start showing after 24hours

        Thanks again
        Cheers!

  30. Mani says

    I recently used ads.txt plugin to install ads.txt file to my website I made all the changes as instructed but still my ads.txt page is showing blank. Can you please check and revert ASAP or can I use another plugin to make things live?

  31. Rajat Chakraborty says

    Is there a ‚No-Plugin‘ way of doing this thing.

    Everytime there is an update for something, a plug-in pops up out of nowhere as a solution.

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.