• Resolved sadocs

    (@sadocs)


    Hi

    I keep getting the warning “One of your sites is missing the AdSense publisher ID in the ads.txt file”. I have been struggling to create an ads.txt file as directed by the warning given on Advanced Ads, but it keeps showing me the error. I feel like I’ve tried everything according to the manual, but it still doesn’t work. Any help would really be appreciated.

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Henning

    (@henningaa)

    Hi sadocs,

    thanks for reaching out.

    Are you referring to this manual on how to create an ads.txt file?

    What exactly did not work as expected and do you see an error message?

    If your server settings are restricting the ads.txt file creation by the plugin, you can create the file also manually and upload it via FTP to your web server as a workaround.

    Best regards,
    Henning

    Thread Starter sadocs

    (@sadocs)

    Hi henningaa

    Thank you so much for your reply!
    Yes that’s the manual I’m referring to.
    I have also tried following some youtube advice, but nothing has worked.
    So far I have tried to copy and paste the generated information into the ads.txt box in Advanced Ads > Settings. It is enabled.
    I have also upgraded every plugin and theme as suggested.
    I then tried manually adding the file via WP File Manager, as advised on a youtube video. It then said that there is an external file, and gave the option to import and replace, which I did. However, it then disappeared and the same warning has stayed.
    I then tried not to import and replace the external file (meaning that it would then not be controlled by Advanced Ads, is how I understand it), and that was the only time the URL ads.txt showed the accurate page, but the warning on Adsense and Advanced Ads never left, even after a few days.

    Any suggestions would really be appreciated!

    Plugin Support Henning

    (@henningaa)

    Hi sadocs,

    The ads.txt is usually a .txt file in the root directory of your site, e.g., example.com/ads.txt.

    Since https://www.sadocs.co.za/ads.txt is not reachable, I assume the file is not present or a server setting somehow prevents the access to .txt files.

    The Advanced Ads ads.txt option does not create a persistent file but adds your AdSense publisher ID automatically after connecting AdSense and Advanced Ads and shows a ads.txt starting with # Advanced Ads ads.txt, making it simple to check if it is really generated by our plugin.

    I then tried not to import and replace the external file (meaning that it would then not be controlled by Advanced Ads, is how I understand it), and that was the only time the URL ads.txt showed the accurate page, but the warning on AdSense and Advanced Ads never left, even after a few days.

    Correct, I then suggest creating a persistent file again inheriting your AdSense publisher ID as required and don’t use the Advanced Ads implementation or reaching out to your hosting provider trying to figure out what is blocking the implementation in the first place.

    If there is a reachable ads.txt file on your page, the message will go away, but it also might take a few more days. Please note that if you have more than one page connected to your AdSense account, this message can also be triggered by another site not having a ads.txt file already.

    Best regards,
    Henning

    Plugin Support Henning

    (@henningaa)

    Hi @sadocs

    Looks like there is a static ads.txt file now reachable on the website.

    Can you please let me know if there are questions about this topic left or close this thread if it’s solved?

    You are always welcome to open up a new thread if you want to know more about Advanced Ads.

    Best regards,
    Henning

    Thread Starter sadocs

    (@sadocs)

    Hi Henning

    I followed your advice and managed to sort it out, thank you very much for the assistance! I will close this thread.

    Warm regards
    Sadocs

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adsense error: ads.txt file not created’ is closed to new replies.