In-depth chapter

Ads: earnings without slowdowns or layout shifts

No pasting code everywhere. You enter your publisher ID and a single unit number, pick the placements, and the theme generates the code, places it and loads it at the right moment in reserved space. This page explains every setting in the “Ads” tab.

How does it work?

Most Blogger themes ask you to paste ad code into every spot, so the AdSense library loads several times, the page slows down and jumps when an ad appears. Nabd works differently:

  • You only give it the numbers: your publisher ID (ca-pub-…) and the number of one responsive “Display ads” unit from AdSense. That’s enough for every placement.
  • The theme builds each ad itself: at the right size for each spot (horizontal, square, tall, in-article, a grid of post-style ads).
  • The AdSense library loads once after the page appears, and each ad is requested when the visitor is a screen and a half away from it, so it’s ready when it comes into view and its impression counts.
  • Each ad’s space is reserved from the start at its size, so the page doesn’t jump when it appears (zero CLS layout shift).
  • Every active placement becomes a gadget in “Layout” in Blogger, which you can move, delete or edit from there.
The ads status card in the Ads tab
Top of the “Ads” tab: the on/off switch and the ads status

Ads are off by default, and there is no ad script at all on your blog until you turn them on. Your ad settings stay as they are when you change the template, the design preset, or reset. Ads are fully available during the trial.

Setup in six steps

  1. Create an ad unit in AdSense

    In your AdSense account: Ads → By ad unit → Display ads, choose “Responsive”, name it, then “Create”. Copy the code that appears. Optionally, also create an “In-article” unit and a “Multiplex” unit for a better fit in those spots.

  2. Paste the code into the panel

    In the Ads tab → the AdSense account card → open “Have code from AdSense? Paste it and we'll pull out the numbers”, paste the code (or several codes together) and click Extract the numbers. The publisher ID and unit number fields fill in automatically.

    The AdSense account card after extracting the numbers from pasted code
    The “AdSense account” card after pasting the code and extracting the numbers
  3. Turn ads on

    Switch on the toggle at the top of the tab. The status line tells you right away what’s missing: “Enter your publisher ID…” or “Placements need a display unit number…”, and once everything is complete it shows how many placements are live.

  4. Choose the placements

    Four placements are on from the start: Sidebar, Top of post, In-article and Bottom of post. Turn on or off whatever you like from the list (details below).

  5. Click “Apply to blog”

    Ads change the theme’s structure, so they don’t show in the panel’s “Preview”; you need to “Apply”.

  6. Set up the ads.txt file

    Once you enter your publisher ID, a ready-made ads.txt line appears with a copy button. Paste it in Blogger: Settings → Monetization → Enable custom ads.txt. (Why?)

The “AdSense account” card

Publisher IDRequired
In the form ca-pub- followed by 16 digits. Find it in AdSense: Account → Account information. You can paste the whole code into the field and it will take the ID from it.
Display unit numberRequired for placements
The data-ad-slot number of a responsive “Display ads” unit. It’s the base for every placement.
In-article unitOptional
An “In-article” unit for a better fit between paragraphs. Without it, the display unit is used.
Related posts unitOptional
A “Multiplex” unit (a grid of ads styled as posts) for the “Related posts” placement. Without it, the display unit is used.
Paste code and we extract the numbers
Paste any AdSense code, even three codes at once, and it recognizes each unit by its type and puts its number in the right field.
AdSense Auto ads too
When on, AdSense places extra ads on its own according to the “Auto ads” settings in your account, including an anchor ad at the bottom of the screen on mobile. It works even if you haven’t turned on any manual placement. Off by default.

The ten placements

The Ad placements card draws a mini post page and a mini home page, and every active placement is colored in so you can see where your ads will appear. Below it, the placements are split into three groups; each placement has an on/off switch, and its options appear when you turn it on.

