Open workspace

Implementation guide

In-article ad

In-article ads

A native ad that appears between the paragraphs of the article, with a font and colors similar to your site's.

  • AdSense
  • mobile and desktop, between the paragraphs of a text
Desktop
Mobile

Understand it in 1 minute

What an in-article ad is

The In-article ad is an ad that lives inside the text. Picture a magazine: you are reading a story and, between one paragraph and another, an advertisement shows up. In-article does that on the site. It shows up between the paragraphs of the article, in the reader's way.

It is a native type. Native means the ad wears your site's clothes: you choose the font, the title color, the description color and the background color to match the page. If you turn on the Google-optimized style option, Google may change these colors and fonts when it predicts that others will work better. This format only uses ads with high-quality elements, such as Google Ads responsive ads. You can also let some display ads appear in the same space, which can help you earn more.

The size is automatic. The width is the same as the box where the code was placed, and the height adjusts to fit all the parts of the ad. There is only one requirement: the ad must be at least 250 pixels wide. With the phone held upright, the ad stretches and takes the full screen width, because Google's tests showed it works better that way.

Google says In-article is ideal for mobile. It is a native ad made for editorial content, which is the text you write yourself, and it sits between the paragraphs of your pages. Google suggests placing the code two paragraphs below the start of the article. If you use more than one on the same page, leave enough content between them, so you do not disturb the reader.

Step by step

How to implement

  1. Open the right menuSign in to AdSense, click Ads, then By ad unit and choose In-article ads.
  2. Give it a nameName the unit. Google suggests starting the name with Native or something similar, so you can track performance later.
  3. Adjust the styleChoose the font and the colors of the title, description and background to match your text. Check the preview by changing the width of the box.
  4. Get the codeClick Save and get code and copy the code.
  5. Paste it in the articlePaste the code in the page HTML. Google suggests placing it two paragraphs below the start of the article.

Implemented example

The code and how it looks on screen

Paste this code between two paragraphs of the article, preferably two paragraphs below the start of the text.
<script async
     src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-0000000000000000"
     crossorigin="anonymous"></script>
<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-0000000000000000"
     data-ad-slot="1234567890"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
On desktopIt appears between two paragraphs, with the width of the text column and with a font and colors similar to your site's.
On mobileWith the phone upright, it takes the full width of the screen, between the paragraphs of the article.

What Google recommends

Do and don't

Allowed

  • Place more than one In-article on the same page, as long as there is plenty of text between them and the ads do not outweigh the content.
  • Choose the font, title color, description color and background color to match the site.
  • Turn on the Allow selected display ads option, under Global options, so display ads can also appear in the unit.
  • Let Google adjust colors and fonts with the Google-optimized style option.
  • Write a label above the ad. Google's policy only allows the labels Advertisements or Sponsored Links.
  • Turn off full width on mobile by setting data-full-width-responsive to false, knowing that Google warns this may reduce earnings.

Not allowed

  • Placing a misleading heading above the ad, such as Resources or Useful links.
  • Write sentences asking the reader to click the ad or saying that clicking helps the site.
  • Use arrows, symbols or flashy animations to draw the eye to the ad.
  • Place the ad right next to links, buttons, menus or video players, where a click can happen by accident.
  • Fill the article with so many ads that there is more ad than content on screen.
  • Arrange an article image in a way that looks tied to a specific ad.

Tips

To do it right

Watch out

Common errors

Box too narrow

The In-article needs at least 250 pixels of width. In a narrower column, it does not meet the format's only size requirement.

Ads stuck together

Placing several In-article ads one after another, with little text in between, goes against Google's guidance to leave enough content between ads.

Thinking display is a bug

Seeing a display ad in place of the native one is not an error. It happens when the Allow selected display ads option is on, under Global options.

Expecting the same look in review

In the ad review center, the In-article appears with a default look and may not match what appears on your site.

Frequently asked questions

How many In-article ads can I put on a page?

As many as you want, as long as the ads do not outweigh the content and there is plenty of text between them.

How is the ad size calculated?

The width is equal to that of the box it is in, such as a div. AdSense adjusts the height on its own to fit everything.

Why does a display ad sometimes appear?

Because the Allow selected display ads option is on. Showing both types can help you earn more, and you can turn it off under Global options.

Can Google change the colors I chose?

Only if you turn on the Google-optimized style option. Without it, your choices apply.

Library

Official Google source

Everything on this page follows Google's official documentation. Read it straight from the source:

Does your site use this format the right way?

The audit reads the site as a visitor would, without clicking anything, and shows what to fix.

Run an audit