XF 2.2 Google Adsense integration: What is data-ad-slot?

toby88

Member
To my surprise, I couldn't find any related official tutorial or guide. However I did get the following html code block and I would like to know how to use it. What should be put at the data-ad-slot=???????
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxxx"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxxxxxxxxxxx"
data-ad-slot="**********"
data-ad-format="horizontal"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
 
I don't know where you got the code above, because any HTML Javascript block supplied in your Adsense account for an ad unit you create already has that populated.

There is nothing you put there - they do, when supplying you with the Javascript.
 
Top Bottom