Menu icon Foundation
How to Wrap Adsense Around Text

I want to place a new responsive adsense ad in the body of the content floating left or right of the text.

How would I code into a html site where I want the ad to be and if I wanted the space for the ad to fill be a maximum of 336px wide? One suggestion was the code I've added but that hasn't worked

<div style="display:block;float:left;margin: 5px;">
                            <!-- Adsense Responsive Ad Start-->
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Responsive SAdentist -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-xxx"
         data-ad-slot="xxx"
         data-ad-format="rectangle"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
                <!-- Adsense Responsive Ad End -->
            </div>
            <p>This is the paragrah I want the ad to be inline with.</p>

         

adsenseinlinewrap text

I want to place a new responsive adsense ad in the body of the content floating left or right of the text.

How would I code into a html site where I want the ad to be and if I wanted the space for the ad to fill be a maximum of 336px wide? One suggestion was the code I've added but that hasn't worked

<div style="display:block;float:left;margin: 5px;">
                            <!-- Adsense Responsive Ad Start-->
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Responsive SAdentist -->
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="ca-pub-xxx"
         data-ad-slot="xxx"
         data-ad-format="rectangle"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
                <!-- Adsense Responsive Ad End -->
            </div>
            <p>This is the paragrah I want the ad to be inline with.</p>

         
Rafi Benkual over 4 years ago