Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.39 KB

sortable.md

File metadata and controls

48 lines (33 loc) · 1.39 KB

Sortable

Examples

  <amp-ad width=728 height=90
      type="sortable"
      data-name="728x90_amp"
      data-site="ampproject.org">
  </amp-ad>

  <amp-ad width=300 height=250
      type="sortable"
      data-name="medrec"
      data-site="ampproject.org">
  </amp-ad>

Configuration

Required:

data-name - The name of the ad unit.

data-site - The site/domain this ad will be served on (effectively an account id)

width + height - Required for all <amp-ad> units. Specifies the ad size.

type - always set to "sortable"

No explicit configuration is needed for a given sortable amp-ad, though each site must be set up beforehand with Sortable. The site name ampproject.org can be used for testing. Note that only the two examples above will show an ad properly.