Map of ad placements on the post page and home page
The placements map: active ones are colored
PlacementWhere it appearsReserved size (Auto)Default
On all pages
Top of pageRight below the header100px horizontal banner (728×90 on wide screens)Off
SidebarTop of the sidebar; drag it anywhere in the sidebar from Layout300×250On
Sticky sidebarA tall ad that stays visible while scrolling300×600 — desktop onlyOff
Bottom of pageAbove the footerResponsive: 280px mobile / 250px desktopOff
Post page
Top of postAfter the title and image, before the first paragraph100px horizontal bannerOn
In-articleBetween paragraphs at the positions you choose, and repeats280 / 250px, post widthOn
Bottom of postAfter the last paragraph, before the share buttons280 / 250pxOn
Related postsA grid of ads styled as posts after “Read also”320pxOff
Home and label pages
Between home blocksAfter a block you choose, then repeats280 / 250px, page widthOff
Between label page cardsInside label and search pages, every few cards280 / 250px, grid widthOff

Not every template has a sidebar: by default News has one on posts and lists, Tech on lists only, Sports on posts only, and Blog and Wiki have none. The two sidebar ads only appear where there is a sidebar (change it from the Sidebar tab). The home page has no sidebar.

Ads inside posts, between blocks and between cards

In-article

When you turn on “In-article”, its options appear:

After paragraphs
Chips like “After paragraph 3”: add numbers with the Add position field and remove them with ×. Up to 12 positions. An ad never appears after the last paragraph. Default: after paragraph 3.
Then repeat every
The number of paragraphs between one ad and the next after the last number (0 = no repeat). Default: every 6 paragraphs.
Max per post
From 1 to 8. Default: 3.

Below the options there’s a preview line such as “In a long post: after paragraphs 3, 9, 15 — a short post only gets what fits”.

In-article ad options
“In-article” opened with its options

What counts as a “paragraph”? Only real text paragraphs (longer than 60 characters, with no images, tables, lists or headings). So “after paragraph 3” really means the third text paragraph, and an ad never lands between an image and its caption. The spaces for these ads are added before the page is drawn, so paragraphs don’t move.

Between home blocks

After block number
The first ad comes after this block (1–20). Default: 2.
Then every
Repeats every this many blocks (0 = once). Default: every 3.
Max count
From 1 to 6. Default: 2. An ad never splits two half-width blocks, and never comes after the last block.

Between label page cards

Every how many cards
From 2 to 30. It adjusts automatically to the grid’s column count so rows stay complete. Default: every 6.
Max count
From 1 to 6. Default: 3.

Ad size, devices and other networks’ codes

Ad size
✓AutoResponsiveRectangleHorizontalVerticalFixed
Auto (best for this spot): horizontal for top of page and top of post, rectangle for the sidebar, vertical for the sticky one, and responsive everywhere else. Responsive: any size that fits the width. Rectangle: 300×250 · 336×280 · 250×250. Horizontal: 728×90 · 970×90, and 320×100 on mobile. Vertical: 300×600 · 160×600. Fixed: exactly the spot’s original size (for spots that have one). Under the choice you’ll see the reserved height on mobile and desktop; the theme reserves space for the largest size, so the page never jumps. In-article and Related posts don’t have this option, because they have their own formats; neither does a spot where you pasted another network’s code (its size comes from that code).
Devices
AllDesktopMobile
For every placement (except the sticky one, which is always desktop only). A placement limited to one device never requests an ad at all on the other and reserves no space there, which complies with AdSense policy against hiding ads after they load. The choice is written into its gadget’s title in Layout.
Other ad network codeOptional
Each placement has a field where you can paste code from any other network. It’s shown instead of the AdSense ad, in the same reserved space and after the page appears. Leave it empty for an automatic AdSense ad.
An ad placement set to mobile with a field for another network’s code
A placement set to “Mobile” only, and the other-network code field

Speed and visitor experience

The Speed and visitor experience card sums up what the theme does to protect your speed, and has four settings:

