How to Add Google AdSense to WordPress in 2026 (Complete Guide)
Google AdSense remains the most accessible way to earn from a WordPress site — you place the code, Google fills the space with relevant ads, and you earn from impressions and clicks. This page once documented adding a specific 468×90 banner to an old theme’s header; we’ve rebuilt it as a complete, current guide: how to add AdSense to any WordPress site in 2026, where ads actually earn, and the policy and speed pitfalls to avoid.
Before You Start: Get Approved
Apply at Google AdSense with your site. Approval requires original, substantial content, a clear navigation, privacy policy page, and compliance with program policies. Thin or copied content is the top rejection reason — if you’re pre-approval, focus on publishing genuinely useful posts first.
Method 1: Auto Ads (Easiest)
Google’s Auto ads place and optimize ads automatically — you add one snippet site-wide and Google decides positions using machine learning:
- In AdSense: Ads → By site → Get code — copy the script.
- In WordPress, add it site-wide: the cleanest no-plugin route is a child-theme hook or your theme’s “header scripts” box; most SEO/ad plugins (including a site kit approach below) also offer a header-injection field.
- Toggle Auto ads on for your site in AdSense and choose which formats to allow.
Auto ads are the fastest route to earning, at the cost of placement control — review what Google inserts and exclude formats or areas that hurt your design.
Method 2: Google Site Kit (Official Plugin)
Google’s own Site Kit plugin connects WordPress to AdSense (plus Analytics and Search Console) with a guided setup — it places the code correctly, verifies your site, and shows earnings in your dashboard. For most WordPress users this is the recommended path: official, maintained, and mistake-proof.
Method 3: Manual Ad Units (Full Control)
For precise placement — the modern equivalent of that old header banner:
- In AdSense: Ads → By ad unit → Display ads — create a unit (responsive recommended; fixed sizes like the classic 468×60 are largely obsolete on mobile-first sites).
- Copy the unit code.
- Place it via a widget (Appearance → Widgets → Custom HTML into a sidebar/header area), your page builder’s HTML element (Bricks, Elementor, etc.), or an ad-management plugin like Advanced Ads/AdRotate for rotation, scheduling, and per-post control — as covered in our guide to selling and managing ads on WordPress.
Where Ads Actually Earn (Placement That Works)
- Within content — ads inside or between paragraphs of posts earn best; readers are engaged there.
- Below the title / above the fold — high visibility without burying content.
- End of posts — catches readers deciding what’s next.
- Sidebar — modest but steady on desktop.
- The old header banner? Ironically, the placement this article once taught — a fixed banner in the header — is now among the weaker earners and pushes content down on mobile. Responsive in-content units beat it decisively.
The Pitfalls That Cost People Their Accounts (or Rankings)
- Never click your own ads or encourage clicks (“click here to support us”) — the classic account-termination mistakes.
- Don’t overload pages. Too many ads triggers Google’s ad-heavy layout penalties and drives readers away — fewer, better-placed units earn more sustainably.
- Mind Core Web Vitals. Ad scripts slow sites; use lazy-loading where possible and keep total units modest. Speed is a ranking factor — protect it.
- Have a privacy policy + consent where required (GDPR regions need a consent management platform — AdSense provides one).
- Don’t place ads on excluded content or in ways that get accidental clicks (too close to buttons/navigation).
Realistic Expectations
AdSense earnings scale with traffic and niche — modest traffic earns modest money, and rates vary enormously by topic and geography. Treat AdSense as one leg of monetization: direct ad sales (which pay far better per impression once you have an audience) and other revenue streams sit alongside it. Growing the traffic is the real work — our guides on promoting your blog and SEO vs PPC cover that side.
FAQ
How do I add AdSense to WordPress? Easiest: Google’s Site Kit plugin (official, guided). Fastest: Auto ads via one site-wide snippet. Most control: manual ad units placed via widgets, your page builder, or an ad-management plugin.
Where should I place AdSense ads for best earnings? Within post content (between paragraphs), below the title, and at post end. Responsive units beat fixed sizes; old-style header banners are now weak earners.
How many ads should a page have? Fewer than you think — enough to earn, few enough to keep the page fast and readable. Ad-heavy layouts risk Google penalties and reader loss.
Why was my AdSense application rejected? Usually thin or unoriginal content, missing privacy policy, or policy violations. Build substantial original content and reapply.
Does AdSense slow down WordPress? Ad scripts add weight — mitigate with modest unit counts, lazy loading, and good hosting. Monitor Core Web Vitals after adding ads.







Bilal Ahmad
Founder & Editor, TechMaish
Bilal Ahmad is the founder and editor of TechMaish, writing about consumer technology since 2008. For over 18 years he has covered streaming and downloads, games, social media platforms, iPhone and Android, Windows fixes and everyday software, testing tools hands-on and sharing what actually works. He is based in Peshawar, Pakistan.
About MeAll My ArticlesTwitterFacebookLinkedInInstagramPinterest
17 comments
yogesh
Hello Bilal Ahmed
The post is very informative and useful.How ca i places my ads (ads placement) in techmaish theme to earn good amount of money from google adsense.
Technology News
Images are not displaying on home page 🙁
tarun
i have some problem with theme i add some ads on my side bar its runs but i add some ads on my post side bar ads automatic hidden what should i do remove this problem i use latest version of theme?
Bilal Ahmad
Tarun@ Sorry I am not getting your point. Can you explain a bit more?
Deepak Kumar Achary
Nice article,i really impressed.Good technique for a newbie to intregrate google adsense code at the top of blog.
Ashwani Kumar Singh
hey Bilal please help me also the ad is not showing up even after putting the code in header.php file…please help…:(
Bilal Ahmad
Priyanka and Dinesh@ Are you looking in the header.php file. Make sure you are inside header.php in order to add the code.
If you are still unable to add the code, then drop me a mail so that i can personally add the code for you.
ashwani
ya same problem for me also…ads are not showing up in the header even after doing what Bilal told above in the post…..:(
Dinesh Thakur
I followed your instructions, but does not work for my blog. Do have any idea why ads are not displaying?
Priyanka
I did just like written here. But the ads are not showing 🙁
Elizabeth@Table for Five
I’m confused! I downloaded TechMaish last night, I’m running WP 3.3.2, and my code looks like this:
#header .headeradd {
width:470px;
border:0 solid silver;
margin-top:45px;
margin-right:5px;
height:60px;
float:right;
}
In my TechMaish options, I have this:
Show 468×60 Header Ad ? (checkbox)
468×60 Ad Banner (box for code)
468×60 Ad Link (box for code)
I want to put an Amazon Associates banner there, but it’s iframe code and no matter how I tweak it, it won’t display an ad. Help would be greatly appreciated, thanks!
Bilal Ahmad
Elizabeth@ If you want to add amazon associates banner within post then go to HTML Mode and paste your amazon code and directly publish your article in HTML Mode. Then the amazon banner will appear in the post. If you paste the code and revert to “Visual” mode then the banner will not display.
Free Facebook Likes
Your article for adding Google adsense on header is right for techmaish. Thanks!
ramesh
can u plz tell me how to create a blue box around the sidebar that you have now? also changing the background of it? plz pa guide me
Nwosu Desmond
Glad you posted this, i have been wondering how i can do this……
Bilal Ahmad
I hope your problem is resolved now.
Syed Qasim
But Bilal, there is an option in techmaish theme for adding 468×60 banner in header. So can we use that option?.