Clear search
Close search
Google apps
Main menu

AdSense Plugin for WordPress

Place AdSense ads with the AdSense Plugin for WordPress

Manage AdSense ads on your site with the AdSense Plugin for WordPress. You can click special markers to place ads.

This plugin is built for your WordPress application to manage sites hosted outside It is not for sites that are hosted on Currently, does not allow this plugin on its hosted sites.

Get started

  1. First, remove any AdSense ad placements that you may have set up without the AdSense Plugin for WordPress.

    Here's why: The plugin cannot manage ads on your template if it has been added with other methods. Remove it using whatever plugin or widget you used originally, or remove their tags directly from the theme code.

  2. Now you're ready to launch the plugin. Click Plugins on the site admin page of your site. Then find the AdSense Plugin for WordPress in your list of installed plugins and click Settings. (If you don't see the plugin, make sure you do not have ad blocking software enabled on your browser. This can prevent the plugin from appearing in WordPress.)

  3. Click Manage ads in your AdSense Plugin for WordPress settings.

  4. Follow the steps below to review your site and place ads.

Review your site and place ads

View your WordPress theme's templates to review your ad placements and make changes with the plugin. You can configure a different ad layout for each template. The ad layout on your template applies to all the pages that use that template. If you have questions during this process, check the FAQ below.

  1. Choose a template to review. Open the template menu on the upper left of the page and choose a template to review. You can find this menu next to the "Design" and "Preview" buttons.

  2. After you choose a template, check the ad layout shown below the template menu.

    • The green boxes show where your ads will appear on all the parts of your site that use your template. Each one represents a different ad placement: a placeholder where ads can appear on the pages that use your template. Note that the plugin shows you an example of just one part of your site that uses your chosen template. There may be many other pages that also use this template.

    • Click the Preview button at the top to view sample ads in place of the green boxes.

  3. Add or remove placements if needed: Click a marker in any place where you want to show ads, or click the x on a placement to remove it.

    • The maximum is three placements: You cannot save more than three placements per template. Three is the maximum allowed by AdSense policy. (Link units are not counted against this maximum. However, they still must adhere to AdSense policy.)

  4. Modify the type and format of your placements if needed. Click the settings icon to make changes.

    • Type: Text ads use text content determined by Google AdWords. Display ads use graphical ads with images or rich media. Choose both for a mix of text and graphical ads.

    • Format: Automatic uses the size and shape that best fits the space. Horizontal banners are short and wide. Vertical banners are tall and narrow. Rectangle banners are similar in width and height.

  5. Once you have reviewed all your templates, click Save & activate on the upper right to start showing ads. This affects every template. Google AdSense will begin displaying ads in your new ad configuration within minutes. AdSense chooses which particular ads to display in each spot based on a number of targeting factors.

  6. Make updates as needed. At any time, you can open your plugin and change any template you like.


    The ads you place with Ad Manager can reach mobile and non-mobile visitors. However, if you enable Automated Mobile Ads along with Ad Manager, then the mobile visitors will receive a custom ad layout with mobile-friendly ads. This layout is determined by the AdSense Plugin for WordPress, not your Ad Manager settings. The plugin uses Google data to place ads these ads. It chooses a number and position of ads that fits well on mobile screens. And it continually tries to improve the data it uses to choose ad layouts (by running experiments on a very small fraction of your traffic).

Frequently asked questions

Expand all   Collapse all


What are templates?

WordPress themes include sets of templates for posts and pages on your site.

Your template options may include "Front Page," "Category," and "Archive," depending on how the theme creator named them. You will also see any custom page templates you have created, provided they are applied to at least one page.

  • Some templates may only affect one part of your site. For example, there may be only one page that uses the "Archive" template. Or you might create a custom template that is not part of your theme and apply it to only one page.

  • Other templates may affect many pages. For example, your WordPress theme should include a default template that applies to each new page you add. (We call the default template a "Single Page" template in the plugin.) You might have many pages that use this template, since it's the default.

The ad layout you choose for a template affects every page that uses the template. For example, if your site has ten pages that use the default template, then the ad layout you choose for your default template will affect all ten pages.

It's a good idea to check how templates relate to your site content, because not every WordPress theme organizes your posts and pages the same way.

Does this plugin work for custom templates?

Yes. Nearly all templates are supported for use with the plugin, including custom templates. You can find your custom templates in the "Templates" menu on the upper left, along with all your other templates.

Note that the plugin will only show custom templates that are applied to at least one page. If your custom template is not applied to any pages, the plugin will not show it in your template menu.

Placements and placement markers

What are placements?

A placement is a part of your page where ads can appear.

Each time you add a placement to a WordPress template, our plugin notes the location and typically shows an ad in that spot for each visitor. When someone views the page, the plugin instructs WordPress to insert JavaScript code that will request an ad from AdSense.

How does the plugin find space for my placements?

When you first run the plugin on your site, it looks for all the places on your site where it's possible to show ads. That means the ads will be fully visible and clickable, and will not overlap with your content.

