How to Add Google Ads to WordPress: Setup, Code, and Fixes
Learn how to add Google Ads to WordPress with AdSense signup, ad unit setup, code placement, plugin options, and troubleshooting tips.

Google Ads on WordPress: the direct answer
To learn how to add Google Ads to WordPress, you start by signing up for Google AdSense, then create an ad unit in the AdSense dashboard. After that, you place the ad code on your site using either the WordPress theme editor or a plugin. Finally, you verify the site and wait for approval so ads can serve. This guide walks you through the full process from setup to troubleshooting.
Most website owners do this with Google AdSense rather than Google Ads, because AdSense is the program that publishes ads on websites. You can still connect your monetization setup to broader Google Ads ecosystems, but the code you add to WordPress comes from AdSense. The steps below focus on website monetization with ads that match your pages.
Before you begin, make sure you have a working WordPress site with real content. AdSense reviews your site, so empty pages or thin content can delay approval. A clean layout also helps ads load in the right spots.
Step 1: Sign up for Google AdSense
Google AdSense is the account that lets you publish ads on your pages. Your first step is to create an AdSense account using your Google login. Then you connect your site by verifying your ownership.
When you sign up, you will be asked for your website URL and basic contact details. You also choose how you plan to receive payments, depending on your country. After you submit the application, Google reviews your site and policies.
Here is a simple signup flow to follow so you do not miss anything:
- Go to the Google AdSense signup page and sign in with your Google account.
- Add your website URL and request access for your site.
- Agree to the AdSense terms and complete the required personal details.
- Submit the application and note any feedback or verification steps.
Once you submit, you may need to verify your site to show you own it. Verification methods vary, but you will usually add a snippet or complete a domain check.

Step 2: Configure ad settings and get approval
After signup, you should configure your ad settings so ads are ready when your account is approved. In the AdSense dashboard, look for setup prompts that relate to your site and ad code access. If your account is not yet approved, you will see status changes instead of ad serving.
Verification is usually the critical checkpoint. Google may ask you to confirm your domain, or you may need to place a verification snippet on your pages. Do not skip this step, because ad units will not work without approval.
While you are waiting, review your site against AdSense policies. A common approval blocker is misleading navigation, invalid traffic, or content that does not meet minimum quality standards. Also avoid placing ads on pages that you plan to remove soon.
When your account is approved, you can create ad units and copy their code. This is where ad performance tracking begins, because AdSense will record impressions and clicks per unit. You can later use these metrics to adjust placement.
Step 3: Create ad units and insert the ad code in WordPress
In the AdSense dashboard, you create an ad unit before you add code to WordPress. An ad unit configuration determines the ad format and the size options you want for your site. This step is the heart of how to put Google ads on WordPress, because the code snippet is what your pages will load.
Choose the ad format that matches your layout. For example, in-content units often fit inside blog posts, while responsive units can adapt to different screen widths. If you are unsure, start with a responsive display ad and place it near relevant content.
Then copy the ad code provided by AdSense. In WordPress, you can insert it in several ways.
Manual code placement (best for a single template)
Manual placement works well if you want an ad unit in a specific theme location. You can add the code into a template file or a custom HTML block. Make sure you add it where you want ads to appear, and avoid wrapping it inside extra scripts or complex shortcodes.
Keep the code clean. Do not edit it beyond what AdSense asks, because even small changes can prevent serving. If your theme includes caching, clear it after you save.
Placing the ad with a WordPress block
If you use a page builder or the block editor, you can usually add the AdSense code in a custom HTML block. After you paste the code, update the page and preview it. This method is common when you want ads in specific posts, not the whole site.
After insertion, check that your ad renders. Then return to the AdSense dashboard to confirm the ad unit shows activity.

