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 use the ad layout chosen by our plugin or click special markers to place ads manually.
This plugin is built for your WordPress application to manage sites hosted outside WordPress.com. It is not for sites that are hosted on WordPress.com. Currently, WordPress.com does not allow this plugin on its hosted sites.
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.
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.)
Click Manage ads in your AdSense Plugin for WordPress settings.
To get you started, the plugin will analyze your site and pick normal places to show ads.
To start showing ads immediately, just close the introduction message and click Save & activate on the upper right.
To check ad placements on your site and make manual changes, follow the steps below to review your site and place ads. It's a good idea to review your ad configuration even if you do not want to make manual edits.
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.
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.
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.
Add or remove placements if needed: Click a marker in any place where you want to show ads, or click the
xon 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.)
Modify the type and format of your placements if needed. Click the settings icon to make changes.
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.
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.
Make updates as needed. At any time, you can open your plugin and change any template you like.
In some cases, updates to your site may require you to choose different ad placements for some of your templates. If this ever happens, you will see a warning that some ads are not showing on your site. When you click Manage ads in your plugin, we will tell you which templates are affected. Just check these templates and add new placements if needed.
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
TemplatesWhat 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.
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 markersWhat are placements?
A placement is a part of your page where ads can appear.
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.
The plugin also uses site analysis and AdSense data to choose exactly where to show these ads and what format to use. This ensures that your ads show in typical places that work with your site layout. We try to find places where ads have statistically have performed well given your particular layout and site content.
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.
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.
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.
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.
Yes. If you do not want a particular page on your template to show ads, just disable ads on that page.
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.
Find the "AdSense Plugin for WordPress" section on the right.
Check the checkbox to Disable ads on this page.
Save your changes.
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 appearanceWhich 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.
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.
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).
WarningsI 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.
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.
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.)