Before you add AdSense to WordPress, you will want to create a site backupin case something goes wrong during the process. Then, you can proceed to the first step.
Step 1: Sign Up for Google AdSense
The first thing you’ll need to do is create an account with Google AdSense. Once you are on the AdSense site, click the Sign Up Now button:
The first screen will list your current Gmail accounts and ask you to select the one you want to use, or prompt you to create a new account altogether. Once you’ve selected the account you want, you will be presented with the sign up form.
Fill in the information, accept the Terms and Conditions, and then click Create Account. While signing up only takes a few minutes, Google may take up to 3 days to approve your application, so you might need to wait a while.
Step 2: Create an AdSense Ad
Once your account is approved, you can start using Google AdSense in WordPress. Sign in to your new account, and access the AdSense dashboard:
Under My ads > Ad units, click on New ad unit. Now you will need to name your ad. We suggest something descriptive, so you can remember it and where it is placed on your site. This is especially important if you have multiple ads and/or sites.
Next, you will need to choose an ad size (be sure to select Responsive so the ad can display correctly on all devices), layout, and type:
The Backup Ads option tells Google what to do if there are no targeted ads available to display. You can use this to point to a specific URL, show the space as blank, or fill the space with a solid color:
Once you’ve edited your ad’s settings, click Save and Get Code. You will see a new window with the newly generated AdSense code. Copy this code and save it for the next step.
Step 3: Add AdSense to WordPress
Hopefully, you have saved the code generated in the previous step, as you will need to it to use Google AdSense in WordPress. Start by logging into your WordPress dashboard. Then go to Appearance > Widgets.
Create a new widget by selecting Text from Available Widgets, then dragging and dropping it where you want the ad to display. Generally, the sidebar is a good place to start, so you can see how it fits with the rest of your site without impeding your content:
Once the widget is in place, provide a title for it and then paste the code from the previous step into the content field. Once you are done, click on Save.
Preview your site to make sure your ad appears correctly. If the formatting is off for the area you chose, you can either go back to AdSense and edit the ad unit to fit your layout, or you can pick a different location for it by creating a new widget using the steps above.