Step 4: Place ads with WordPress plugins (and when automated ads help)
Many WordPress owners choose plugins for WordPress plugins because they reduce manual theme edits. Plugins can also make it easier to place multiple ad units across posts and pages. If you are asking how to place Google ads on WordPress without editing theme files, plugins are often the smoothest option.
When you install an ads plugin, you typically paste your AdSense settings and let the plugin handle placement. Some tools support automated ads, which is an AdSense feature that may place ads across your site based on what Google predicts will work. Automated placement can save time, but you still need to monitor results and ensure ads do not break your layout.
Before you rely on a plugin, check three things: where it places ads, how it handles responsive sizes, and how it avoids duplicating code. Also confirm the plugin does not load ads on pages that should stay ad-free, like admin pages or thin landing pages.
A good plugin setup flow usually looks like this:
- Install and activate a WordPress ads plugin that supports AdSense.
- Connect your AdSense account or add your AdSense code snippet in the plugin settings.
- Select which post types or templates should show ads.
- Save changes and test on mobile and desktop.
If your site uses caching or a performance plugin, test ads after clearing caches. Some caching setups delay the updated HTML, which can look like ads are not working.
Troubleshooting common issues when ads do not appear
If you completed the setup but ads do not show, start with the fastest checks. AdSense serving can take time after approval, and changes may take minutes to update. That said, there are common causes you can test quickly.
First, confirm that your AdSense account is approved and that the ad unit exists. Then verify that you pasted the correct code for that ad unit. Mixing up ad unit IDs is a surprisingly common mistake during how to add google ads to wordpress work.
Here are practical troubleshooting steps:
- Wait for approval and review status in your AdSense dashboard.
- Confirm you inserted the full AdSense snippet, not a partial fragment.
- Check that you placed the code in the right template or page location.
- Clear WordPress cache and any page caching plugins, then reload.
- Test on a different browser and on mobile to rule out layout issues.
- Disable conflicting scripts temporarily, especially ad blockers or script minifiers.
Also check for invalid placements. If you place ads inside elements that hide content with scripts, ads may not render correctly. If your theme uses aggressive lazy-loading, test without it for a moment. Finally, make sure you are not showing ads in the wrong context, like in a widget area that repeats too often.
For ad format issues, try switching to a responsive option. Some sizes do not fit well in narrow sidebars, which can hurt display. When you change formats, create a new ad unit and replace its code so your configuration matches.
Conclusion and best practices for ongoing ad performance tracking
Once you know how to put google ads on wordpress, the next step is making the setup stable and measurable. Use ad unit configuration that matches your layout and avoid frequent code changes. After the ads begin showing, track ad performance in the AdSense dashboard by unit and placement.
Ad performance tracking is where you learn what works for your audience. Pay attention to impressions, clicks, and your estimated revenue trends. If one placement consistently performs better, adjust other page elements to keep that placement visible without hurting readability.
For long-term success, keep your site quality high. Avoid thin pages and keep your content updated. Ads also perform better on pages with strong, relevant text, because they help Google choose suitable ads.
When you are ready to improve further, revisit placement and ad format types. A responsive unit near the top of content can work well for many sites, while in-feed units can fit news and blog layouts. Small changes, like moving an ad down a few paragraphs, can improve engagement over time.
If you want, you can also explore Google’s official guidance on AdSense policy and ad placement using Google AdSense Help. It is the best place to check current rules for monetization.
Step-by-step
- Create your AdSense account
Sign in to AdSense with your Google account. Add your WordPress site URL and submit the application.
- Verify and wait for approval
Complete the site verification step requested in AdSense. Check account status until you are approved to serve ads.
- Create an ad unit and pick a format
In the AdSense dashboard, create a new ad unit. Select the ad format type that fits your layout.
- Insert the ad code on WordPress
Copy the ad snippet from AdSense. Paste it using a theme template or a custom HTML block.
- Optionally use a plugin for placement
Install an AdSense-compatible plugin. Configure which pages and post types should show ads, then test on mobile.
- Test and troubleshoot if ads do not appear
Clear WordPress and page caches. Recheck that the correct ad unit code is in the right place.
FAQ
- What is the difference between Google Ads and Google AdSense for WordPress?
- Google AdSense is for publishing ads on your website. Google Ads is for advertisers buying ad placements. This guide focuses on AdSense because that is what you add to WordPress.
- How do I verify my site in Google AdSense?
- In your AdSense account, follow the verification step Google provides. You may need to add a small snippet or complete a domain check. Verification is required for ads to serve.
- Where should I place Google AdSense code in WordPress?
- Place the ad unit code where you want ads to appear, like inside a post template or a custom HTML block. Use the same placement area consistently to make performance comparisons easier.
- Can I use a plugin to place Google ads on WordPress?
- Yes. Many WordPress plugins support AdSense and can simplify placement. Still test the site after setup and confirm the plugin does not duplicate code.
- Why do my ads show blank space on my site?
- Common causes include account approval delays, wrong ad unit code, or caching and script conflicts. Check the AdSense dashboard status, then clear caches and retest.
- What ad format types should I start with?
- Responsive display ads are a good starting point because they fit most screen sizes. Choose formats that match your layout, then compare results by unit in the dashboard.


