• Resolved seotaro

    (@seotaro)


    Hi

    Thanks for developing great plugin. Plugin is working well and i have a question about placing to Ads.

    I want to display AdSense ads only on mobile devices.

    In the documentation, I saw that AdSense uses Insert, not Hide.

    Does this mean to use the “Use client-side detection to “Insert” only on” feature?

    Since I use Wp-rocket cache, is it correct to do Client-side rather than “Server-side”?

    Thank you.

    • This topic was modified 1 year, 10 months ago by seotaro.
    • This topic was modified 1 year, 10 months ago by seotaro.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Spacetime

    (@spacetime)

    Yes, you should use the Insert method.

    You should also set Dynamic blocks to Client-side insert.
    https://adinserter.pro/documentation/plugin-settings#dynamic-blocks

    These settings should work fine with caching.

    Thread Starter seotaro

    (@seotaro)

    Hi, @spacetime

    Thank you very much for the quick reply and i have one more question.

    If i used “client-side detection to Insert only to mobile” function, is it not necessary to add a specific class to the existing Adsense Ads to hide it like below?

    <ins class="adsbygoogle mobile"
         style="display:block;"
         data-ad-client="ca-pub-XX"
         data-ad-slot="XXXX"
         data-ad-format="auto"
         data-full-width-responsive="true"></ins>
    <script>
         (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    
    @media (min-width: 1024px){
    .mobile{
    display:none;
    }
    }
    Plugin Author Spacetime

    (@spacetime)

    Correct.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What is right way to put Adsense in Mobile only?’ is closed to new replies.