Integrating AMP tags

The default AMP ad tag generated by AdButler is simple and lightweight. In most cases it's ready to be placed on the page as is.

However, if you are making use of Keyword Targeting or Unique Delivery you will need to make some minor adjustments to the default AMP tag, outlined below.

Keyword Targeting

To use keyword targeting for your AMP zones, you'll need to first set up the keywords for your ad items like you would for a regular zone. If you haven't done this before, see our guide to keyword targeting here. Then, you need to pass your keywords into your AMP ad tags. If I wanted to pass the keyword "green" into my tag, it would look like this:

<amp-ad width=300 height=250
    type="adbutler"
    data-account="167283"
    data-zone="212491"
    data-keyword="green">
</amp-ad>

Unique Delivery

If you're using the same zone tag multiple times on a single page, you will need to set up Unique Delivery to ensure that the same ad item won't appear more than once on the page. To incorporate Unique Delivery into your AMP tags, you must add the "data-place" parameter which helps AdButler identify each zone placement. Each time you add the AMP tag to the page, you will increase the "data-place" value by one.

<amp-ad width=300 height=250
    type="adbutler"
    data-account="167283"
    data-zone="212491"
    data-place="0">
</amp-ad>

<amp-ad width=300 height=250
    type="adbutler"
    data-account="167283"
    data-zone="212491"
    data-place="1">
</amp-ad>

Can't find what you're looking for?

Send us an email

hello@adbutler.com

Visit the blog

For more ad serving tips, industry news and AdButler insights.