In-Article Ads in WordPress: Placement, Spacing and Setup

By  Stephan Depta
Last updated December 1, 2026

In-article ads sit inside your post, between paragraphs. Getting them onto the page is the easy part. The harder questions are where the first ad belongs, how much text should follow before the next one, and how to keep both consistent across hundreds of posts.

This guide answers those questions and shows the setup in WordPress, including settings you can copy. You can follow the basics with the free AdPresso plugin. Where a step needs AdPresso Pro, we say so.

In short

  • Start with one ad after the second paragraph. That is also what Google suggests for its in-article units.
  • Space further ads by the amount of text between them, not just by the number of paragraphs.
  • Reserve room for the ad so the text does not jump while it loads.
  • Change one thing at a time, and look at revenue and reader behavior together.

What in-article ads are

The term has two meanings, and they are easy to mix up:

  • The position: any ad between the paragraphs of an article. It can be an AdSense unit, an affiliate banner, a sponsor’s creative or a product.
  • The AdSense format: Google’s “In-article ads” are a specific unit type. Google describes them as native ads that you can style to match your site.

The AdSense format has a trade-off. Because it only uses high-quality ad elements, Google says it may have a lower CPM in the short-term for some publishers. To counter that, you can allow selected display ads in the same unit. If your in-article unit earns less than the display unit it replaced, check that option first.

Formats that cover the content work differently. Our glossary explains interstitial ads.

Where to place the first ad

Google suggests two paragraphs below the start of the article for its in-article code. It is a sensible starting point for other ad types too, with three adjustments:

  • Very short intros. If your first two paragraphs are one sentence each, move the ad further down. Readers should know what the post offers first.
  • Posts that start with a heading. Place the ad after that section’s first paragraph, not between the heading and its text.
  • Things that belong together. Keep ads out of the gap between an instruction and its screenshot, and away from buttons and code.

How many ads, and how far apart

There is no universal number. Google asks for sufficient content between ads to minimize disruption. Mailchimp’s guidance is similar: let ads break up the content naturally, and remember that too many ads in one area can look unprofessional and drive visitors away.

Our suggestion for a first test: one ad per 300 to 400 words. That is a rule of thumb, not a Google limit. Paragraph counts alone can mislead, because four one-line paragraphs are over in seconds and four long ones fill several phone screens.

How many ads per article length

Applied to common article lengths, the rule of thumb gives these starting values. The first ad counts too:

Article lengthOne ad per 400 wordsOne ad per 300 words
500 words1 ad1 ad
1,000 words2 ads3 ads
1,500 words3 ads5 ads
2,000 words5 ads6 ads

Results are rounded down. Start with the lower number and add ads only if your readers and your numbers support it. Sidebar and sticky ads come on top, so a page that already has those may need fewer.

Two checks help. Read the post on your phone: if you notice the ads before the argument, there are too many. Then look at the whole page, including sidebar and sticky ads. Our guide to ad density covers that bigger picture, and ad frequency is about how often the same visitor sees the same ad.

Example: a 1,500-word recipe post

PositionAd?Why
After the second intro paragraphYesThe reader knows the topic and has not started cooking
Between ingredients and stepsNoReaders jump back and forth between the two
After step 3YesA pause between two phases of the recipe
After step 6OptionalOnly if about 300 words have passed since the last ad
Next to the final photoNoThe finished dish is what readers came for

That makes two ads, or three if the text is long enough. The table above would allow three to five, but a recipe has fewer good places for them. Suitable positions matter more than reaching the number.

Mobile, speed and layout shifts

Check a real post on a phone first. For Google’s in-article units, the setup guide says that they use the full screen width on portrait mobile, and otherwise the width of their container, with a minimum of 250 pixels. AdSense adjusts the height automatically. On desktop, your theme’s content column therefore sets the limit. Our overview of Google display ad sizes helps you pick formats that fit it.

An automatic height has a downside: the text can jump when the ad appears. AdPresso Free has a Reserve space setting for this in the Layout section of the placement. Automatic uses the ad’s height if it is known. With responsive AdSense units it often is not, so choose Custom height and enter a minimum for desktop and, if needed, another for mobile.

Ads further down may load and still never be seen. That is the difference between below the fold and not viewable. Active View tracking (AdPresso Pro) shows which of your in-article ads are actually seen.

Three ways to put ads between paragraphs in WordPress

  1. Paste the code into each post. Create a unit in AdSense, then copy the code into your page’s HTML. It usually takes a few minutes until ads appear, occasionally up to an hour. Fine for one post, tedious for a hundred.
  2. Edit the theme. One change covers all posts, but a theme update can overwrite it unless you use a child theme, and switching themes removes it.
  3. Use an ad management plugin. You define a rule once and it applies to existing and future posts. Moving the ad from paragraph two to three is one setting.
Plugin, post code and theme edits compared as ways to place ads between paragraphs in WordPress

Set up in-article ads with AdPresso

Place in-article ads without code

AdPresso inserts ads between paragraphs by rule, in new and existing posts. See what AdPresso can do before you start.

Step 1: Create the ad

Go to AdPresso > Ads, click + and choose a type. Use Image Ad for a banner and HTML / Code for AdSense or other network code. Both are free. If you are new to AdPresso, create your first ad walks you through it, and the AdSense overview covers the connection to your account.

Step 2: Choose the position

Under AdPresso > Placements, create a placement of the type In Content. Set Element count to 2, Insert to After and HTML Element to Paragraph. Then assign your ad and publish.

Paragraphs are only one option. The Content Placement can also insert before or after headings, images, lists and tables, or count from the bottom, for example for an ad before the last section. All of this is included in AdPresso Free.

