Permalink
Switch branches/tags
Find file Copy path
e5a1d3b Apr 9, 2018
2 contributors

Users who have contributed to this file

@jamarzka @bpaduch
62 lines (47 sloc) 1.67 KB

AdThrive

Your site must be approved and active with AdThrive prior to use. AdThrive will install or provide specific tags for your site.

Examples

Render an ad with the default sizes

  <amp-ad width="320" height="50"
      type="adthrive"
      data-site-id="test"
      data-ad-unit="AdThrive_Content_1">
  </amp-ad>

Render an ad with a fixed size 320x50

  <amp-ad width="320" height="50"
      type="adthrive"
      data-site-id="test"
      data-ad-unit="AdThrive_Content_1"
      data-sizes="320x50">
  </amp-ad>

Render an ad with multiple sizes (320x50,320x100,300x250)

  <amp-ad width="320" height="50"
      type="adthrive"
      data-site-id="test"
      data-ad-unit="AdThrive_Content_1"
      data-sizes="320x50,320x100,300x250">
  </amp-ad>

Configuration

Required parameters

  • data-site-id - Your AdThrive site id.
  • data-ad-unit - AdThrive provided ad unit.

Optional parameters

data-sizes - Comma separated list of ad sizes this ad slot should support. The iFrame will be resized if allowed.