Load timing
✓After the page appears (recommended)After the first interaction (faster)
After the page appears: the balance Google recommends between earnings and speed, and the default. After the first interaction: the highest score in speed tests, but ads at the top of the screen wait until the visitor moves (or 5 seconds).
Max per page
From 1 to 20, default 8. More ads than content hurts the experience and your Google ranking.
“Advertisement” label above each ad
On by default. Clear for visitors and in line with AdSense policy.
No ads on new posts (hours)
From 0 to 720. For example, 24 = a post shows no ads on its first day. Useful if you publish and share on social media right away. 0 = off.
The Speed and visitor experience card
The “Speed and visitor experience” card

Control from Blogger’s “Layout”

After “Apply”, every active placement becomes an HTML gadget on the Layout page named “Ad: …” (ad sections are shown in purple). From there you can:

  • Move the gadget: for example, move the sidebar ad anywhere in the sidebar.
  • Choose the device: add “— Desktop only” or “— Mobile only” to its title.
  • Edit the numbers: the gadget’s content is readable lines such as “After paragraphs: 3”, “Then every: 6 paragraphs” and “Max: 3”.
  • Turn the placement off: delete the gadget.
What happened since the last “Apply”What happens to the ad gadget in Layout
You turned the placement on or changed its options in the panelThe gadget is rewritten with the panel’s settings (and comes back if you had deleted it).
You turned the placement off, or turned all ads offThe gadget is removed from Layout.
You didn’t touch the placement in the panelYour edits in Layout stay as they are, and a deleted gadget stays deleted.
Ad gadgets on the Layout page
“Ad: …” gadgets on the Layout page

Preview placements without ads

Open any page on your blog and add ?ads=preview to the end of the URL, or click Preview placements on the blog in the “Preview and layout” card. Dotted boxes showing each placement’s name and size appear instead of real ads, with no request sent to AdSense, so you can experiment freely without accidentally clicking your own ads.

A post in ad placement preview mode
A post page with ?ads=preview: top of post, in-article, and the sidebar
The home page with an ad between blocks in preview mode
The home page: a “Between home blocks” ad

ads.txt and Auto ads

ads.txt file
A file that confirms to AdSense that your blog is authorized to show your ads; without it you earn less. Once you enter your publisher ID, a ready-made line appears, such as google.com, pub-…, DIRECT, f08c47fec0942fa0, with a copy button. Paste it in Blogger: Settings → Monetization → Enable custom ads.txt.
Blogger’s auto ads
Not the same as Nabd’s switch. Blogger’s option under “Earnings” injects the AdSense script (about 220KB) into every page. Turn it off, and use Nabd’s “AdSense Auto ads too” switch if you want auto ads: it loads the library once, at the right time.
Bottom-of-screen ad on mobile
Use the official “Anchor” ad from AdSense Auto ads. Don’t pin a manual ad to the bottom of the screen; that’s against policy.

Tips and common mistakes

I turned ads on and nothing shows

Check the status line at the top of the tab: usually the publisher ID or the display unit number is missing. Then make sure you clicked “Apply” and that your blog is approved in AdSense. In the first few days, AdSense may show empty spaces until it gets to know your site.

A placement says “Needs a unit number”

The placement is on, but there’s no publisher ID or suitable unit. Enter the publisher ID and display unit number in the “AdSense account” card.

I changed the paragraph numbers in Layout and they went back

If you later changed that same placement in the panel, the panel’s settings overwrite Layout on “Apply”. Edit in one place only.

I turned ads off and on again and lost my Layout edits

Turning all ads off deletes their gadgets on “Apply”, and turning them back on recreates them from the panel’s settings. To pause a single placement, delete its gadget or turn just that one off.

How many ads should I use?

Start with the defaults (Sidebar + Top of post + In-article + Bottom of post), then add “Between home blocks” if your home page is long. More than that usually lowers the value per click and hurts the reading experience.