Google and SEO


Google-Ads

Adding ads from Google aligned centered. Using only the responsive ad-design. Remember to change the <CLIENT> and <AD_SLOT> to your values.

<div class="row centered text-center adds">
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-client="<CLIENT>"
         data-ad-slot="<AD_SLOT>"
         data-ad-format="auto"></ins>
    <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
</div>

I use the following CSS (beside Bootstrap for the row, centered, text-center):

.adds {
    padding-top: 20px;
    max-width: 85%;
    clear: both;
    margin-left: auto;
    margin-right: auto;
    margin-top: 7px;
    margin-bottom: 7px;
}

 

 


Published: 2016-08-24