Google adsense Help for Page-level ads

Google adsense: Page-level ads Code implementation guide
Add the code for Page-level ads to your page

After you  have  generated the ad code for your Page-level ads, you will need to place the code once on the each page that you want to show the google ads. You have to place your ad code in the <head> tag (or at the top of the body) of your page.

The below example will show you where to place the ad code:

Example HTML page before the Page-level ad code has been added

<html>
<head>
This is the head of your page.
<title>Example HTML page</title>
</head>
<body>
This is the body of your page.
</body>
</html>

 

Example HTML page with the Page-level ad code added in the <head> tag

Now place the below ad code under the head tag. <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– LeaderBoard_728_90 –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:728px;height:90px”
data-ad-client=”ca-pub-4664391686617694″
data-ad-slot=”6373534951″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

 



 

 

<html>
<head>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– LeaderBoard_728_90 –>
<ins class=”adsbygoogle”
style=”display:inline-block;width:728px;height:90px”
data-ad-client=”ca-pub-4664391686617694″
data-ad-slot=”6373534951″></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
This is the head of your page.
<title>Example HTML page</title>
</head>
<body>
This is the body of your page.
</body>
</html>

 

 

Leave a Reply

Translate »