Step 3: Repeat the ad in longer posts

For one or two fixed positions, create a placement for each. If the number of ads should grow with the article, use Ad Repeat, a Pro feature. A starting point for posts with normal paragraphs:

SettingValueEffect
Element count2First ad after paragraph 2
InsertAfterAd below the paragraph, not above it
HTML ElementParagraphCounts paragraphs
Ad RepeatManualUses the values below
Repeat every X elements4Next positions: paragraphs 6, 10 and so on
Limit to Y repetitions2At most three ads in total
Min. words between ads200Skips a position if the paragraphs in between are too short

This is how the first ad looks in a blog post, with the label “Advertisement” above it:

We tested it: In a post with 14 paragraphs of 76 to 82 words each, these settings produced exactly three ads, after paragraphs 2, 6 and 10 (AdPresso Pro 1.9.1, December 2026). Paragraph 14 would have been the next position, but by then the limit of two repetitions had been reached.

Blog post with 14 numbered paragraphs and ads after paragraphs 2, 6 and 10
Our test post: the ads appear after paragraphs 2, 6 and 10

Step 4: Decide where and when it appears

Use conditions to limit an ad, for example to certain categories, devices or the content’s age. A hiking banner then only appears in your hiking posts. With scheduling, a campaign starts and ends on the agreed dates. Start and end dates are free.

Step 5: Handle consent

If your ads need consent, set that up before you publish. AdPresso can hold back an ad until your consent tool reports the required permission. The privacy options explain the available methods. Which rules apply to your site is a question for your legal adviser.

Step 6: Compare creatives

To test two creatives in the same slot, put them in an ad group, show one ad at a time in random order and compare the click-through rates. Rotation by weight is free. AdPresso does not pick a winner or calculate statistical significance, so give the test enough impressions, and cover weekdays and weekends.

Positions are different. You can compare the statistics of two placements, but AdPresso does not split visitors randomly between them. Treat a before-and-after comparison of positions as an indication, not as an A/B test.

Step 7: Measure

AdPresso Free counts impressions and clicks per ad and placement; see ad tracking. For AdSense revenue, Google’s guide shows how to filter the Ad units report. Scroll depth, bounce rate and session length come from your analytics tool.

Affiliate, direct-sold and product ads inside articles

Affiliate, direct-sold and product ads as in-article ad types

Affiliate ads. Relevance beats volume. Put the offer next to the paragraph that raises the question it answers. Link masking (Pro) replaces long affiliate URLs with clean ones. If you use AI tools for this kind of content, see AI in affiliate marketing.

Direct-sold ads. If you sell a slot to a local business, agree on the dates, the placement and the numbers you will report. Scheduling and tracking cover that in AdPresso Free. For the question of which ads should appear next to which content, read how to manage brand safety.

WooCommerce products. You can place products inside an article with WooCommerce’s own shortcode. Create an HTML / Code ad with, for example, [products ids="12,34"] and assign it to your In Content placement. Add a category condition, and your running posts show running shoes. AdPresso does not choose products by cart, price, stock or purchase history. How to judge whether the slot sells is covered in conversion rate.

Empty slots. Campaigns end. A fallback ad fills the slot when the original ad is not available.

Balance revenue and reader experience

A simple review routine is enough for most sites:

  1. Change one thing: the position, the number of ads or the creative.
  2. Give it at least two weeks, longer on a small site.
  3. Compare revenue per thousand pageviews for the affected posts.
  4. Compare scroll depth, bounce rate and pages per session for the same posts.
  5. Keep the change only if revenue rose and readers did not leave earlier.

More ads are not the only way to earn more. Yield optimization explains the alternatives, and the ad tech glossary covers the terms used here.

Do you need Free or Pro?

AdPresso Free is enough to place ads at fixed positions, reserve space, schedule, rotate and count clicks. Pro is worth it if you want Ad Repeat, Active View or link masking. The pricing page shows the current yearly plans, which come with a 30-day money-back guarantee.

Already using another ad plugin? Our migration case study shows how one publisher moved to AdPresso.

Where should the first in-article ad go?

After the second paragraph is a good start. Google suggests the same for its in-article units. If your intro is very short, move the ad further down.

How many ads can I put in one post?

There is no fixed number. One ad per 300 to 400 words is our suggestion for a first test. Then adjust it based on revenue and reader behavior.

Do I need to edit code to show ads between paragraphs?

Not with a plugin. Google’s manual setup means pasting the code into your HTML. With AdPresso, you choose the position in a form and it applies to all posts.

Can I show affiliate and local advertisers in the same slot?

Yes. Put the ads in one group to rotate them, or use conditions and scheduling to decide which one appears where and when.

Can I A/B test the position of an ad?

Not with AdPresso alone. It can rotate creatives in one position at random and you can compare placement statistics, but it does not split visitors between positions.

Sources

Related articles

Stephan Depta

About the Author

Stephan Depta is a software engineer and WordPress developer with more than 12 years of experience building plugins, web applications, and custom WordPress solutions. He worked on Advanced Ads for several years, first as Lead Developer and later as Product Manager, combining hands-on plugin development with software architecture, performance optimization, and technical product strategy. Today, he is one of the developers behind AdPresso, where he focuses on building fast, modern, and reliable ad management tools for WordPress publishers.

This is AdPresso

Streamlined WordPress ad management, built on 16+ years of expertise for serious monetization.
Features robust protection, targeting, A/B testing, diverse placements, and insightful tracking to spark your full revenue potential.

BlogStudies
AdPresso Logo