Learning how to add AdSense to WordPress takes about ten minutes, and you can do it without wrecking your page speed. The speed problem rarely comes from AdSense itself. It comes from too many ad slots, ads placed above your content on phones, and several ad plugins running at once. This guide shows the two ways to add AdSense, the speed-safe rules in plain words, and how to place ads with WB Ad Manager, a plugin we make, including what is free and what is Pro.
It is written for new site owners. You do not need to edit theme files or write code. Everything here was checked against Google’s own AdSense Help pages on 1 October 2026, and every plugin statement was checked against the WB Ad Manager feature list.
How to add AdSense to WordPress: what are the two ways?
The two ways of how to add AdSense to WordPress are Auto ads and ad units. You can add AdSense with Auto ads or with ad units you place yourself. Auto ads need one piece of code on every page, and Google decides where ads appear. Ad units are individual blocks you create in AdSense, then paste or place exactly where you want them.
Here is how Google describes the first one. In its Help page on Auto ads, Google says you place one piece of code on all pages across your site, and Auto ads “scan your site and automatically place ads where they’re likely to perform well”. You change settings in your AdSense account afterwards. Auto ads include formats such as anchor ads that stick to the top or bottom of the screen, and overlay formats that sit over the page.
The second way starts in your AdSense account. In Google’s “Create a display ad unit” instructions you click Ads, then By ad unit, then Display ads, name the unit, pick a size, and click Save and get code. Google recommends leaving the size on Responsive, which adapts to the page layout and the visitor’s device. You then paste the code where you want the ad to appear.
Auto ads | Placed ad units | |
|---|---|---|
Setup | One code snippet for the whole site | One code snippet per ad spot |
Who picks the position? | Google, within the settings you choose | You |
Control over speed and layout | Lower. You set limits, Google places ads | Higher. You decide how many and where |
Best for | Getting started quickly | Sites where layout matters and you want to test positions |
Main risk | More ads than you expected on some pages | Pasting code in the wrong place, or too many units |
Neither is wrong. Many sites start with Auto ads to see what earns, then move their best pages to placed units once they know where readers look. If your site is small, the biggest gain comes from placing a few good units, not from adding more.
Does AdSense slow down a WordPress site?
Yes, ads add weight, because every ad loads scripts, images and sometimes video from other servers. How much they slow you down depends on how many ads you show and where. A page with two well-placed units behaves very differently from a page with eight.
Chrome now publishes experimental measurements for exactly this. In its Chrome UX Report (CrUX), Chrome lists four ad metrics: Ad Count, which describes how many ads a typical user sees at once on a site; Ad Density, which describes the balance of content and advertising visibility; Ad Weight: CPU, which describes how much CPU the ads use; and Ad Weight: Network, which describes how much network the ads use. Chrome calls these experimental, and per its methodology notes they are only reported for pages that include ad resources and list at least one authorized seller in an ads.txt file. You can read the details on Chrome’s ad measurements page.
Two things follow for a beginner. First, how many ads a visitor sees at once and how much of the screen they cover are now things Chrome measures for real users, so they are worth caring about. Second, you do not need to read the technical report. The rules below keep those numbers sensible without any tools.
What are the speed-safe rules for AdSense on WordPress?
There are six rules. Use fewer ad units, keep the top of mobile pages for your content, stay inside AdSense limits, run one ad plugin not three, add ads.txt, and check the result on a real phone. Each one is short.
Rule 1: Use fewer ad units than you think you need
Start with two or three units per post and add a fourth only if your pages are long. Each extra unit adds scripts and moves your text further down. For a 1,000 word article, one unit inside the content and one in the sidebar or at the end is plenty. More ads on the same page usually split the same clicks across more slots, so earnings rise less than the page weight does.
Rule 2: Do not put an ad above the main content on mobile
On a phone, the first screen decides whether a visitor stays. If the first thing they see is an ad that pushes the headline down, many leave, and the page feels slow even when it is not. Put your first ad after the first or second paragraph on mobile. This is general layout advice, and it also keeps you on the safe side of Google’s policies.
Rule 3: Stay inside what AdSense allows
Google publishes ad placement policies. Among other things, they say publishers may not encourage accidental clicks, which includes placing ads where they can be mistaken for menu, navigation or download links, and being careful with buttons and links placed near ads. Read the “Ad placement policies” page in the AdSense Help Center once. A violation notice costs you far more than any ad ever earned. Never ask visitors to click your ads.
Rule 4: Run one ad plugin, not three
Each ad plugin loads its own scripts and styles. If you have an ads plugin, a “header and footer code” plugin and a theme with ad boxes, you may be loading the same AdSense script several times. Pick one tool to manage ad placement, remove the others, and confirm AdSense is only added once. If you use Auto ads, do not also place the site-wide code by hand somewhere else.
Rule 5: Add your ads.txt file
An ads.txt file is a small text file on your domain that lists who is allowed to sell your ad space. For AdSense it is one line, and AdSense gives you the exact text in your account. It looks like this, with your own publisher number in place of the zeros.
google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0Save it as ads.txt at the root of your site, so it opens at yourdomain.com/ads.txt. Chrome’s ad metrics also look for an ads.txt file, as noted above, so it helps with reporting as well as with trust.
Rule 6: Check the result on a real phone
After any ad change, open three pages on your own phone over mobile data. Look for three things: does the headline appear without scrolling, does anything jump when ads load, and does the page feel as quick as before. Then run a free speed test on one page and compare it with a page that has no ads. If the gap is large, remove one unit and test again. Our guide to WordPress mobile optimization explains how to read the results.
How to add AdSense to WordPress step by step
Here is how to add AdSense to WordPress in seven steps: apply, get approved, add the code with one method, create your ad units and place them. The steps below use no coding.
- Apply for AdSense. Sign in at adsense.google.com, add your site and wait for approval. Your site should have real content, a privacy policy and a contact page before you apply.
- Add the site code once. AdSense gives you a snippet to verify your site. Add it with one method only, such as your ad plugin or the official Site Kit plugin from Google, not both.
- Choose your approach. Turn on Auto ads for a quick start, or create display ad units for control. You can do both, but watch the total on each page.
- Place your ad units. Paste each unit’s code into a placement, such as inside the post content, in the sidebar or after the post. An ad plugin makes this a form instead of a theme edit, which is the safer route for beginners.
- Add ads.txt. Copy the line from your AdSense account and save it at your site root.
- Wait, then check. Google says it usually takes a few minutes for ads to appear, and occasionally up to an hour. If ads still do not show after an hour, check that your site’s status is Ready on the Sites page in AdSense.
- Test on mobile and desktop. Follow Rule 6 above.
If something goes wrong, undo one step at a time. It is also worth reading our broader WordPress blog monetization guide to see how ads fit next to affiliate links, digital products and memberships, because AdSense alone pays little at low traffic.
How can you place AdSense ads with WB Ad Manager?
WB Ad Manager is a WordPress plugin we make. It lets you create an AdSense ad as a native ad type and show it in one of more than sixteen placements from a form, with no theme editing. The free version covers placement, AdSense rotation, country targeting and tracking. Pro adds testing, deeper reporting and tools for selling your ad space.
A fair disclosure first: this is our own product, and we put it here because it solves the placement step in this guide. It does not make your pages faster by itself, and we do not claim it does. Speed still comes from the six rules above. What the plugin gives you is one place to manage ads, which supports Rule 4.
What do you get in WB Ad Manager Free?
The free version includes the native AdSense ad type and four other types, the placement hooks, AdSense-and-direct rotation, country targeting, click tracking and AdSense-safe rendering. Specifically, the free plugin includes:
- Five ad types. Image banners, rich content, HTML or JS code for tags like Ezoic and Mediavine, native AdSense, and email capture forms.
- 16+ placement hooks. Before, after and inside content, three sidebar slots, header and footer bars, between archive posts, around comments, plus BuddyPress and bbPress positions.
- AdSense and direct rotation. AdSense fills unsold space, a direct sponsor campaign overrides it for its date range, and AdSense returns when the campaign ends.
- Geo targeting by country. Show an ad only in the countries you pick.
- Ad tags and bulk actions. Tag ads by sponsor, season or format, filter the list, then switch a whole group on or off at once.
- Server-side click tracking. Impressions and clicks are recorded on your server rather than counted by a pixel, with click-through rate per ad.
- AdSense policy-safe rendering. Ad code is rendered unchanged and respects the per-page unit limit.
- No third-party pixels. Nothing phones home, and no IP storage by default.
- FTC disclosure shortcodes for labelling sponsored posts.
Basic link cloaking is also free, which helps if you mix affiliate links with ads. You can read more on the WB Ad Manager plugin page.
What does WB Ad Manager Pro add?
Pro adds A/B testing, analytics breakdowns and the tools for selling ad space to advertisers. Every Pro licence includes the full Pro feature set, and the tiers differ only by how many sites they cover: Personal for one site at 59 US dollars, Professional for five sites at 129 US dollars, and Agency for unlimited sites at 299 US dollars. The Pro feature list is:
- A/B testing. Split traffic between creatives and promote the winner.
- Geo and device breakdowns. Analytics split by country and device. This is separate from country targeting, which is free.
- Revenue analytics. Income by ad, placement and advertiser.
- CSV export of analytics.
- Ad folders. Browse by advertiser, campaign and tag, with a house-ads folder, and pause a whole folder in one click.
- Advertiser portal. A front-end dashboard, added with one shortcode, where members build campaigns, submit them and watch spend.
- Wallet and credits. Top-ups through billing you already run: WooCommerce, its Subscriptions and Memberships, Paid Memberships Pro, or MemberPress.
- Campaign moderation queue. Approve or reject before anything goes live.
- Classifieds marketplace, plus link-cloaking extras such as keyword auto-linking, a link scanner and CSV import.
The short version: start with Free. Move to Pro when you want to test creatives, read revenue by placement, or sell ad space directly. The full comparison lives on the Free vs Pro page.
What can WB Ad Manager not do?
It is a placement, rotation and tracking tool, and we do not list lazy loading, reserved ad space or layout shift controls among its features. If you need those, handle them through your theme, your caching setup and the general advice in this guide. Knowing what a plugin does not do is part of choosing the right one.
How do you earn more from the same ad slots?
You earn more from the same slots by filling them with the highest-paying option for each date and visitor, not by adding slots. For a small site, that usually means mixing AdSense with direct sponsors, since a sponsor who pays a flat fee often pays more than AdSense would for the same space.
This is the idea behind AdSense-and-direct rotation. In WB Ad Manager Free, AdSense fills unsold space by default. When you book a direct sponsor for a date range, that sponsor’s ad overrides AdSense in the same slot for those dates, and AdSense comes back when the campaign ends. You get the sponsor’s fee and keep AdSense as the fallback, with no extra slots and no extra page weight. There is a worked example on the AdSense and direct mix use case page.
- Find your best slots. After a month of tracking, note which placements get the most clicks.
- Offer those slots to a sponsor. A short “Advertise” page with your monthly visitors and prices is enough to start.
- Book the dates. Set the campaign date range in the plugin so the swap happens on its own.
- Let AdSense fill the rest. When there is no sponsor, the slot earns as before.
When you start selling space to several advertisers, the Pro advertiser portal lets them build and fund their own campaigns, which saves you from handling every request by email.
How do you tell if your ads are hurting speed?
Compare one page with ads and one without, on the same phone, and look at how fast the main content appears and whether the page jumps. If the ad page feels slower or shifts while loading, you have too many units or they are in the wrong place.
- Pick two similar posts. Switch ads off on one of them for the test, then switch them back on.
- Run a free speed test on both. Look at the time until the main image or headline appears, and at any layout shift score the report shows.
- Watch the page load. If text jumps down when an ad arrives, the space for that ad was not held in advance.
- Check Search Console. The Core Web Vitals report there shows real visitor data over time, which matters more than a single test.
Two fixes are general advice, not plugin features. First, give each ad slot a fixed minimum height in your theme or page builder, so the space is held before the ad loads and the text does not jump. Second, put ads lower on the page, below the first screen, where a slower ad does less harm. WB Ad Manager does not list reserved space or lazy loading among its features, so handle both in your theme, your caching setup or your page builder. For speed fixes beyond ads, see our guide to speeding up your WordPress site without touching code.
What mistakes make AdSense sites slow or lose money?
Five mistakes cause most of the damage: too many units, ads above the content on phones, two copies of the AdSense code, a missing ads.txt and never checking on a real phone. Each is easy to fix once you know it is there.
- Stacking units. Six units on a short post. Cut to two or three.
- Top-of-page ads on mobile. Move the first ad below the first paragraph.
- Duplicate code. A theme setting and a plugin both adding AdSense. Keep one.
- No ads.txt. Add it, and check it opens in a browser.
- Guessing instead of checking. Open your pages on a phone every time you change ads.
When should you not bother with AdSense?
You may not need AdSense yet if your site gets very little traffic or if you sell your own products. At a few hundred visitors a month, ad income is tiny, and affiliate links or your own offer usually earn more. Our monetization guide linked above covers those paths.
You may also prefer a different ad network once you grow. WB Ad Manager’s HTML and JS ad type accepts tags from networks such as Ezoic and Mediavine, so you can switch networks without changing plugins. AdSense is a good first step, not a permanent commitment.
Frequently asked questions
Is it better to use Auto ads or place ad units myself?
Auto ads are faster to set up, and placed units give you more control over speed and layout. Many beginners start with Auto ads, then place units on their best pages once they see what earns.
How many AdSense ads should a WordPress post have?
Two or three is a safe start for a typical article. Add more only for long posts, and check that your content is not pushed down on phones.
Do I need a plugin to add AdSense to WordPress?
No. You can paste Google’s code yourself or use Google’s Site Kit plugin. A dedicated ad plugin makes placement a form instead of a theme edit and keeps all your ads in one place.
Is WB Ad Manager free?
The core plugin is free and includes native AdSense ads, 16+ placement hooks, AdSense-and-direct rotation, country targeting and server-side click tracking. Pro adds A/B testing, geo and device breakdowns, revenue analytics, CSV export and tools for selling ad space, from 59 US dollars for one site.
Why are my AdSense ads not showing?
Google says ads usually appear within a few minutes and sometimes take up to an hour. If nothing shows after that, check that your site has a status of Ready on the Sites page in your AdSense account.
Where to go next with AdSense on WordPress
That is how to add AdSense to WordPress without slowing it down. Add AdSense with one method, place two or three units, add ads.txt and test on your phone. When you are ready to manage placements in one place, try the free WB Ad Manager first. Move to Pro only when you start selling ad space directly.





No comments yet