Auto ads vs manual ad units: which one to use, and how to combine them
Key takeaways
- Auto ads need only the AdSense code in the head of every page; Google then decides where in-page, overlay and intent-driven ads appear.
- Manual ad units are pieces of ad unit code you paste in the body where you want an ad, which gives you exact control over position.
- Google states that Auto ads now works through any AdSense ad unit code, so turning Auto ads on can add ads to pages that only carry ad units.
- Page exclusions stop Auto ads on chosen URLs or URL prefixes, and excluded areas block in-page Auto ads only, not overlay formats such as anchors.
- The "Allow Google to optimize existing ads" setting lets Auto ads and your existing ad units be optimized together.

Auto ads place ads for you after you add one AdSense code snippet to every page, and you steer them with settings (formats, ad load, exclusions). Manual ad units put a specific ad exactly where you paste the code. You do not have to choose one: Google documents that Auto ads detect existing ads, and most publishers who care about layout run both, with manual units in key positions and Auto ads filling the rest.
What is the difference between Auto ads and ad units?
Google’s About Auto ads page describes Auto ads as “one piece of code on all pages across your site”. Auto ads then scan the page, understand its structure, detect existing Google ads and place new ones based on the layout and the amount of content. When you change your site, AdSense reanalyzes the page.
An ad unit, per About ad units, is “one or more Google ads displayed as a result of one piece of the AdSense ad code”. You create it on the Ads page, copy the code and paste it inside the <body> exactly where you want the ad.
| Auto ads | Manual ad units | |
|---|---|---|
| Code you add | The AdSense code once, in <head> |
The AdSense code plus one ad unit code per slot, in <body> |
| Who decides placement | Google, within your settings | You |
| Formats | In-page (banner, Multiplex), overlay (anchor, vignette, side rail), intent-driven (ad intents) | Display, in-feed, in-article, Multiplex, search engine |
| Overlay formats (anchor, vignette, side rail) | Yes | No ad unit equivalent |
| Control over exact position | Indirect: excluded areas, ad load, preview | Full |
| Layout shift risk | Ads are inserted into the page after load | You can reserve space in advance |
| Reporting granularity | By ad format in reports | By ad unit, plus format |
How do Auto ads choose formats?
Auto ads group formats into three families, and each one can be switched off in the Auto ads settings:
- Intent-driven formats: “Ad intents” places links, anchors and chips in existing text that open ads in a dismissible dialog.
- Overlay formats: anchor ads (top or bottom of the screen), vignette ads (full screen between page loads) and side rail ads (sides of widescreen pages). They sit over content “without affecting its layout”. The guide on anchor, vignette and side rail ads covers their controls.
- In-page formats: banner ads (display or native) and Multiplex ads inside the content area.
For in-page banners you also get “Maximum number of ads on a page”, “Minimum distance between ads on a page”, “Find more ad placements on article pages” and “Allow Google to optimize existing ads”.
Why do Auto ads appear when I only placed ad units?
The About the AdSense code page states that “Auto ads now works through any AdSense ad unit code”. In practice, if Auto ads is turned on for a site in your account, a page that loads only ad unit code can still receive Auto ads. Google adds that this may not work correctly when the ad unit code is used dynamically, through an ad server, or through a host partner.
So if you want manual units only, do not rely on leaving out a head snippet. Turn Auto ads off for that site on the Ads page, or exclude the pages concerned.
When are manual ad units the better choice?
Choose manual units when position matters more than convenience:
- You must reserve space to avoid layout shift. A manual slot can have a fixed height or
min-heightbefore the ad loads. See preventing CLS from ads. - Your template has a clear rhythm: a slot after the intro, one in a sidebar, one after the article. In-article and in-feed units are designed for these spots.
- You need per-slot reporting to see which placement earns, or you want custom channels per slot.
- The layout is fragile: sticky headers, interactive tools, games or forms where an ad inserted at the wrong spot could cause accidental clicks. The ad placement policies put responsibility for accidental clicks on you, even when the layout causes them unintentionally.
When are Auto ads the better choice?
- You have many templates or a CMS you cannot easily edit.
- You want overlay formats (anchors, vignettes, side rails), which only exist through Auto ads.
- You do not have the time to test placements by hand. Google lets you run Auto ads as an experiment: when you click “Apply to site”, choose “Run experiment first”, and AdSense tests the settings on 50% of your traffic for 90 days, finishing earlier if it has enough data.
How do I combine both without losing control?
A common, documented setup is manual units where you want guaranteed placements and Auto ads for everything else.
- Put the AdSense code in the
<head>of every page:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000"
crossorigin="anonymous"></script>
- Paste the ad unit code, as AdSense generates it, in the body where you want fixed slots. The generated code repeats the library
<script>line, followed by the<ins>element and the push call:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-0000000000000000"
data-ad-slot="1234567890"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
- In AdSense, click Ads, then Edit next to your site. Turn on Auto ads and review each format family.
- Under In-page formats, set the maximum number of ads and the minimum distance between ads so that Auto ads do not crowd your manual slots.
- Decide on “Allow Google to optimize existing ads”. With it on, Google optimizes your existing units and Auto ads together and places ads in the best performing placements. Turn it off if you want your manual units left exactly as you configured them.
- Use excluded areas and page exclusions (below) for the spots that must stay clean.
- Click Apply to site. Google says new settings can take up to an hour to show.
How do page exclusions work?
Page exclusions stop Auto ads on specific URLs and override the site’s Auto ads settings. Manual ad units on those pages still serve.
- “This page only” excludes the exact URL.
- “All pages under this section” excludes a URL prefix. Google’s example: excluding
example.com/sportsalso coverswww.example.com/sportsandexample.com/sports/team, but notsubdomain.example.com/sports. - URLs with fragments (
#top) or parameters (?q=target) are not supported. - Changes can take up to an hour to apply, and page exclusions cannot be part of an Auto ads experiment.
Good candidates: contact, login, checkout, search results, legal pages and any interactive tool where an inserted ad would break the flow.
How do excluded areas work?
Excluded areas let you block in-page Auto ads from parts of pages with similar layouts, for example right under the header. Two limits matter:
- They apply to in-page Auto ads only. Excluding the top of a page does not stop an anchor ad.
- They are stored as CSS selectors. If your element IDs or classes change after a redesign, the exclusion can stop working and you need to add it again.
Common mistakes
- Expecting manual-only behaviour while Auto ads is on. Because Auto ads works through ad unit code, a page with only units can still get Auto ads. Check the site’s toggle.
- Excluding a URL with a query string. Parameters and fragments are not supported. Exclude the clean path or a section prefix instead.
- Relying on excluded areas to hide anchors. Use the overlay format settings for that.
- Changing the theme and forgetting excluded areas. Selectors break silently. Re-check the preview after a redesign.
- Judging from a single day. Ads can take up to an hour to appear after changes, and revenue moves daily anyway. Compare the same weekdays, or use an experiment.
- Pasting the head snippet in the body only. Google asks for the AdSense code between
<head>and</head>and ad unit code between<body>and</body>.
Which should you start with?
If your site is new to AdSense and runs on a template you do not want to touch often, start with Auto ads and tighten the settings: lower ad load, exclusions on utility pages, overlay formats reviewed one by one. Add manual units later for the two or three positions you want to own, reserving space for each. If you already run a hand-tuned layout, keep your units and test Auto ads on top of them through an experiment rather than switching everything at once. Either way, measure the effect on Core Web Vitals as well as on revenue.
Frequently asked questions
Can I use Auto ads and manual ad units on the same page?
Yes. Google's Auto ads documentation says Auto ads detect existing Google ads on the page and place new ads based on the layout, the amount of content and the ads already there. Keep the AdSense code in the head and your ad unit code in the body. If you want Google to also adjust your existing units, turn on "Allow Google to optimize existing ads" in the in-page format settings.
Do manual ad units earn more than Auto ads?
Google does not publish a figure comparing the two. Revenue depends on your layout, traffic and the formats you allow. The reliable way to find out on your own site is an Auto ads experiment from the Ads page, which AdSense runs on 50% of your traffic for up to 90 days, or a controlled comparison of your own reports.
How do I stop Auto ads on one page, such as a contact page?
Use page exclusions: in AdSense, click Ads, click Edit next to your site, open "Page exclusions", click Manage and add the URL. Choose "This page only" or "All pages under this section", then click Apply to site. Google says changes can take up to an hour. URLs with fragments or parameters are not supported.
If I turn off Auto ads, do my ad units still work?
Yes. Turning off Auto ads for a site stops Google from placing automatic ads, but ad units you placed manually keep serving as long as the AdSense code and the ad unit code remain on the page.
Sources
- About Auto ads · Google AdSense Help
- Auto ads settings · Google AdSense Help
- About the AdSense code · Google AdSense Help
- Exclude specific pages on your site from showing Auto ads · Google AdSense Help
- Exclude areas on your pages from showing in-page Auto ads · Google AdSense Help
- About ad units · Google AdSense Help
Related guides
- Anchor, vignette and side rail ads: how AdSense overlay formats work and how to control them
How AdSense overlay formats work: anchor, vignette and side rail settings, vignette triggers, desktop options, exclusions and how to measure their effect.
- In-article, In-feed and Multiplex ads: where each native AdSense format belongs and how to place the code
Where AdSense native formats go and how to code them: In-article ads between paragraphs, In-feed ads inside list loops, and Multiplex grids after articles.
- Responsive AdSense ad units: data-ad-format, full-width mobile ads and CSS sizing
How responsive AdSense display units size themselves, what data-ad-format and data-full-width-responsive do, and the CSS media query changes Google allows.
- AdSense experiments: how they run, what you can test, and how to read the results
How AdSense experiments compare an original and a variation, what you can test, how Auto optimize works, and how to read results without fooling yourself.
- AdSense and Core Web Vitals: measuring the real impact of ads on LCP, INP and CLS
How AdSense ads affect LCP, INP and CLS, why field data and your own RUM disagree on pages with ad iframes, and what to change first to keep pages fast.