Ad code implementation
About Auto ads
Auto ads are a family of ad formats that offer a simple and innovative way for you to monetize your content. With Auto ads, you place the same piece of ad code once on each page. After you've added the code, Google automatically shows ads at optimal times when they’re likely to perform well for you and provide a good experience for your users.
The benefits of Auto ads include:
- They let you focus on creating great content. Auto ads automatically place and optimize your ads for you so you don't have to spend time doing it yourself.
- They potentially increase your revenue. Auto ads analyze your pages and find new places to show ads based on your layout, content, and existing Google ads.
- They're easy to use. You place the same piece of code just once on each page that you want to show Auto ads. Google takes care of the rest.
How Auto ads work
Auto ads use Google's machine learning technology to:
- Understand your page structure
- Detect any existing Google ads on your page. (Note that we're not able to detect ads from other ad networks.)
- Automatically place new ads based on different elements such as your page layout, the amount of content on your page, and your existing Google ads.
If you make a change to your site we'll detect it and reanalyze your page.
If you'd like Google to automatically place ads on your AMP pages, you can use Auto ads for AMP.
Auto ads and manually placed ad units
Auto ads work equally well on sites that don't have ads and on those already showing ads. If you already have ad units on your page, Auto ads will detect them and only place ads where there's available space. So there’s no need to remove your existing ad units if you don’t want to. If you don't have any ad units on your page, Auto ads will find all potential placements and use them to monetize your page.
The following examples show you how a page with an existing ad unit might look before and after Auto ads have been set up:
The Auto ads family includes the following ad formats.
These ads appear in specific places on your pages:
Text & display
|Text & display ads are a simple way to get banner ads on your page. These ads can appear anywhere on your pages.|
|In-article ads are designed with your readers in mind, helping you put native ads in between the paragraphs of your pages. The format uses high-quality advertiser assets which means they look great next to your content.
We analyze the elements of your page to make sure that these ads only appear between large blocks of text on pages with sufficiently long articles.
In-feed ads (mobile only)
|In-feed ads are designed to flow naturally with the content on your site. They’re placed inside an editorial feed (a list of articles or news) or a listings feed (a list of products, services). In-feed ads are native which means we automatically style them to match the look and feel of your content. When visitors scroll down a list of articles or products on your page and encounter In-feed ads, they’ll still know they’re ads, but the ads will be unobtrusive and look great on the page.
We insert these ads into optimal positions in your feed to help increase revenue and provide a good user experience.
Matched content (mobile only)
|Matched content is a type of mobile Native ad that combines ads with content recommendations from your site. By offering visitors more content that's relevant to them, you can potentially increase time spent on your site, page impressions, and ultimately revenue.
If your site is eligible, AdSense will recommend content from your site that’s most relevant to your readers. Additionally, ads can be shown in between these content recommendations.
To be eligible, your site must meet our minimum requirements for traffic volume and number of unique pages. These requirements ensure that Matched content provides a great experience for your visitors. Learn how to check if your site is eligible for Matched content.
These ads appear over the top of your pages and might require your users to close or remove them:
Anchor ads (mobile only)
|Anchor ads are mobile ads that stick to the edge of the user's screen and are easily dismissible.
Anchor ads appear at the top of the user's screen unless we determine that this would negatively affect the user experience, in which case we show them at the bottom. When shown at the top, anchor ads only appear after the user has scrolled down far enough, so they never cover your site's branding or navigation. If you'd prefer to only show anchor ads at the bottom, you can disable this functionality by changing your ad code.
Vignette ads (mobile only)
|Vignette ads are mobile full-screen ads that appear between page loads on your site and can be skipped by users at any time.