How to add AdSense Page-level ads to WordPress site using Ad Inserter


There are several ways to add the code for AdSense Page-level ads to WordPress site. In this article, we will show you how to insert AdSense Page-level ads in the <head> tag of your site using WordPress Ad Inserter Plugin.

Install Ad Inserter to your WordPress site

  1. From WordPress Dashboard, click [Plugins] and then click [Add New]
  2. Enter “Ad Inserter” in plugin search box
  3. Click [Install Now] on Ad Inserter, and activate.

Install Ad Inserter plugin

Get and copy Page-level ad code

1. Log in your AdSense account

2. Click [My ads], and then click [Page-level ads]

3. Click [< > Get code] button

Get and copy AdSense Page-level adsSmall window will be displayed. Select and copy the code.

Copy AdSense Page-level ad code

Insert AdSense Page-level ads in the <head> tag of your site

  1. From WordPress Dashboard, click [Settings] and then click [Ad Inserter].
  2. Click gear icon on the right top (① on the image)
  3. Click [Header] tab (②)
  4. Paste AdSense Page-level ad code in the ad code block box (③)
  5. Press the gray small circle button on the right above the ad code box to enable insertion of the code into HTML page header (④)
  6. Push [Save Settings] button

Set up Page-level ads on Ad Inserter

Check ad code is placed correctly

Test Page-level ads on your site

On a mobile device, visit your page and add #googleads to the end o the URL, and then reload the page. (example: )

If the test is working, you are done.


For more information, please visit “Guide to testing Page-level ads” on AdSense Help.

View the page source of site on browser

Visit your page on PC, and view the HTML source code. Right click and select “View Page Source”.

View page source on browser

Search “</head>”. The Page-level ad code is located near above the closing head tag (</head>: ). If the ad code is located in the <head> tag, it means the code is placed correctly.

Please see the following image as an example. The </head> is underlined and pointed by arrow. The Page-level ad is highlighted as in the red rectangle.

Page-level ads code is located in the <head> tag.

If you see the AdSense Page-level ads code in the <head> tag like image, you are done.


How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

Sponsored Links


  • Add this entry to Hatena Bookmark

Follow Me