Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
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.

You can’t perform that action at this time.