• Resolved ineedhelp007

    (@ineedhelp007)


    Sorry to have got stuck. I have enabled debugging remotely. I have set up a manual adsense ad (responsive) to appear after paragraph 3 of every page, post and homepage. Desktop and tablet work perfect (love the plugin) but mobile displays this each time:

    (adsbygoogle = window.adsbygoogle || []).push({});

    This is my code copied from adsense into adserter.

    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8253654846429663"
         crossorigin="anonymous"></script>
    <!-- top-left-responsive -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-8253654846429663"
         data-ad-slot="8323699926"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

    I am stuck, any help gratefully receive thanks Mark.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    the plugin inserts the code as configured – regardless of the device type. It seems a different theme is used for phone display. It seems it removes Javascript code from the ad code.

    Thread Starter ineedhelp007

    (@ineedhelp007)

    Thanks for responding, much appreciated. I am using the WP Touch mobile plugin which is very popular so I’m surprised this hasn’t come up lots of times. I guess I need to try use a different mobile plugin instead and see if that works, thanks Mark.

    Thread Starter ineedhelp007

    (@ineedhelp007)

    Another thought, I am using WP Rocket to speed up my site so perhaps that is stripping out the javascript, anyway I will do some testing.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘No Mobile Ads’ is closed to new replies.