Tools & How-To

How to Add Google AdSense to a WordPress Site

Short answer

To add Google AdSense to a WordPress site, create an AdSense account, submit your site for approval, then either paste your AdSense auto ads code into your theme's header or use a plugin like Site Kit by Google to handle the connection. Once approved and the code is live, Google automatically places and optimizes ads across your pages. The whole process takes 15–30 minutes to set up, though AdSense approval itself can take anywhere from a few days to a couple of weeks.

What You Need Before You Start

Before you touch a single line of code, make sure you have three things in place:

Google does not publish an exact checklist for approval, but in practice, thin sites and brand-new domains with minimal traffic tend to get rejected or held up. Build out your content first, then apply. It saves frustration.

Step 1 — Create Your Google AdSense Account

Go to adsense.google.com and sign in with your Google account. Click Get started, enter your website URL, select your country, and accept the terms. Google will then give you a small snippet of JavaScript — your AdSense verification code. Copy it. You’ll need it in the next step.

At this stage your account is pending. You have to prove site ownership before Google fully activates it.

Step 2 — Add the AdSense Code to Your WordPress Site

You have a few ways to do this. Pick the one that matches your comfort level.

Option A: Use Site Kit by Google (Easiest)

Site Kit is a free official plugin from Google that connects WordPress to AdSense, Search Console, Analytics, and PageSpeed Insights in one place.

  1. In your WordPress dashboard, go to Plugins → Add New and search for “Site Kit by Google.”
  2. Install and activate it, then follow the setup wizard to connect your Google account.
  3. When you reach the AdSense step, Site Kit automatically places the verification code and, after approval, can enable Auto ads site-wide with one toggle.

This is the method we’d recommend to most beginners — it handles the technical parts and keeps everything in one dashboard.

Option B: Paste the Code Manually via a Plugin

If you’d rather not install Site Kit, use a header/footer injection plugin like Insert Headers and Footers (by WPBeginner) or WPCode.

  1. Install and activate the plugin.
  2. Navigate to its settings and paste your AdSense code into the header section (inside the <head> tag).
  3. Save. The code will load on every page of your site automatically.

This approach works well and doesn’t tie you to any single Google plugin.

Option C: Edit Your Theme’s header.php (Advanced)

If you’re comfortable editing theme files, go to Appearance → Theme File Editor → header.php and paste the AdSense code just before the closing </head> tag. Save.

One caution: if you update your theme, a non-child theme edit will be overwritten. Use a child theme or stick to Options A or B unless you know what you’re doing.

Step 3 — Verify Ownership and Wait for Approval

Once your code is live, go back to your AdSense dashboard and click the button to confirm your code is in place. Google will then crawl your site and begin its review. This typically takes a few days to a couple of weeks. You’ll receive an email when your account is approved — or if there’s an issue to fix.

During the waiting period, keep publishing content. A site that’s actively growing looks healthier to reviewers than one that’s been sitting static.

Step 4 — Enable and Configure Your Ads

Once approved, you have two main approaches to displaying ads:

Auto Ads

Auto ads let Google automatically decide where and how often to show ads across your site. It’s the lowest-effort option and works surprisingly well on content-heavy sites. You enable it with one toggle inside your AdSense account under Ads → By site.

Manual Ad Units

For more control, create individual ad units inside AdSense (display, in-article, in-feed, etc.), copy the ad code, and place it in your WordPress theme or via a widget/shortcode plugin like Advanced Ads or Ad Inserter. Manual placement lets you put ads in high-visibility spots — like just below your post title or at the end of your content — which often performs better than leaving it entirely to Auto ads.

In practice, many site operators run Auto ads as a baseline and add a few manual units in key positions on top of that.

What Affects How Much You Actually Earn

This is where honesty matters. AdSense pays you a share of what advertisers bid for clicks (CPC) and impressions (CPM). Advertiser bids vary widely by niche, keyword, and audience geography. Finance and legal keywords attract higher advertiser competition than, say, general entertainment. US and UK traffic commands higher bids than most other regions. None of these figures are fixed — they shift with advertiser demand and seasonality.

What that means practically: you don’t control CPC. What you do control is the quality and volume of your traffic, the relevance of your content to high-demand topics, and how well your ad placements are positioned. Those are the real levers.

For context on what a well-built content site can be worth, the sites we’ve built and sold on Flippa — including PainBalance.org ($4,200), QuoteDB.org ($3,500), and DayToDayRecipes.com ($8,000) — were all AdSense-monetized niche sites built on WordPress. The value came from consistent organic traffic to well-targeted content, not from chasing high CPCs.

If you want to skip the technical setup entirely and get a site that’s already structured for AdSense approval, MoneyManifest.net builds done-for-you AdSense-ready WordPress sites from the ground up.

Common Mistakes That Slow Down Approval or Kill Earnings

Your Next Steps

Getting AdSense connected is just the beginning. The actual work — and the actual earnings potential — lives in building content that ranks for keywords people are searching. If you haven’t mapped out your keyword strategy yet, start with our guide on how to do keyword research for free. And if you’re still figuring out what tools your site actually needs, the post on what tools you need to start a niche website is worth a read before you go any further.

Key takeaways

Frequently asked questions

How long does Google AdSense approval take for a WordPress site?

Approval typically takes anywhere from a few days to a couple of weeks after you place the verification code and submit for review. Sites with thin content or very new domains can take longer or get rejected — building out your content before applying speeds up the process.

Do I need a plugin to add AdSense to WordPress?

No, but a plugin makes it significantly easier. You can paste your AdSense code directly into your theme's header.php file, but using a plugin like Site Kit by Google or Insert Headers and Footers is safer and survives theme updates without extra effort.

Can I use AdSense on a free WordPress.com site?

Not on a free WordPress.com plan — AdSense requires you to control your site's code, which means you need a self-hosted WordPress.org site on your own hosting. This is one of the main reasons most serious site builders use self-hosted WordPress from the start.

What is the difference between Auto ads and manual ad units in AdSense?

Auto ads let Google automatically choose where and how often to display ads across your site with minimal setup. Manual ad units give you precise control over placement — you create specific ad formats in AdSense and embed them in exact spots on your pages using a plugin or theme code. Many site operators use both together.

Helpful resources

Want a site like this built for you?

We build done-for-you AdSense sites — domain, 50 articles, SEO, and approval help — for a one-time $499. We’ll first send you 3 real sites we built and sold on Flippa.

See How It Works →

This article is general educational information about websites and Google AdSense, not financial advice or a guarantee of income. AdSense earnings depend on your niche, traffic, and effort, and vary widely. CPC figures are advertiser bid estimates that change over time. Always review Google's current AdSense program policies before building.

C

Delano Slocombe

We build and sell done-for-you AdSense websites — including sites flipped on Flippa such as PainBalance.org, QuoteDB.org, DayToDayRecipes.com. See how we can build yours →

See 3 real sites we built & sold

Enter your email and we'll send you three AdSense sites we built and flipped on Flippa — plus the simple model behind them.

No spam — just the 3 examples and the breakdown.