S
S
Senseich2017-09-23 22:08:34
contextual advertising
Senseich, 2017-09-23 22:08:34

Do I need to prescribe the first line for each Google Adsense block?

Hello! Tell me please. For example, I have 4 blocks of Google Adsense ads on my site, and I noticed that all blocks start with this line:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

Do I need to leave it for each block, or can I just write it once, for example, in a header or footer?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanostee, 2017-09-23
@Senseich

If you are talking about this line:
then it suffices to indicate once, however,

<script>
    (adsbygoogle = window.adsbygoogle || []).push({});
</script>

must be called for each block

A
Andrey Abramov, 2017-11-21
@zmoe

I put this script in the footer of the site and cut it out in the rest of the blocks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question