Google has recently launched a Google Publisher Plugin (beta) for WordPress Self-Hosted blogs. Yes, this plugin currently is only available to self-hosted blogs and not for blogs on wordpress.com which are with wordpress.com sub-domain or with limited plugin features.
The best reason because of which I am posting this information on my website is, that you don’t have to be a wordpress guru or wordpress geek to Add Google Adsense code in special spots that are suggested by Google. Yes, this plugin helps you to install your Google Adsense code in the recommended spots by Google.
Furthermore another thing which I personally liked the most is that it shows responsive ads according to loaded screen width. This means that a user visiting your website from a PC or laptop will see respective ad and if same user view your website from a tablet, smartphone or mobile, the same ad will analyze its resolution and display the respective screen ad without changing the Adsense code.
Here is a single page guideline of how to install the Google Publisher Plugin for WordPress CMS websites that I copied from Google just for your information at a glance. The copyrights of the below mentioned content remains with Google and WordPress.
Google Publisher Plugin for WordPress Guidelines
Supported products are:
- Google AdSense: Earn money by placing ads on your WordPress website. The plugin links your WordPress site to your AdSense account and makes it very easy to place ads on your site. Use AdSense with the Google Publisher Plugin.
- Google Webmaster Tools: Webmaster Tools provides you with detailed reports about your pages’ visibility on Google. The plugin allows you to verify your site with Webmaster Tools with only one click. Use Webmaster Tools with the Google Publisher Plugin.
Install the Google Publisher Plugin
You can install the Google Publisher Plugin in one of two ways: automatic or manual. Depending on your WordPress configuration, automatic installation might not work for you. In this case, please use the manual installation process.
Before you start using the Google Publisher Plugin, make sure you meet the following minimum requirements:
- PHP version: minimum 5.2.0
- WordPress: minimum 3.0
- Ensure that you can install third-party WordPress plugins.
- In the WordPress administration screen, select Plugins in the sidebar, then click Add New.
- Search for “Google Publisher Plugin” and locate the Google Publisher Plugin in the list of results.
- Click the Install Now link.
- Download the Google Publisher Plugin from the plugin page.
- Unzip the plugin to a folder.
- Upload the contents of the folder to the plugin directory of your WordPress site (wp-content/plugins).
For more information on installing WordPress plugins, please see Managing Plugins on WordPress.org.
Set up the Google Publisher Plugin
Once you’ve installed the plugin, you need to set it up to work with your site and your Google Account. To set up the plugin, follow these steps:
1. Activate the plugin
In the WordPress administration screen, select Plugins in the sidebar. Locate the Google Publisher Plugin and click theActivate link to activate the plugin.
2. Open the plugin
Click Settings to open the plugin. You’ll find this link below the title of the plugin on the Plugins page of the WordPress administration screen.
3. Get started
You must have a Google Account to use the plugin. If you do have a Google Account, click Get started to proceed. If you don’t have a Google Account, click the create one now link to create one.
4. Sign in to your Google Account
Sign in to the Google Account that you use for any Google products that are associated with your site. For example, if you have an AdSense account or an Analytics account that you use with this site, you should use the associated Google Account. If you’ve already verified your site using Webmaster Tools, use the Google Account that you used to verify the site.
5. Verify your site
Once you’ve signed in, you’ll need to verify your site. This helps to maintain the security of the plugin and your site.
Verification includes verifying your site with Webmaster Tools. If you’ve already verified your site with Webmaster Tools, this verification will simply confirm that you’re setting up the plugin with the correct domain.
If the domain is correct, verify your site by clicking the Verify button. Verification may take several seconds to complete. If the verification succeeds, you’ll be taken back to WordPress.
Setup is now complete.
Troubleshooting site verification
Site verification may fail. The most common causes for this are:
- A WordPress cache plugin or other caching system interferes with the site verification process.
- The WordPress configuration does not permit the operations necessary to verify your site.
- A temporary error with one of the systems involved in verifying your site.
If verification fails, you can retry it. If you’re using a cache plugin or caching service, you might want to clear your cache before retrying. Alternatively, you can visit Webmaster Tools and verify your site manually, and then open the plugin again.
Check your AdSense account information
Google AdSense provides a free, flexible way to earn money from your websites with relevant and engaging ads. To use AdSense with the Google Publisher Plugin, you must have an AdSense account.
If you don’t have an AdSense account: Sign up for AdSense
If you don’t have an AdSense account, you can sign up for one:
- Click the Sign up for AdSense button on the settings page of the plugin. You’ll be taken to the AdSense sign-up form. Complete the form to apply for an account.
- Before applying for AdSense, please read the AdSense program policies and ensure that you comply with them. In particular, your site must have content before you apply for AdSense.
- It typically takes a few hours to process your application. You’ll receive an email when your account has been created.
To complete your AdSense application, you need to show ads on your site. Initially, the ads will be test ads, and these are used to help AdSense make certain that you control the site. Learn how to place ads on your site.
If you already have an AdSense account: Check your publisher information
If you already have an AdSense account, the plugin will detect this and show your AdSense publisher information. Please check that the publisher information shown matches what you expect.
If your AdSense publisher information is not shown, or is not what you expected, check that you’re using the same Google Account with the plugin that you use with AdSense. If you’re not, click the Sign out link to sign out of this account and then sign in to the plugin again using a different account.
If you already have AdSense ads on your site and you want to manage those ads through the plugin instead, you’ll need to remove the existing AdSense ads before you place ads on your site using the plugin.
Place AdSense ads on your site
To configure where ads are shown on your site:
- Open the Google Publisher Plugin.
- Click the Manage ads button under your AdSense publisher information. This will open a preview of your site, showing your home page.
- Select the part of your site you wish to place ads on (home page, single page, or single post).
- Click on a marker in the preview to place an ad in that location.
You can place up to three ads on each page.
- Once you’ve placed an ad, you can change its settings. Click the gear icon in the bottom left corner of the ad to open the settings panel.There are four different ad formats available:
- Automatic (use whichever size and shape is most appropriate)
- Horizontal banner (a wide, thin ad such as 728×90)
- Vertical banner (a narrow, tall ad such as 160×600)
- Rectangle (an ad with similar width and height, such as 300×250).
- When you’ve finished placing ads on your site, click Save and activate to start showing ads on your site.
If you don’t click Save and activate, any changes that you’ve made will be lost when you close this screen.
Frequently asked questions
I get a warning for “Admin on HTTPS, site on HTTP”. What does it mean?
Browsers generally prevent HTTPS pages, which are delivered using a secure connection, from loading HTTP content, which does not use a secure connection. This is often described as “mixed content” – a mix of secure and insecure content – and can constitute a security risk, especially when the insecure content comes from an untrusted source.
To allow you to place ads on your site, the Google Publisher Plugin loads a preview of your site inside the WordPress admin panel. However, if your WordPress admin panel is delivered over HTTPS and your site is delivered over HTTP, then the browser will treat this as mixed content. This will cause your browser to give a warning about mixed or insecure content, and the preview might not be displayed.
To enable the Google Publisher Plugin to work correctly with your site, either:
- Configure your entire site to be delivered over HTTPS (recommended)
- Use the browser prompts or the shield icon in the address bar to enable insecure content on this page (for example, in Chrome you can click Load anyway).
Which ad units are being used when I place an ad on my site?
Why do I choose the ad format rather than the ad size?