• Resolved bnaufel

    (@bnaufel)


    Hello, I finally got approved for Google Adsense and had manually set some ads options and placements for my website. At the same time, because I didn’t know if I needed the code in Advanced Ads, I had the auto ads and “insert code into header” option checked prior to my approval. After getting approval, I went in to uncheck this box hoping the ads would then be set the manual ones I had set and their placement. HOWEVER, when I uncheck this box, ALL of my site content disappears and only shows two google ads. . There is nothing else – no navigation, blog posts, pages, nothing. This seems super crazy and is very concerning. How do I switch over to manual ads without it hiding all of my site content? Because my site content disappears I have the box checked for now so people aren’t arriving to an empty site. I can take a screen shot quickly but didn’t know how to share. Please help!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi there,

    thanks for reaching out.

    I had a look into your site’s code and think I might have spotted the problem.

    There is an additional opening <script> tag in your header, right before the Auto ads code added by Advanced Ads. That script tag is not closing, which would explain why elements following it would disappear.

    The Auto ads code is preventing that from happening. If you want, you can say that the Auto ads code accidentally fixes your site ??

    This is the broken code with the Auto ads code. I replaced your IDs.

    `
    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-123-1″></script&gt;
    <script><script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <script>(adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: “ca-pub-321”,
    enable_page_level_ads: true,
    overlays: {bottom: true},
    });
    </script>
    `

    This part needs to be removed:


    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-123-1″></script&gt;
    <script>

    The full analytics code is already added to your site above that position, please don‘t remove that.

    I think you might find that code either in the theme options or in the header.php of your theme files. Hopefully, you can still remember where you added it.

    Good luck!
    Thomas

    Plugin Author Thomas Maier

    (@webzunft)

    Hi bnaufel,

    did you see my reply here? I see that you still have the same code on your site. Is there anything I could assist you with?

    Best regards,
    Thomas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My site content disappears when I disable auto ads’ is closed to new replies.