How to set up Auto ads for AMP

Follow these steps to set up Auto ads for AMP.

Before you get started

For example, let's say you have a site example.com and you host the AMP versions of each page under example.com/amp/. You'd add <link> tags in the <head> of each AMP and non-AMP page to indicate which content belongs together.

In the non-AMP example.com/news page:
<link rel="amphtml" href="http://example.com/amp/news">

In the AMP example.com/amp/news page:
<link rel="canonical" href="http://example.com/news">

Set up Auto ads for AMP

  1. Sign in to your AdSense account.
  2. Click Ads.
  3. Click Auto ads for AMP.
  4. Use the control to switch on the "Text & display" ad format.
  5. Leave Automatically get new formats selected if you want AdSense to automatically add new ad formats to your Auto ads for AMP settings as they become available.
  6. Copy and paste the amp-auto-ads script in the <head> of your page. This script loads the required amp-auto-ads libraries. Learn more about the amp-auto-ads component.

  7. Copy and paste the AMP Auto ad code immediately after the opening <body> tag.

    Auto ads for AMP will start to appear on your pages in about 10-20 minutes.

Note that advanced URL settings are not available for Auto ads for AMP.

Tracking the performance of Auto ads for AMP

You can track the performance of Auto ads for AMP by viewing the Ad formats report on your Reports page. Auto ads for AMP are shown under the "Auto/AMP" label in the report.

Was this article helpful?
How can we improve it?