Wie verwenden Sie mehrere AdSense-Einheiten auf einer Seite?

Wie Sie über mehrere adsense-Einheiten auf einer website? Der einzige code von Google gibt, sind pro Einheit.

<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-123456"
     data-ad-slot="123456"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Was wenn ich mehrere adsense-Einheiten auf einer website? Ich benutze nur <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> und (adsbygoogle = window.adsbygoogle || []).push({}); einmal, und legen Sie dann die <ins ...></ins> code, wo ich es haben möchte.

Das problem ist, dass nur die ersten adsense-Einheit analysiert und dargestellt. Was müssen Sie tun, um in der Lage sein zu zeigen Sie mehr als einen adsense-Anzeigenblock?

Dies ist, wie ich es verwenden (nur erste ins angezeigt wird):

<!doctype html>
<html>
    <body>
        <ins class="adsbygoogle"
         style="display:inline-block;width:300px;height:250px"
         data-ad-client="ca-pub-123456"
         data-ad-slot="first"></ins>

         <ins class="adsbygoogle"
         style="display:inline-block;width:300px;height:250px"
         data-ad-client="ca-pub-123456"
         data-ad-slot="second"></ins>

         <ins class="adsbygoogle"
         style="display:inline-block;width:300px;height:250px"
         data-ad-client="ca-pub-123456"
         data-ad-slot="third"></ins>

        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
    </body>
</html>

InformationsquelleAutor der Frage Marwelln | 2014-08-02

Schreibe einen Kommentar