How to Add AdSense to WordPress

Categories Online Marketing, WordPress
AdSense in WordPress Posts

How to Add AdSense to WordPress

You will learn here how you may add AdSense to WordPress. Google AdSense is the easiest way to start monetizing your website. Whether you run a blog, niche website, magazine, news website, or forum, start monetizing your website with AdSense.

Google AdSense does not require technical knowledge. If you do not have experience in monetizing your website, then Google AdSense is the best option for you. Furthermore, AdSense is the best paying CPC/PPC network due to its high popularity.

You learn this in the article:

How Do I Create an AdSense Account?

Create your Google AdSense account this way:

  1. Open your web browser.
  2. Go to the Google AdSense website.
  3. Click SIGN UP NOW.

The Google sign up page is opened.

  1. Enter your Email address in the field Email of phone.
  2. Click NEXT.
  3. Enter your password in the field Enter your password.
  4. Click NEXT.

The Google AdSense registration page is opened.

  1. Enter the URL of your website in the field Your website.
  2. Select one of the two options in the section Get more out of AdSense.
  3. Select your country in the section Select your country or territory.
  4. Note:

    Read the terms and conditions carefully. When you check the checkbox, then you accept the terms and conditions of Google AdSense.

    Check the checkbox in the section Please review and accept our Terms and Conditions.

  1. Click CREATE ACCOUNT.

Your Google AdSense account is created.

Once you have created your Google AdSense account, verify your account.

How Do I Verify My Account in AdSense?

Verify your Google AdSense account this way:

Note:

You need this step only the first time that you access your Google AdSense account. When you have verified already your account, then skip this step. Continue at How do I create ads in AdSense?

 

Prerequisites:

Create an account in Google AdSense.

  1. Open your web browser.
  2. Go to the Google AdSense website.

The payment address details form is opened.

  1. Fill out the payment address details form.
  2. Click SUBMIT.

The Google AdSense Verification page is opened.

  1. Chose how to verify your phone number.
    • Text message
    • Phone call
  2. Click GET VERIFICATION CODE.

Note:

When you have chosen Text message before, then the verification code gets send to your phone. When you have chosen Phone call before, then you get a phone call with your verification code.

  1. Enter your verification code in the field Verification Code.
  2. Click SUBMIT.

The Connect your site to AdSense page is opened. Your Google AdSense account is verified.

Note:

Do not close the Connect your site to AdSense page. You need the code that is shown on the page to connect your website to Google AdSense. Furthermore, you need to check the check box that is on the page after you have copied the code into your website.

Once you verified your account, connect your website to Google AdSense.

How Do I Connect My Website to AdSense?

Connect your website to Google AdSense this way:

Note:

You need this step only the first time you access your Google AdSense account. When you have already connected your website to Google AdSense, then skip this step. Continue at How do I create ads in AdSense?

 

Prerequisites:

  • Create an account in Google AdSense.
  • Verify your Google AdSense account.
  • Download a FTP client.
  • Get the login data for your FTP account:
    • name of the FTP server
    • user name
    • password
  1. Open your FTP client.
  2. Connect to your account.
  3. Open the root directory of your website.
  4. Open the directory wp-content.
  5. Open the directory themes.
  6. Open the directory of your actual theme.
  7. Open the file php.
  8. Paste the code from the Connect your site to AdSense page between the <head> tags of the php.
  9. Save the php.
  10. Close the FTP client.
  11. Check the check box on the Connect your site to AdSense page.
  12. Click DONE.

Your website is connected to Google AdSense.

Now you may create ads in Google AdSense.

How Do I Create Ads in AdSense?

Create ads in Google AdSense this way:

Prerequisites:

  • Create an account in Google AdSense.
  • Verify your Google AdSense account.
  • Connect your website to Google AdSense.
  1. Open your web browser.
  2. Go to the Google AdSense website.
  3. Click SIGN IN.
  4. Click My ads on the menu.

The Ad units page is opened.

  1. Click New ad unit.

The New ad unit page is opened.

  1. Choose one of the options and click SELECT.
    • Text & display ads.
    • In-feed ads.
    • In-article ads.

The creation page is opened.

  1. Enter the name for your ad in the field Name.
  2. Select one of the options in the section Ad size.
  3. Select one of the options in the section Text ad style.
  4. Click Save and get code.

The code of your ad is generated.

  1. Save the code to your PC.
  2. Click Close.

Your ad is created.

Now you may add the Google AdSense ad to your WordPress site.

How Do I Add AdSense Ads to My WordPress Site?

I show you three options where you may include AdSense ads in your WordPress site:

AdSense in WordPress Widgets

Add AdSense ads to WordPress widgets this way:

Prerequisites:

  • Create an account in Google AdSense.
  • Verify your Google AdSense account.
  • Connect your website to Google AdSense.
  • Create an ad in Google AdSense.
  1. Open your web browser.
  2. Open your WordPress admin section.
  3. Click Appearance on the menu.

