How To Ad Google Adsense To WordPress

How To Articles

One effective method to monetize your WordPress website and generate passive income is by incorporating Google AdSense. Being someone who has personally gone through this procedure, I am able to provide you with a detailed, step-by-step guide on how to do so.

Step 1: Sign up for Google AdSense

The first thing you need to do is sign up for a Google AdSense account. Visit the Google AdSense website and click on the “Sign Up Now” button.

During the sign-up process, Google will ask for information about your website, your contact details, and your preferred payment method. Make sure to provide accurate information to avoid any issues in the future.

Step 2: Verify your Website

Once you have signed up for Google AdSense, you need to verify your website. This is done by adding a small piece of code provided by Google to your WordPress website.

To do this, log in to your WordPress dashboard and navigate to the Appearance section. Look for the “Editor” option and click on it. In the list of files on the right side, find the “header.php” file and click on it to open it.

Scroll down to the section of the code and paste the Google AdSense verification code just before it. Save the changes.

Step 3: Create Ad Units

Once your website is verified, it’s time to create ad units. Ad units are specific sections of your website where the ads will be displayed. They can be placed in the header, sidebar, or within the content of your posts.

To create an ad unit, go back to your Google AdSense account and click on “Ads” in the left sidebar. Then, click on “Ad Units” and “New Ad Unit”. Choose the type of ad you want to display and customize it according to your preferences.

After customization, click on “Save and Get Code”. Google will provide you with a code snippet that you need to add to your WordPress website, similar to the verification code.

Step 4: Add Ad Units to your WordPress Website

Now that you have the ad unit code, it’s time to add it to your WordPress website. Go back to your WordPress dashboard and navigate to the section where you want to display the ad unit.

If you want to add it to the sidebar, go to “Appearance” and click on “Widgets”. Look for the “Text” widget and drag it to the desired sidebar location. Paste the ad unit code into the widget and save the changes.

If you want to add the ad unit within your posts or pages, you can use a plugin like “Ad Inserter” or “Advanced Ads”. These plugins allow you to easily insert the ad code in specific locations.


Adding Google AdSense to a WordPress website can be a profitable venture for content creators. By following the steps outlined in this guide, you can start monetizing your website and generate passive income through ad placements. Remember to always comply with Google AdSense policies and guidelines to ensure a smooth experience. Best of luck with your monetization journey!