Permalink
Find file
4473330 Nov 3, 2016
46 lines (31 sloc) 1.41 KB

Mediavine

Examples

  <amp-ad width=300 height=250
      type="mediavine"
      data-site="amp-project">
  </amp-ad>

  <amp-ad width=300 height=250
      type="mediavine"
      data-sizes="300x250,320x50"
      data-site="amp-project">
  </amp-ad>

Configuration

Required:

data-site - The site's unique name this ad will be served on. This is the same name from your Mediavine script wrapper.

Optional:

data-sizes - Comma separated list of ad sizes this placement should support. Will cause iframe resize if different from hard-coded width and height.

Each site must be approved and signed up with Mediavine prior to launch. The site name will be the same as name in the Mediavine script wrapper. The site name amp-project can be used for testing and will serve placeholder ads.