• Resolved dreddie27

    (@dreddie27)


    I have several websites with adsense on the pages. I just implement de code of the specific ads i want at the specific place i want.

    But if i try this with the asynchronous code of adsense it doesn’t show any ads.

    I looked into the adsense-plugins, but they dont offer a good solution. Or it doens’t fix the problem.

    I use the official google adsense plugin on one website and then the responsive asynchronous ads works just fine. But i can only show ads on the places they choose. (top and bottom) This reduces my income.

    I would like to just copy/paste the codes of the responsive asynchronous ads in to the pages, but then it shows no ads.

    They only solutions i found include html-coding, and i’m a noob.
    But i assume this is a common problem, so maybey i oversee a common solution ?

    thanks in advance.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Maybe you have a JavaScript error on the page that would stop Google from working properly. Can you link to a page with the problem?

    Thread Starter dreddie27

    (@dreddie27)

    I have the problem on all 4 websites.

    I have setup this page with the problem:
    https://www.kattenpensions.org/drenthe/assen/

    (other pages have synchroon and no problem)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So are you using a plugin for this async advert?

    Thread Starter dreddie27

    (@dreddie27)

    no, i copy the code directly on the page. Plugins (i tryed 3) didn’t offer a solution to the problem.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which code was it? So that it’s easier to find and debug

    Thread Starter dreddie27

    (@dreddie27)

    standard adsense code:

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– KP R B –>
    <ins class=”adsbygoogle”
    style=”display:block”
    data-ad-client=”ca-pub-6331269096166889″
    data-ad-slot=”6520474656″
    data-ad-format=”auto”></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’ve not seen this code before, but it’s coming up as having <br /> tags inside the <ins> tag. Is that meant to be there?
    It’s showing this:

    <ins class="adsbygoogle"<br />
         style="display:block"<br />
         data-ad-client="ca-pub-6331269096166889"<br />
         data-ad-slot="6520474656"<br />
         data-ad-format="auto"></ins><br />
    <script>

    Thread Starter dreddie27

    (@dreddie27)

    no it’s not. I googled this. This is what i found:

    https://productforums.google.com/forum/#!topic/adsense/zzQXsG3jT6E

    But i dont really understand the solution.

    Thread Starter dreddie27

    (@dreddie27)

    I get it now, i just replace style= client= and slot= from my given code into this code:

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script><ins class=”adsbygoogle” style=”display:inline-block;width:300px;height:250px” data-ad-client=”ca-pub-7724353502851639″ data-ad-slot=”3161327130″></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

    Thanks Andrew ! you’re the best !

    Dividend Magic

    (@dividend-magic)

    still doesn’t show for me after following your instructions dreddie27..

    Dividend Magic

    (@dividend-magic)

    It is only showing : (adsbygoogle = window.adsbygoogle || []).push({});

    My website: https://dividendmagic.wordpress.com/

    Also, my code in the text widget is as follows:
    <ins class=”adsbygoogle” style=”display:inline-block;width:320px;height:100px;”></ins>
    (adsbygoogle = window.adsbygoogle || []).push({});

    Thread Starter dreddie27

    (@dreddie27)

    I’m a noob so i cant really help. I can only tell you what i did.

    Original:

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– KP R B –>
    <ins class=”adsbygoogle”
    style=”display:block”
    data-ad-client=”ca-pub-6331269096166889″
    data-ad-slot=”6520474656″
    data-ad-format=”auto”></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    In textwidget:

    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script><ins class=”adsbygoogle” style=”display:block” data-ad-client=”ca-pub-6331269096166889″ data-ad-slot=”6520474656″ data-ad-format=”auto”></ins><script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

    If i remember correctly. You need to put the information in one sentense without any “enter”. WP puts the “br/” behind the code in the textwidget if you use “enter” in de the code.

    Dividend Magic

    (@dividend-magic)

    still doesn’t work =(

    it would work if it is a wordpress.com right?

    Thread Starter dreddie27

    (@dreddie27)

    WPyogi

    (@wpyogi)

    @dividend Magic – you are on the wrong forums – these forums are for self-hosted sites – NOT wordpress.com sites.

    See also:

    https://en.support.wordpress.com/com-vs-org/

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘adsense asynchronous not showing on page’ is closed to new replies.