I don't see a placement marker in the exact spot I need.

You can manually add a placement with HTML code. Click here for steps.

Typically, the reason you don't see a placement is simply that our plugin missed a spot. However, in some cases the reason may be that AdSense ads will not work properly in that location. The plugin only shows icons in places where it detects that you can display fully visible and clickable ads that won't overlap with your other content.

Will my ads appear exactly where I click the placement marker?

Typically, yes.

However, there are some cases where your ad may not appear in that exact spot, including: if the visitor is on a mobile device and you have enabled Automated Mobile Ads to adjust your layout for mobile; if you disable Automated Mobile Ads and the visitor's screen size does not have room for your regular ad layout; and if you add a placement above your third paragraph in a particular template but the post that uses this template does not actually have a third paragraph; or if Google runs layout experiments on a small fraction of your traffic.

What happens when I place ads above paragraphs or at the end of posts?

You can place ads above each of the first three paragraphs of your posts. If you place ads above paragraphs, they will only appear when your post actually includes those paragraphs.

For example, if you place ads above your second paragraph—or the placeholder for your second paragraph—they will only appear in posts that actually have a second paragraph.

You can also place ads at the end of your posts. The position of these ads on each page depends on the length of your post.

I see a gray placement marker instead of a red marker. Why?

A gray marker indicates that our plugin found HTML code for an AdSense placement but it is not possible to show ads properly in this location.

WordPress developers can manually add our plugin's AdSense placement code to the HTML used for your site, such as in a theme's PHP files. But sometimes this code is not inserted in a place where ads can appear. The issue may be that there is no space for your ads in that location, or that your ads may not be clickable.

Try adding the code in another location. Or use the red markers instead. Click here to learn more about manually adding placements with HTML code.

I don't want to show ads on one of my template's pages. Can I make an exception?

Yes. If you do not want a particular page on your template to show ads, just disable ads on that page.


  1. Select your page from the "Pages" sidebar. This should be a page where you do not want the AdSense Plugin for WordPress to show any ads.

  2. Find the "AdSense Plugin for WordPress" section on the right.

  3. Check the checkbox to Disable ads on this page.

  4. Save your changes.

  5. Now you can be sure that none of the ads managed by our plugin will appear on that page, no matter what changes you make to your template's ad layout.

Ad appearance

Which ad units will be used when I place an ad on my site?

The plugin will create AdSense ad units for each ad that you place on your site. You can see these ad units on the My ads tab in AdSense, and any changes that you make to their settings in AdSense (such as changing colors) will be reflected in the plugin.

Why is the ad format called a "format" rather than a "size"?

The ad format determines the proportions of the ad, but not necessarily the exact size. The AdSense Plugin for WordPress will automatically change the size of the ad for smaller screens. For example, if you choose to have a horizontal banner at the top of your home page, this banner can be shown as a 728x90 banner on a regular desktop screen and a 320x50 banner on a mobile.

Why are my ads at the bottom of the page?

The ads you see at the bottom of the page may be in your sidebar. If your browser window is too narrow, WordPress will move your sidebar to the bottom of the page. Try expanding your browser window to see if your ads move up to the top (along with the sidebar).


I see this warning: “Admin on HTTPS, site on HTTP.” What should I do?

The issue is that some of your content uses non-secure protocol (URL starts with http://). Try one of the following:

  • Configure your entire site to be delivered over HTTPS (we recommend this solution).

  • Use the browser prompts or the shield icon in the address bar to enable non-secure content on this page. For example, in Chrome you can click Load anyway to load insecure content.

I see a warning that ads are not showing on my site. What should I do?

You need to review and save your templates again.

The warning you see means that a recent change caused problems for one or more placements on your templates. You can no longer show ads in the part of your site where you added these placements. Review and save your templates to confirm your new ad layout.

  • Steps to resolve: The warning message will let you know which templates need work. Just pick each relevant template from the menu and review the template's ad layout with the AdSense Plugin for WordPress. If you want to add placements, click any available placement markers. Then click Save & activate.

  • Example: Say you see a warning that ads are not showing on your "front page" template. Our plugin will let you know that there is a problem on the "front page" template: one ad is not showing on the template anymore. Choose the "front page" template from the template menu and review your options. If needed, choose a new placement. We will show all the available options given your new site theme. Then click Save & Activate.

I see a warning that I can't save my configuration because I have too many ads. What should I do?

You cannot add more than three ad placements per site template. Three is the maximum allowed by AdSense policy. If you exceed the maximum, you will not be able to save your configuration until you remove some placements.

Click the Templates dropdown in the upper left corner. The menu will indicate which templates have too many ad placements. Make sure these templates have three or fewer and then try saving again.

(Link units are not counted against this maximum. However, they still must adhere to AdSense policy.)

Was this article helpful?
How can we improve it?
Sign in to AdSense

Sign in to AdSense to see help for your account

Don't have an AdSense account? Sign Up for AdSense!