A submenu with more options is opened.

  1. Click Widgets.
  2. Add a new Text Widget to your Sidebar.
  3. Enter a title for the widget in the field Title.
  4. Paste the Google AdSense code into the field Content.

Note:

The Google AdSense code is the code that you have saved in step 10 of How do I create ads in AdSense?

  1. Click Save.

Your Google AdSense ad is added to a widget.

Add AdSense ads to your WordPress header this way:

Note:

If you do not use a child theme, then the AdSense code will get deleted with the next update of your theme. You will have to upload the tracking code again. Use a child theme to prevent this issue. Read my article How to create a Child Theme in WordPress to learn how to create a child theme.

 

Prerequisites:

  • Create an account in Google AdSense.
  • Verify your Google AdSense account.
  • Connect your website to Google AdSense.
  • Create an ad in Google AdSense.
  • Download a FTP client.
  • Get the login data for your FTP account:
    • name of the FTP server
    • user name
    • password
  1. Open your FTP client.
  2. Connect to your account.
  3. Open the root directory of your website.
  4. Open the directory wp-content.
  5. Open the directory themes.
  6. Open the directory of your current theme.
  7. Open the file php.
  8. Paste the Google AdSense code into the php below the wp_head() function.

Note:

The Google AdSense code is the code that you have saved in step 10 of How do I create ads in AdSense?

  1. Save the php.

Your AdSense ad is added to the header of your WordPress site.

AdSense in a WordPress Footer

Add AdSense ads to your WordPress footer this way:

Prerequisites:

  • Create an account in Google AdSense.
  • Verify your Google AdSense account.
  • Connect your website to Google AdSense.
  • Create an ad in Google AdSense.
  • Download a FTP client.
  • Get the login data for your FTP account.
    • name of the FTP server
    • user name
    • password

 

Note:

Some themes allow to edit the footer with widgets. When your theme allows to edit the footer with widgets, then check the instructions of AdSense in WordPress Widgets.

 

Note:

If your theme does not allow to edit the footer with widgets and you do not use a child theme, then the AdSense code will get deleted with the next update of your theme. You will have to upload the tracking code again. Use a child theme to prevent this issue. Read my article How to create a Child Theme in WordPress to learn how to create a child theme.

  1. Open your FTP client.
  2. Connect to your account.
  3. Open the root directory of your website.
  4. Open the directory wp-content.
  5. Open the directory themes.
  6. Open the directory of your actual theme.
  7. Open the file php.
  8. Paste the Google AdSense code into the php.

Note:

The Google AdSense code is the code that you have saved in step 10 of How do I create ads in AdSense?

 

Note:

Since every footer.php is different, find out by yourself where to exactly put the code.

  1. Save the php.

Your AdSense ad is added to your WordPress footer.

AdSense in a WordPress Blog Post

Add AdSense ads to WordPress blog posts this way:

Prerequisites:

  • Create an account in Google AdSense.
  • Verify your Google AdSense account.
  • Connect your website to Google AdSense.
  • Create an ad in Google AdSense.
  1. Open your web browser.
  2. Open your WordPress admin section.
  3. Click Posts on the menu.

A submenu is opened.

  1. Click All Posts.

The posts menu is opened.

  1. Select the post in which you want to add Google AdSense ads.
  2. Paste the AdSense code into the Text View of your post.

Note:

The Google AdSense code is the code that you have saved in step 10 of How do I create ads in AdSense?

  1. Click Update.

Your Google AdSense ad is added to your WordPress blog post.

Best WordPress Themes for AdSense

WordPress themes optimized for AdSense are great to boost your CTR. The themes that I present you are perfectly optimized to increase the CTR of your ads. These are the themes that I recommend:

  • Newspaper
  • Divi
  • Jevelin
  • GoodLife
  • The Voux

Definitions:

Connect to your webserver with FileZilla

FileZilla is a FTP client. Connect to your webserver with FileZilla this way:

Prerequisites:

  • Download FileZilla.
  • Install FileZilla.
  • Get the login data for your FTP account:
    • name of the FTP server
    • user name
    • password

 

filezilla
Filezilla
  1. Run the FileZilla Desktop App.
  2. Enter the name of your web server in the field Host.
  3. Enter your username in the field Username.
  4. Enter your password in the filed Password.
  5. Click Quickconnect.

You are connected to your web server.

CTR

CTR stands for Click-Through rate. The CTR is the ratio of clicks to impressions. Let me illustrate CTR with an example:
• Your website showed up 100 times in Google SERPs for the search term “x”.
• People clicked 5 times your URL in the Google SERPs.
• The CTR of your URL for the search term “x” is 5/100 = 5%.
back to Best WordPress Themes for AdSense

How to Add AdSense to WordPress
Rate this post

1 thought on “How to Add AdSense to WordPress

  1. Pingback: URL

Leave a Reply

Your email address will not be published. Required fields are marked *