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 and you host the AMP versions of each page under 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 page:
<link rel="amphtml" href="">

In the AMP page:
<link rel="canonical" href="">

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 helpful?
How can we improve it?